openbsd-ports/databases/db/Makefile

64 lines
1.8 KiB
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.24 2001/06/08 23:26:51 matt Exp $
COMMENT= "Berkeley DB package, revision 3"
1997-11-26 08:11:17 -05:00
DISTNAME= db-3.1.17
1997-11-26 08:11:17 -05:00
CATEGORIES= databases
NEED_VERSION= 1.402
MASTER_SITES= http://www.sleepycat.com/update/3.1.17/
HOMEPAGE= http://www.sleepycat.com/
1998-10-08 00:23:55 -04:00
JDK_VERSION= 1.1.8
MAINTAINER= ports@openbsd.org
1997-11-26 08:11:17 -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
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
WRKBUILD= ${WRKDIST}/build_unix
FLAVORS= java
FLAVOR?=
.if ${FLAVOR:L:Mjava}
BROKEN= "requires native JDK"
ONLY_FOR_ARCHS= i386
BUILD_DEPENDS= ${LOCALBASE}/jdk${JDK_VERSION}/bin/java::devel/jdk/1.1
CONFIGURE_ARGS+= --enable-java
PORTPATH= /usr/bin:/bin:/usr/sbin:/sbin:${LOCALBASE}/bin:${X11BASE}/bin:${LOCALBASE}/jdk${JDK_VERSION}/bin
.endif
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:
@${INSTALL_DATA_DIR} ${PREFIX}/share/examples/db
@mv ${PREFIX}/include/db.h ${PREFIX}/include/db3.h
.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
@echo "Installing samples: ${PREFIX}/share/examples/db ..."
@cd ${WRKSRC}/examples_c; ${INSTALL_DATA} *.c \
1998-10-08 00:23:55 -04:00
${PREFIX}/share/examples/db
@cd ${WRKSRC}/examples_cxx; ${INSTALL_DATA} *.cpp \
1998-10-08 00:23:55 -04:00
${PREFIX}/share/examples/db
.if ${FLAVOR:L:Mjava}
@cd ${WRKSRC}/examples_java; ${INSTALL_DATA} *.java \
${PREFIX}/share/examples/db
.endif
1997-11-26 08:11:17 -05:00
.include <bsd.port.mk>