2009-11-09 06:03:26 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.38 2009/11/09 11:03:26 sthen Exp $
|
2006-11-01 17:26:28 -05:00
|
|
|
|
2007-09-15 18:27:38 -04:00
|
|
|
COMMENT-java= Java bindings for Berkeley DB, revision ${REVISION}
|
2003-12-08 12:37:52 -05:00
|
|
|
|
|
|
|
REVISION= 4
|
2007-10-26 10:06:02 -04:00
|
|
|
VERSION= ${REVISION}.6.21
|
2009-04-14 15:49:04 -04:00
|
|
|
PKGNAME-main= ${DISTNAME}p0
|
2009-11-09 06:03:26 -05:00
|
|
|
PKGNAME-java= db-java-${VERSION}p5
|
2009-04-14 15:49:04 -04:00
|
|
|
PKGNAME-tcl= db-tcl-${VERSION}p6
|
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}/
|
2009-04-14 15:49:04 -04:00
|
|
|
# converted DOS line-endings; no other change
|
|
|
|
MASTER_SITES2= http://spacehopper.org/mirrors/
|
|
|
|
PATCHFILES= patch.${VERSION}.1:0 \
|
|
|
|
patch.${VERSION}.2.fixed:2 \
|
|
|
|
patch.${VERSION}.3:0 \
|
|
|
|
patch.${VERSION}.4:0
|
2003-12-08 12:37:52 -05:00
|
|
|
|
2004-01-14 14:50:15 -05:00
|
|
|
CONFIGURE_STYLE=gnu
|
|
|
|
|
2003-12-08 12:37:52 -05:00
|
|
|
DEST_SUBDIR= ${REVISION}
|
2004-11-22 11:59:29 -05:00
|
|
|
WANTLIB= c
|
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?=
|
|
|
|
|
2009-03-11 17:28:45 -04:00
|
|
|
RUN_DEPENDS-java= :db->=4,<5:databases/db/v${REVISION} \
|
2006-11-25 17:54:27 -05:00
|
|
|
${MODJAVA_RUN_DEPENDS}
|
2009-03-11 17:28:45 -04:00
|
|
|
RUN_DEPENDS-tcl= :db->=4,<5:databases/db/v${REVISION}
|
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>
|