openbsd-ports/databases/db/v4/Makefile

57 lines
1.5 KiB
Makefile
Raw Normal View History

2009-11-09 06:03:26 -05:00
# $OpenBSD: Makefile,v 1.38 2009/11/09 11:03:26 sthen Exp $
COMMENT-java= Java bindings for Berkeley DB, revision ${REVISION}
REVISION= 4
VERSION= ${REVISION}.6.21
PKGNAME-main= ${DISTNAME}p0
2009-11-09 06:03:26 -05:00
PKGNAME-java= db-java-${VERSION}p5
PKGNAME-tcl= db-tcl-${VERSION}p6
DBLIBDIR= lib/db4
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
MASTER_SITES0= ${HOMEPAGE}db/update/${VERSION}/
# 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
CONFIGURE_STYLE=gnu
DEST_SUBDIR= ${REVISION}
2004-11-22 11:59:29 -05:00
WANTLIB= c
PSEUDO_FLAVORS= java
FLAVOR?=
RUN_DEPENDS-java= :db->=4,<5:databases/db/v${REVISION} \
${MODJAVA_RUN_DEPENDS}
RUN_DEPENDS-tcl= :db->=4,<5:databases/db/v${REVISION}
WANTLIB-java=
.if ${FLAVOR:L:Mjava}
MULTI_PACKAGES+=-java
CONFIGURE_ARGS+=--enable-java
MODULES+= java
MODJAVA_VER= 1.4+
MODJAVA_JRERUN= Yes
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
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
.include <bsd.port.mk>