2012-10-02 23:25:15 +02:00
|
|
|
# $NetBSD: Makefile,v 1.32 2012/10/02 21:25:19 asau Exp $
|
2001-07-28 19:49:00 +02:00
|
|
|
|
2001-11-30 12:58:31 +01:00
|
|
|
DISTNAME= db-3.3.11
|
|
|
|
PKGNAME= java-db3-3.11.2
|
2004-10-03 02:12:51 +02:00
|
|
|
PKGREVISION= 1
|
2003-08-23 17:16:36 +02:00
|
|
|
CATEGORIES= databases java
|
2001-11-30 12:58:31 +01:00
|
|
|
MASTER_SITES= http://www.sleepycat.com/update/3.3.11/
|
2001-07-28 19:49:00 +02:00
|
|
|
|
2006-03-04 22:28:51 +01:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2007-12-02 14:04:06 +01:00
|
|
|
HOMEPAGE= http://www.oracle.com/database/berkeley-db.html
|
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}
|
2001-11-30 12:58:31 +01:00
|
|
|
PATCHFILES= patch.3.3.11.1 patch.3.3.11.2
|
2001-10-23 13:55:57 +02:00
|
|
|
PATCH_DIST_ARGS= -d ${WRKSRC}/.. --forward --quiet
|
|
|
|
|
|
|
|
DISTINFO_FILE?= ${.CURDIR}/../db3/distinfo
|
|
|
|
PATCHDIR?= ${.CURDIR}/../db3/patches
|
2001-07-28 19:49:00 +02:00
|
|
|
|
2002-10-13 11:32:49 +02:00
|
|
|
JAVAC= ${PKG_JAVA_HOME}/bin/javac
|
|
|
|
JAR= ${PKG_JAVA_HOME}/bin/jar
|
2001-07-28 19:49:00 +02:00
|
|
|
JAVACABS= ${JAVAC}
|
|
|
|
|
2004-01-20 13:07:06 +01:00
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}/build_unix
|
2001-07-28 19:49:00 +02:00
|
|
|
USE_LIBTOOL= yes
|
|
|
|
GNU_CONFIGURE= yes
|
2009-12-15 16:34:27 +01:00
|
|
|
USE_TOOLS+= gmake
|
2001-07-28 19:49:00 +02:00
|
|
|
CONFIGURE_SCRIPT= ../dist/configure
|
2005-11-29 07:45:28 +01:00
|
|
|
CONFIG_SUB_OVERRIDE+= ../dist/config.sub
|
|
|
|
CONFIG_GUESS_OVERRIDE+= ../dist/config.guess
|
2001-07-28 19:49:00 +02:00
|
|
|
|
|
|
|
CONFIGURE_ARGS+= --program-transform-name=s,db_,db3_,
|
|
|
|
CONFIGURE_ARGS+= --includedir=${PREFIX}/include/db3
|
|
|
|
CONFIGURE_ARGS+= --enable-shared
|
|
|
|
CONFIGURE_ARGS+= --enable-java
|
2005-12-05 21:49:47 +01:00
|
|
|
CONFIGURE_ENV+= JAVAC=${JAVAC:Q}
|
|
|
|
CONFIGURE_ENV+= JAVACABS=${JAVACABS:Q}
|
|
|
|
CONFIGURE_ENV+= JAR=${JAR:Q}
|
2002-10-13 11:32:49 +02:00
|
|
|
|
|
|
|
CPPFLAGS+= ${BUILDLINK_CPPFLAGS.${PKG_JVM}}
|
|
|
|
|
2004-12-03 16:14:50 +01:00
|
|
|
BUILD_TARGET= libdb3_java.la java
|
2001-07-28 19:49:00 +02:00
|
|
|
INSTALL_TARGET= install_java
|
|
|
|
|
2007-02-16 11:51:25 +01:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
|
|
|
.if ${OPSYS} == "NetBSD"
|
|
|
|
# jdk 1.1.8 leads to segmentation faults when building the package.
|
|
|
|
USE_JAVA2= yes
|
|
|
|
.endif
|
|
|
|
|
2004-07-02 14:52:52 +02:00
|
|
|
.include "../../databases/db3/buildlink3.mk"
|
2002-12-26 21:52:09 +01:00
|
|
|
.include "../../mk/java-vm.mk"
|
2001-07-28 19:49:00 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|