2011-09-16 04:48:01 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.53 2011/09/16 08:48:02 espie Exp $
|
2006-11-01 17:26:28 -05:00
|
|
|
|
2010-07-10 16:06:54 -04:00
|
|
|
COMMENT-java= Java bindings for Berkeley DB, revision ${REV}
|
2003-12-08 12:37:52 -05:00
|
|
|
|
2010-07-10 16:06:54 -04:00
|
|
|
REV= 4
|
|
|
|
VERSION= ${REV}.6.21
|
2010-08-25 19:06:00 -04:00
|
|
|
PKGNAME-main= ${DISTNAME}
|
2011-09-11 17:17:09 -04:00
|
|
|
PKGSPEC-main = db->=4,<5|db->=4v0,<5v0
|
2011-09-14 15:12:18 -04:00
|
|
|
PKGSPEC-java = db-java->=4,<5|db-java->=4v0,<5v0
|
|
|
|
PKGSPEC-tcl = db-tcl->=4,<5|db-tcl->=4v0,<5v0
|
2011-09-12 06:16:57 -04:00
|
|
|
|
2010-08-25 16:27:16 -04:00
|
|
|
PKGNAME-java= db-java-${VERSION}
|
|
|
|
PKGNAME-tcl= db-tcl-${VERSION}
|
2011-09-11 17:17:09 -04:00
|
|
|
EPOCH-main= 0
|
2011-09-14 15:12:18 -04:00
|
|
|
EPOCH-java= 0
|
|
|
|
EPOCH-tcl= 0
|
2011-09-16 04:48:01 -04:00
|
|
|
REVISION-java = 0
|
|
|
|
REVISION-tcl = 0
|
2005-01-23 05:28:07 -05:00
|
|
|
DBLIBDIR= lib/db4
|
2007-10-26 10:06:02 -04:00
|
|
|
SHARED_LIBS += db 5.0 # .0.0
|
|
|
|
SHARED_LIBS += db_cxx 6.0 # .0.0
|
|
|
|
SHARED_LIBS += db_java 5.0 # .0.0
|
2008-10-28 07:53:33 -04:00
|
|
|
SHARED_LIBS += db_tcl 6.0 # .0.0
|
2003-12-08 12:37:52 -05:00
|
|
|
|
2006-10-18 07:05:55 -04:00
|
|
|
MASTER_SITES0= ${HOMEPAGE}db/update/${VERSION}/
|
2010-11-12 03:06:42 -05:00
|
|
|
# patch 2 has converted DOS line-endings; no other change
|
|
|
|
# patches 1,3,4 are just mirrored
|
2009-04-14 15:49:04 -04:00
|
|
|
MASTER_SITES2= http://spacehopper.org/mirrors/
|
2010-11-12 03:06:42 -05:00
|
|
|
PATCHFILES= patch.${VERSION}.1:2 \
|
2009-04-14 15:49:04 -04:00
|
|
|
patch.${VERSION}.2.fixed:2 \
|
2010-11-12 03:06:42 -05:00
|
|
|
patch.${VERSION}.3:2 \
|
|
|
|
patch.${VERSION}.4:2
|
2003-12-08 12:37:52 -05:00
|
|
|
|
2004-01-14 14:50:15 -05:00
|
|
|
CONFIGURE_STYLE=gnu
|
|
|
|
|
2010-07-10 16:06:54 -04:00
|
|
|
DEST_SUBDIR= ${REV}
|
2010-08-25 16:27:16 -04:00
|
|
|
WANTLIB= c m stdc++
|
2003-12-08 12:37:52 -05:00
|
|
|
|
2006-11-04 07:27:19 -05:00
|
|
|
PSEUDO_FLAVORS= java
|
2006-11-02 07:26:37 -05:00
|
|
|
FLAVOR?=
|
|
|
|
|
2010-11-26 09:44:27 -05:00
|
|
|
RUN_DEPENDS-java= databases/db/v${REV} \
|
2006-11-25 17:54:27 -05:00
|
|
|
${MODJAVA_RUN_DEPENDS}
|
2010-11-26 09:44:27 -05:00
|
|
|
RUN_DEPENDS-tcl= databases/db/v${REV}
|
2006-11-25 17:54:27 -05:00
|
|
|
WANTLIB-java=
|
|
|
|
|
2006-11-04 07:27:19 -05:00
|
|
|
.if ${FLAVOR:L:Mjava}
|
2006-11-01 17:26:28 -05:00
|
|
|
MULTI_PACKAGES+=-java
|
|
|
|
CONFIGURE_ARGS+=--enable-java
|
|
|
|
MODULES+= java
|
2008-06-23 22:46:21 -04:00
|
|
|
MODJAVA_VER= 1.4+
|
2006-11-02 23:50:39 -05:00
|
|
|
MODJAVA_JRERUN= Yes
|
2006-11-01 17:26:28 -05:00
|
|
|
CONFIGURE_ENV+= JAVAC=${JAVA_HOME}/bin/javac \
|
|
|
|
JAR=${JAVA_HOME}/bin/jar \
|
|
|
|
JAVA=${JAVA_HOME}/bin/java
|
|
|
|
MAKE_FLAGS+= DBJVERSION=${LIBdb_java_VERSION}
|
|
|
|
.endif
|
|
|
|
|
2008-10-28 07:53:33 -04:00
|
|
|
SUBST_VARS= LIBdb_tcl_VERSION
|
|
|
|
|
2007-10-26 10:06:02 -04:00
|
|
|
pre-configure:
|
2008-10-28 07:53:33 -04:00
|
|
|
@perl -pi -e "s,db_(archive|checkpoint|deadlock|dump|hotbackup),db5_\0,g" ${WRKSRC}/test/*tcl
|
|
|
|
@perl -pi -e "s,db_(load|printlog|recover|stat|upgrade|verify),db5_\0,g" ${WRKSRC}/test/*tcl
|
|
|
|
@${SUBST_CMD} ${WRKSRC}/test/include.tcl
|
2007-10-26 10:06:02 -04:00
|
|
|
|
2003-12-08 12:37:52 -05:00
|
|
|
.include <bsd.port.mk>
|