diff options
author | jlam <jlam> | 2002-10-13 09:32:49 +0000 |
---|---|---|
committer | jlam <jlam> | 2002-10-13 09:32:49 +0000 |
commit | dbd8fa94b223dbbd4ddb929928bd26ca80661a2a (patch) | |
tree | f6789e727aefb2098b3e14588c1d4d995d0d5fab /databases/java-db3 | |
parent | db920da545ce1644f1edd9b0cfdb1ae631b5995e (diff) | |
download | pkgsrc-dbd8fa94b223dbbd4ddb929928bd26ca80661a2a.tar.gz |
buildlink1 -> buildlink2 and use java.mk instead of relying on older
(buggier) Java-handling in bsd.pkg.mk.
Diffstat (limited to 'databases/java-db3')
-rw-r--r-- | databases/java-db3/Makefile | 25 |
1 files changed, 10 insertions, 15 deletions
diff --git a/databases/java-db3/Makefile b/databases/java-db3/Makefile index bad7018e53a..c621eed5db6 100644 --- a/databases/java-db3/Makefile +++ b/databases/java-db3/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.6 2002/10/10 01:01:09 jlam Exp $ +# $NetBSD: Makefile,v 1.7 2002/10/13 09:32:49 jlam Exp $ DISTNAME= db-3.3.11 PKGNAME= java-db3-3.11.2 @@ -16,15 +16,13 @@ PATCH_DIST_ARGS= -d ${WRKSRC}/.. --forward --quiet DISTINFO_FILE?= ${.CURDIR}/../db3/distinfo PATCHDIR?= ${.CURDIR}/../db3/patches -USE_JAVA= yes -JDK_BASE= ${PKG_JAVA_HOME} -JAVAC= ${JDK_BASE}/bin/javac -JAR= ${JDK_BASE}/bin/jar +JAVAC= ${PKG_JAVA_HOME}/bin/javac +JAR= ${PKG_JAVA_HOME}/bin/jar JAVACABS= ${JAVAC} -USE_BUILDLINK_ONLY= yes +USE_BUILDLINK2= yes USE_LIBTOOL= yes -LTCONFIG_OVERRIDE= ${WRKDIR}/${DISTNAME}/dist/ltconfig +LIBTOOL_OVERRIDE= ${WRKSRC}/libtool GNU_CONFIGURE= yes CONFIGURE_SCRIPT= ../dist/configure @@ -35,17 +33,14 @@ CONFIGURE_ARGS+= --enable-java CONFIGURE_ENV+= JAVAC="${JAVAC}" CONFIGURE_ENV+= JAVACABS="${JAVACABS}" CONFIGURE_ENV+= JAR="${JAR}" + +CPPFLAGS+= ${BUILDLINK_CPPFLAGS.${PKG_JVM}} + ALL_TARGET= libdb3_java.la java INSTALL_TARGET= install_java WRKSRC= ${WRKDIR}/${DISTNAME}/build_unix -.include "../../databases/db3/buildlink.mk" +.include "../../databases/db3/buildlink2.mk" +.include "../../mk/java.mk" .include "../../mk/bsd.pkg.mk" - -.if ${PKG_JVM} == "jdk" -CPPFLAGS+= -I${JDK_BASE}/include/netbsd -.elif ${PKG_JVM} == "sun-jdk" -JDK_BASE= ${LOCALBASE}/java -CPPFLAGS+= -I${JDK_BASE}/include/linux -.endif |