2001-10-23 13:55:57 +02:00
|
|
|
# $NetBSD: Makefile,v 1.4 2001/10/23 11:55:57 martti Exp $
|
2001-07-28 19:49:00 +02:00
|
|
|
|
|
|
|
DISTNAME= db-3.2.9
|
2001-10-23 13:55:57 +02:00
|
|
|
PKGNAME= java-db3-2.9.2
|
2001-07-28 19:49:00 +02:00
|
|
|
CATEGORIES= databases
|
|
|
|
MASTER_SITES= http://www.sleepycat.com/update/3.2.9/
|
|
|
|
|
|
|
|
MAINTAINER= jlam@netbsd.org
|
|
|
|
HOMEPAGE= http://www.sleepycat.com/
|
2001-07-28 19:50:41 +02:00
|
|
|
COMMENT= Java interface to Sleepycat Software's Berkeley DB version 3
|
2001-07-28 19:49:00 +02:00
|
|
|
|
2001-10-23 13:55:57 +02:00
|
|
|
PATCH_SITES= ${MASTER_SITES}
|
|
|
|
PATCHFILES= patch.3.2.9.1 patch.3.2.9.2
|
|
|
|
PATCH_DIST_ARGS= -d ${WRKSRC}/.. --forward --quiet
|
|
|
|
|
|
|
|
DISTINFO_FILE?= ${.CURDIR}/../db3/distinfo
|
|
|
|
PATCHDIR?= ${.CURDIR}/../db3/patches
|
2001-07-28 19:49:00 +02:00
|
|
|
|
|
|
|
USE_JAVA= yes
|
2001-09-17 20:13:53 +02:00
|
|
|
JDK_BASE= ${JAVA_HOME}
|
|
|
|
JAVAC= ${JDK_BASE}/bin/javac
|
|
|
|
JAR= ${JDK_BASE}/bin/jar
|
2001-07-28 19:49:00 +02:00
|
|
|
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
|
|
|
|
|
2001-10-23 13:55:57 +02:00
|
|
|
.include "../../databases/db3/buildlink.mk"
|
2001-07-28 19:49:00 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|
|
|
|
|
|
|
|
.if ${PKG_JVM} == "jdk"
|
2001-09-17 20:13:53 +02:00
|
|
|
CPPFLAGS+= -I${JDK_BASE}/include/netbsd
|
2001-07-28 19:49:00 +02:00
|
|
|
.elif ${PKG_JVM} == "sun-jdk"
|
2001-09-17 20:13:53 +02:00
|
|
|
JDK_BASE= ${LOCALBASE}/java
|
|
|
|
CPPFLAGS+= -I${JDK_BASE}/include/linux
|
2001-07-28 19:49:00 +02:00
|
|
|
.endif
|