2001-11-10 10:00:47 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.28 2001/11/10 15:00:47 espie Exp $
|
2001-05-05 19:24:50 -04:00
|
|
|
|
|
|
|
COMMENT= "Berkeley DB package, revision 3"
|
1997-11-26 08:11:17 -05:00
|
|
|
|
2001-09-07 12:06:08 -04:00
|
|
|
VMM= 3.1
|
|
|
|
VERSION= ${VMM}.17
|
|
|
|
DISTNAME= db-${VERSION}
|
1997-11-26 08:11:17 -05:00
|
|
|
CATEGORIES= databases
|
2001-11-10 10:00:47 -05:00
|
|
|
NEED_VERSION= 1.489
|
2000-09-04 13:17:45 -04:00
|
|
|
HOMEPAGE= http://www.sleepycat.com/
|
2001-09-07 12:06:08 -04:00
|
|
|
MASTER_SITES= ${HOMEPAGE}/update/${VERSION}/
|
1998-10-08 00:23:55 -04:00
|
|
|
|
2000-09-04 13:17:45 -04:00
|
|
|
JDK_VERSION= 1.1.8
|
2001-09-07 12:06:08 -04:00
|
|
|
TCL_VERSION= 8.3
|
2000-09-04 13:17:45 -04:00
|
|
|
|
2001-09-07 12:06:08 -04:00
|
|
|
MAINTAINER= Heikki Korpela <heko@openbsd.org>
|
1997-11-26 08:11:17 -05:00
|
|
|
|
2001-09-07 12:06:08 -04:00
|
|
|
# License: BSD+SleepyCat's additions.
|
|
|
|
# Must purchase license to redistribute if not distributing the source.
|
2001-11-10 10:00:47 -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
|
2001-09-07 12:06:08 -04:00
|
|
|
CONFIGURE_ARGS+= --enable-compat185
|
|
|
|
CONFIGURE_ARGS+= --enable-dump185
|
|
|
|
CONFIGURE_ARGS+= --enable-static
|
|
|
|
CONFIGURE_ARGS+= ${CONFIGURE_SHARED}
|
1997-11-26 08:11:17 -05:00
|
|
|
|
2001-09-25 22:48:23 -04:00
|
|
|
MODGNU_CONFIG_GUESS_DIRS= ${WRKSRC} ${WRKSRC}/dist
|
|
|
|
|
2000-09-04 13:17:45 -04:00
|
|
|
WRKBUILD= ${WRKDIST}/build_unix
|
2000-09-23 21:32:39 -04:00
|
|
|
|
2001-09-07 12:06:08 -04:00
|
|
|
FLAVORS= java tcl c++
|
2000-09-23 21:32:39 -04:00
|
|
|
FLAVOR?=
|
2000-02-02 13:18:41 -05:00
|
|
|
|
2001-09-07 12:06:08 -04:00
|
|
|
.if ${FLAVOR:L:Mtcl}
|
|
|
|
# We can't use NO_SHARED_LIBS and IGNORE because IGNORE
|
|
|
|
# is only handled by bsd.port.mk and NO_SHARED_LIBS doesn't get
|
|
|
|
# defined until bsd.port.mk..
|
|
|
|
NOT_FOR_ARCHS= hppa mvme88k vax
|
|
|
|
LIB_DEPENDS+= tcl83.1.3::lang/tcl/${TCL_VERSION}
|
|
|
|
# Argh.
|
|
|
|
CFLAGS+=-I${LOCALBASE}/include/tcl${TCL_VERSION}
|
|
|
|
CONFIGURE_ARGS+=--enable-tcl
|
|
|
|
CONFIGURE_ARGS+=--with-tcl=${LOCALBASE}/lib/tcl${TCL_VERSION}
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-tcl
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${FLAVOR:L:Mc++}
|
|
|
|
CONFIGURE_ARGS+=--enable-cxx
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-cxx
|
|
|
|
.endif
|
|
|
|
|
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-11-10 10:00:47 -05:00
|
|
|
BUILD_DEPENDS= ::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
|
|
|
|
2001-09-07 12:06:08 -04:00
|
|
|
.if ${FLAVOR:L:Mjava}
|
2001-09-07 16:45:07 -04:00
|
|
|
post-configure:
|
|
|
|
@ln -sf ${LOCALBASE}/jdk${JDK_VERSION}/include/freebsd/jni_md.h \
|
2000-09-04 13:17:45 -04:00
|
|
|
${WRKBUILD}/jni_md.h
|
2001-09-07 12:06:08 -04:00
|
|
|
.endif
|
1997-11-26 08:11:17 -05:00
|
|
|
|
|
|
|
post-install:
|
2001-09-07 12:06:08 -04:00
|
|
|
# Renaming db.h to db3.h (to avoid conflict with /usr/include/db.h)
|
1999-12-02 02:17:10 -05:00
|
|
|
@mv ${PREFIX}/include/db.h ${PREFIX}/include/db3.h
|
2001-09-07 12:06:08 -04:00
|
|
|
|
|
|
|
# Installing examples for each language installed. (No examples for
|
|
|
|
# tcl available, only tests.)
|
2001-09-07 16:45:07 -04:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/db
|
|
|
|
cd ${WRKSRC}/examples_c; ${INSTALL_DATA} *.c \
|
1998-10-08 00:23:55 -04:00
|
|
|
${PREFIX}/share/examples/db
|
2001-09-07 12:06:08 -04:00
|
|
|
|
|
|
|
.if ${FLAVOR:L:Mc++}
|
2001-09-07 16:45:07 -04:00
|
|
|
cd ${WRKSRC}/examples_cxx; ${INSTALL_DATA} *.cpp \
|
1998-10-08 00:23:55 -04:00
|
|
|
${PREFIX}/share/examples/db
|
2001-09-07 12:06:08 -04:00
|
|
|
.endif
|
|
|
|
|
2000-09-23 21:32:39 -04:00
|
|
|
.if ${FLAVOR:L:Mjava}
|
2001-09-07 16:45:07 -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
|
|
|
|
2001-09-07 16:45:07 -04:00
|
|
|
# From PostgreSQL port Makefile.
|
2001-09-07 12:06:08 -04:00
|
|
|
.if ${FLAVOR:L:Mc++} && !defined(NO_SHARED_LIBS)
|
|
|
|
SED_PLIST+=-e '/%%SHARED-c++%%/r${PKGDIR}/PFRAG.c++.shared' -e '//d'
|
|
|
|
.elif ${FLAVOR:L:Mc++} && defined(NO_SHARED_LIBS) && \
|
2001-09-07 16:45:07 -04:00
|
|
|
${NO_SHARED_LIBS:L} == "yes"
|
2001-09-07 12:06:08 -04:00
|
|
|
SED_PLIST+=-e '/%%SHARED-c++%%/d'
|
|
|
|
.endif
|