2001-06-08 19:26:51 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.24 2001/06/08 23:26:51 matt Exp $
|
2001-05-05 19:24:50 -04:00
|
|
|
|
|
|
|
COMMENT= "Berkeley DB package, revision 3"
|
1997-11-26 08:11:17 -05:00
|
|
|
|
2000-09-04 13:17:45 -04:00
|
|
|
DISTNAME= db-3.1.17
|
1997-11-26 08:11:17 -05:00
|
|
|
CATEGORIES= databases
|
2001-05-05 19:24:50 -04:00
|
|
|
NEED_VERSION= 1.402
|
2000-09-04 13:17:45 -04:00
|
|
|
MASTER_SITES= http://www.sleepycat.com/update/3.1.17/
|
|
|
|
HOMEPAGE= http://www.sleepycat.com/
|
1998-10-08 00:23:55 -04:00
|
|
|
|
2000-09-04 13:17:45 -04:00
|
|
|
JDK_VERSION= 1.1.8
|
|
|
|
|
|
|
|
MAINTAINER= ports@openbsd.org
|
1997-11-26 08:11:17 -05:00
|
|
|
|
2000-02-15 00:03:51 -05:00
|
|
|
PERMIT_PACKAGE_CDROM= YES
|
|
|
|
PERMIT_PACKAGE_FTP= YES
|
|
|
|
PERMIT_DISTFILES_CDROM= YES
|
|
|
|
PERMIT_DISTFILES_FTP= YES
|
2000-02-12 01:29:49 -05:00
|
|
|
|
2000-09-04 13:17:45 -04:00
|
|
|
CONFIGURE_STYLE= gnu dest
|
|
|
|
CONFIGURE_SCRIPT= ../dist/configure
|
|
|
|
CONFIGURE_ARGS= --enable-compat185 --enable-dump185 --enable-cxx \
|
|
|
|
${CONFIGURE_SHARED}
|
1997-11-26 08:11:17 -05:00
|
|
|
|
2000-09-04 13:17:45 -04:00
|
|
|
WRKBUILD= ${WRKDIST}/build_unix
|
2000-09-23 21:32:39 -04:00
|
|
|
|
2000-09-04 13:17:45 -04:00
|
|
|
FLAVORS= java
|
2000-09-23 21:32:39 -04:00
|
|
|
FLAVOR?=
|
2000-02-02 13:18:41 -05:00
|
|
|
|
2000-09-23 21:32:39 -04:00
|
|
|
.if ${FLAVOR:L:Mjava}
|
2001-06-08 19:26:51 -04:00
|
|
|
BROKEN= "requires native JDK"
|
2000-09-04 13:17:45 -04:00
|
|
|
ONLY_FOR_ARCHS= i386
|
2001-05-07 20:54:36 -04:00
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/jdk${JDK_VERSION}/bin/java::devel/jdk/1.1
|
2000-09-04 13:17:45 -04:00
|
|
|
CONFIGURE_ARGS+= --enable-java
|
|
|
|
PORTPATH= /usr/bin:/bin:/usr/sbin:/sbin:${LOCALBASE}/bin:${X11BASE}/bin:${LOCALBASE}/jdk${JDK_VERSION}/bin
|
|
|
|
.endif
|
1999-06-17 23:31:35 -04:00
|
|
|
|
2000-09-04 13:17:45 -04:00
|
|
|
post-configure:
|
|
|
|
@-ln -s ${LOCALBASE}/jdk${JDK_VERSION}/include/freebsd/jni_md.h \
|
|
|
|
${WRKBUILD}/jni_md.h
|
1997-11-26 08:11:17 -05:00
|
|
|
|
|
|
|
post-install:
|
2000-02-02 13:18:41 -05:00
|
|
|
@${INSTALL_DATA_DIR} ${PREFIX}/share/examples/db
|
1999-12-02 02:17:10 -05:00
|
|
|
@mv ${PREFIX}/include/db.h ${PREFIX}/include/db3.h
|
2000-12-28 12:14:10 -05:00
|
|
|
.if exists(${PREFIX}/lib/libdb-3.1.a) && exists(${PREFIX}/lib/libdb_cxx-3.1.a)
|
|
|
|
@mv ${PREFIX}/lib/libdb-3.1.a ${PREFIX}/lib/libdb3.a
|
|
|
|
@mv ${PREFIX}/lib/libdb_cxx-3.1.a ${PREFIX}/lib/libdb3_cxx.a
|
|
|
|
.else
|
|
|
|
@mv ${PREFIX}/lib/libdb.a ${PREFIX}/lib/libdb3.a
|
|
|
|
@mv ${PREFIX}/lib/libdb_cxx.a ${PREFIX}/lib/libdb3_cxx.a
|
|
|
|
.endif
|
2000-02-02 13:18:41 -05:00
|
|
|
@echo "Installing samples: ${PREFIX}/share/examples/db ..."
|
2000-09-04 13:17:45 -04:00
|
|
|
@cd ${WRKSRC}/examples_c; ${INSTALL_DATA} *.c \
|
1998-10-08 00:23:55 -04:00
|
|
|
${PREFIX}/share/examples/db
|
2000-09-04 13:17:45 -04:00
|
|
|
@cd ${WRKSRC}/examples_cxx; ${INSTALL_DATA} *.cpp \
|
1998-10-08 00:23:55 -04:00
|
|
|
${PREFIX}/share/examples/db
|
2000-09-23 21:32:39 -04:00
|
|
|
.if ${FLAVOR:L:Mjava}
|
2000-09-04 13:17:45 -04:00
|
|
|
@cd ${WRKSRC}/examples_java; ${INSTALL_DATA} *.java \
|
1999-12-02 02:17:10 -05:00
|
|
|
${PREFIX}/share/examples/db
|
2000-09-04 13:17:45 -04:00
|
|
|
.endif
|
1997-11-26 08:11:17 -05:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|
2000-09-04 13:17:45 -04:00
|
|
|
|