diff options
author | ale <ale@FreeBSD.org> | 2013-10-30 18:03:06 +0800 |
---|---|---|
committer | ale <ale@FreeBSD.org> | 2013-10-30 18:03:06 +0800 |
commit | 2918da092fcf0c4c83a3fb888cea1fb40e279b9c (patch) | |
tree | 6a1c129c7928bb469e4f5f2193a353a0e2e832a6 /java | |
parent | 568c9bb0291917477b94d0e50c4484d321f06c56 (diff) | |
download | freebsd-ports-gnome-2918da092fcf0c4c83a3fb888cea1fb40e279b9c.tar.gz freebsd-ports-gnome-2918da092fcf0c4c83a3fb888cea1fb40e279b9c.tar.zst freebsd-ports-gnome-2918da092fcf0c4c83a3fb888cea1fb40e279b9c.zip |
Fix build with clang and stagify.
Approved by: maintainer
Diffstat (limited to 'java')
-rw-r--r-- | java/sqlitejdbc/Makefile | 12 | ||||
-rw-r--r-- | java/sqlitejdbc/files/patch-Makefile.common | 11 |
2 files changed, 17 insertions, 6 deletions
diff --git a/java/sqlitejdbc/Makefile b/java/sqlitejdbc/Makefile index 366a88efb4f8..852c7f3d2d18 100644 --- a/java/sqlitejdbc/Makefile +++ b/java/sqlitejdbc/Makefile @@ -3,9 +3,9 @@ PORTNAME= sqlitejdbc PORTVERSION= 056 -PORTREVISION= 1 DISTVERSIONPREFIX= v DISTVERSIONSUFFIX= -src +PORTREVISION= 1 CATEGORIES= java databases MASTER_SITES= http://files.zentus.com/sqlitejdbc/ EXTRACT_SUFX= .tgz @@ -13,7 +13,7 @@ EXTRACT_SUFX= .tgz MAINTAINER= lapo@lapo.it COMMENT= A Java JDBC driver for SQLite -LIB_DEPENDS= sqlite3:${PORTSDIR}/databases/sqlite3 +LIB_DEPENDS= libsqlite3.so:${PORTSDIR}/databases/sqlite3 WRKSRC= ${WRKDIR}/${PORTNAME}-${DISTVERSIONPREFIX}${DISTVERSION} USE_JAVA= yes @@ -21,16 +21,16 @@ JAVA_VERSION= 1.6+ USE_GMAKE= yes MAKE_ENV= JAVA_HOME="${JAVA_HOME}" ALL_TARGET= native -USE_LDCONFIG= yes PLIST_FILES= %%JAVAJARDIR%%/sqlitejdbc-native.jar lib/libsqlitejdbc.so -NO_STAGE= yes post-patch: ${REINPLACE_CMD} 's|%%LOCALBASE%%|${LOCALBASE}|' ${WRKSRC}/Makefile do-install: - ${INSTALL_DATA} ${WRKSRC}/build/sqlitejdbc-v${PORTVERSION}-native.jar ${JAVAJARDIR}/sqlitejdbc-native.jar - ${INSTALL_DATA} ${WRKSRC}/build/FreeBSD/libsqlitejdbc.so ${PREFIX}/lib/ + ${INSTALL_DATA} ${WRKSRC}/build/sqlitejdbc-v${PORTVERSION}-native.jar \ + ${STAGEDIR}${JAVAJARDIR}/sqlitejdbc-native.jar + ${INSTALL_DATA} ${WRKSRC}/build/FreeBSD/libsqlitejdbc.so \ + ${STAGEDIR}${PREFIX}/lib/ .include <bsd.port.mk> diff --git a/java/sqlitejdbc/files/patch-Makefile.common b/java/sqlitejdbc/files/patch-Makefile.common new file mode 100644 index 000000000000..4b6037d1d6b4 --- /dev/null +++ b/java/sqlitejdbc/files/patch-Makefile.common @@ -0,0 +1,11 @@ +--- Makefile.common.orig 2013-10-30 08:27:27.420880093 +0000 ++++ Makefile.common 2013-10-30 08:27:45.873878420 +0000 +@@ -56,7 +56,7 @@ + target := $(os)-$(arch) + + # os=Default is meant to be generic unix/linux +-Default_CC := gcc ++Default_CC := $(CC) + Default_STRIP := strip + Default_CFLAGS := -I$(JAVA_HOME)/include -Os -fPIC + Default_LINKFLAGS := -shared |