diff options
Diffstat (limited to 'databases/java-db3/Makefile')
-rw-r--r-- | databases/java-db3/Makefile | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/databases/java-db3/Makefile b/databases/java-db3/Makefile new file mode 100644 index 00000000000..20a9998b818 --- /dev/null +++ b/databases/java-db3/Makefile @@ -0,0 +1,45 @@ +# $NetBSD: Makefile,v 1.1.1.1 2001/07/28 17:49:00 jlam Exp $ + +DISTNAME= db-3.2.9 +PKGNAME= java-db3-2.9 +CATEGORIES= databases +MASTER_SITES= http://www.sleepycat.com/update/3.2.9/ + +MAINTAINER= jlam@netbsd.org +HOMEPAGE= http://www.sleepycat.com/ +COMMENT= Sleepycat Software's Berkeley DB version 3 with Java support + +DEPENDS+= db3-2.9:../../databases/db3 + +USE_JAVA= yes +JDK_HOME= ${JAVA_HOME} +JAVAC= ${JDK_HOME}/bin/javac +JAR= ${JDK_HOME}/bin/jar +JAVACABS= ${JAVAC} + +USE_BUILDLINK_ONLY= yes +USE_LIBTOOL= yes +LTCONFIG_OVERRIDE= ${WRKDIR}/${DISTNAME}/dist/ltconfig +GNU_CONFIGURE= yes +CONFIGURE_SCRIPT= ../dist/configure + +CONFIGURE_ARGS+= --program-transform-name=s,db_,db3_, +CONFIGURE_ARGS+= --includedir=${PREFIX}/include/db3 +CONFIGURE_ARGS+= --enable-shared +CONFIGURE_ARGS+= --enable-java +CONFIGURE_ENV+= JAVAC="${JAVAC}" +CONFIGURE_ENV+= JAVACABS="${JAVACABS}" +CONFIGURE_ENV+= JAR="${JAR}" +ALL_TARGET= libdb3_java.la java +INSTALL_TARGET= install_java + +WRKSRC= ${WRKDIR}/${DISTNAME}/build_unix + +.include "../../mk/bsd.pkg.mk" + +.if ${PKG_JVM} == "jdk" +CPPFLAGS+= -I${JDK_HOME}/include/netbsd +.elif ${PKG_JVM} == "sun-jdk" +JDK_HOME= ${LOCALBASE}/java +CPPFLAGS+= -I${JDK_HOME}/include/linux +.endif |