2006-01-10 13:47:50 -05:00
|
|
|
# $OpenBSD: Makefile.inc,v 1.17 2006/01/10 18:47:50 espie Exp $
|
2003-12-08 12:37:52 -05:00
|
|
|
|
|
|
|
COMMENT= "Berkeley DB package, revision ${REVISION}"
|
2004-09-24 16:47:21 -04:00
|
|
|
COMMENT-tcl= "TCL bindings for Berkeley DB, revision ${REVISION}"
|
2003-12-08 12:37:52 -05:00
|
|
|
|
|
|
|
DISTNAME= db-${VERSION}
|
2005-01-23 05:30:02 -05:00
|
|
|
PKGNAME-tcl= db-tcl-${VERSION}p1
|
2003-12-08 12:37:52 -05:00
|
|
|
CATEGORIES= databases
|
|
|
|
HOMEPAGE= http://www.sleepycat.com/
|
2004-06-30 03:43:31 -04:00
|
|
|
MASTER_SITES= ${HOMEPAGE}/update/snapshot/ \
|
|
|
|
ftp://sleepycat1.inetu.net/releases/
|
2003-12-08 12:37:52 -05:00
|
|
|
|
|
|
|
# License: BSD + SleepyCat's additions.
|
|
|
|
# Must purchase license to redistribute if not distributing the source.
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
2005-12-25 15:35:41 -05:00
|
|
|
USE_LIBTOOL= Yes
|
|
|
|
|
2003-12-08 12:37:52 -05:00
|
|
|
CONFIGURE_SCRIPT= ../dist/configure
|
2004-09-24 16:47:21 -04:00
|
|
|
CONFIGURE_ARGS+= ${CONFIGURE_SHARED} \
|
|
|
|
--enable-compat185 \
|
2003-12-08 12:37:52 -05:00
|
|
|
--enable-dump185 \
|
|
|
|
--enable-cxx \
|
|
|
|
--includedir=$$\{prefix}/include/db${DEST_SUBDIR} \
|
2004-07-03 19:17:00 -04:00
|
|
|
--libdir=$$\{prefix}/lib/db${DEST_SUBDIR}
|
2003-12-08 12:37:52 -05:00
|
|
|
|
2004-07-31 17:17:21 -04:00
|
|
|
MODGNU_CONFIG_GUESS_DIRS= ${WRKSRC}/dist
|
2003-12-08 12:37:52 -05:00
|
|
|
|
2005-12-28 03:50:09 -05:00
|
|
|
MAKE_FLAGS= DBVERSION=${LIBdb_VERSION} \
|
|
|
|
DBCXXVERSION=${LIBdb_cxx_VERSION} \
|
|
|
|
DBTCLVERSION=${LIBdb_tcl_VERSION}
|
|
|
|
FAKE_FLAGS= ${MAKE_FLAGS} DESTDIR=${WRKINST}
|
|
|
|
|
2003-12-08 12:37:52 -05:00
|
|
|
WRKBUILD= ${WRKDIST}/build_unix
|
|
|
|
|
2004-09-24 16:47:21 -04:00
|
|
|
PSEUDO_FLAVORS= no_tcl
|
2003-12-08 12:37:52 -05:00
|
|
|
FLAVOR?=
|
|
|
|
|
2004-09-24 16:47:21 -04:00
|
|
|
.if !${FLAVOR:L:Mno_tcl}
|
2003-12-08 12:37:52 -05:00
|
|
|
NOT_FOR_ARCHS= ${NO_SHARED_ARCHS}
|
|
|
|
|
2004-09-24 16:47:21 -04:00
|
|
|
MULTI_PACKAGES= -tcl
|
|
|
|
SUBPACKAGE?=
|
|
|
|
|
2004-01-10 03:36:27 -05:00
|
|
|
TCL_VERSION= 8.4
|
2004-11-15 21:31:28 -05:00
|
|
|
LIB_DEPENDS= tcl${TCL_VERSION:S/.//}:tcl-${TCL_VERSION}.*:lang/tcl/${TCL_VERSION}
|
2003-12-08 12:37:52 -05:00
|
|
|
CFLAGS+= -I${LOCALBASE}/include/tcl${TCL_VERSION}
|
|
|
|
CONFIGURE_ARGS+=--enable-tcl \
|
|
|
|
--with-tcl=${LOCALBASE}/lib/tcl${TCL_VERSION}
|
|
|
|
|
2004-09-24 16:47:21 -04:00
|
|
|
. if defined(PACKAGING)
|
|
|
|
. if ${SUBPACKAGE} == "-tcl"
|
2005-01-23 05:28:07 -05:00
|
|
|
LIB_DEPENDS+= ${DBLIBDIR}/db.=${REVISION}:db-${REVISION}.*:databases/db/v${REVISION}
|
2004-09-24 16:47:21 -04:00
|
|
|
. else
|
|
|
|
LIB_DEPENDS=
|
|
|
|
. endif
|
|
|
|
. endif
|
|
|
|
|
2003-12-08 12:37:52 -05:00
|
|
|
# this compiles slightly different code, some tests fail nevertheless
|
|
|
|
#CONFIGURE_ARGS+=--enable-test
|
|
|
|
|
|
|
|
do-regress:
|
2004-01-14 14:50:15 -05:00
|
|
|
@cd ${WRKBUILD}; env PATH=${PORTPATH} tclsh${TCL_VERSION} ${FILESDIR}/regress.tcl
|
2003-12-08 12:37:52 -05:00
|
|
|
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-tcl
|
|
|
|
# regression tests need tcl
|
|
|
|
NO_REGRESS= Yes
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/db${DEST_SUBDIR}
|
|
|
|
cd ${WRKSRC}/examples_c; ${INSTALL_DATA} *.c \
|
|
|
|
${PREFIX}/share/examples/db${DEST_SUBDIR}
|
|
|
|
cd ${WRKSRC}/examples_cxx; ${INSTALL_DATA} *.cpp \
|
|
|
|
${PREFIX}/share/examples/db${DEST_SUBDIR}
|
|
|
|
|