bd4698ebe2
- Description as follows Version 4.3 of the Berkeley Data Base library which offers (key/value) storage with optional concurrent access or transactions interface. Utilities are included in the distribution to convert v1.85 databases to v4.3 databases, and a backwards compatible API is provided to maintain compatibility with programs using the v1.85 interface. For details on compatibility with other DB versions, see: http://www.sleepycat.com/download/patchlogs.shtml PR: ports/73790 Submitted by: Matthias Andree <matthias dot andree at gmx dot de>
47 lines
1.4 KiB
Makefile
47 lines
1.4 KiB
Makefile
MASTER_SITES= http://www.sleepycat.com/update/snapshot/
|
|
DISTNAME?= db-${PORTVERSION}
|
|
DIST_SUBDIR= bdb
|
|
|
|
PATCH_SITES= http://www.sleepycat.com/update/${PORTVERSION}/
|
|
PATCH_DIST_STRIP= -d ${WRKDIR}/${DISTNAME}
|
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}/build_unix
|
|
|
|
USE_REINPLACE= yes
|
|
INSTALLS_SHLIB= yes
|
|
USE_LIBTOOL_VER= 15
|
|
CONFIGURE_SCRIPT= ../dist/configure
|
|
LIBTOOLFILES= ${CONFIGURE_SCRIPT}
|
|
CONFIGURE_TARGET= --target=${ARCH}-portbld-freebsd${OSREL}
|
|
BDBVER= ${PORTVERSION:R}
|
|
BDBMINOR= ${BDBVER:E:S/^\.//}
|
|
BDBDIR= BerkeleyDB.${BDBVER}
|
|
CONFIGURE_ARGS= --enable-compat185 --enable-dump185 \
|
|
--enable-cxx --enable-dynamic \
|
|
--enable-rpc \
|
|
--includedir=${PREFIX}/include/${PORTNAME} \
|
|
--libdir=${PREFIX}/lib/${PORTNAME} \
|
|
--bindir=${PREFIX}/bin/${PORTNAME}
|
|
INSTALL_TARGET= install_include install_lib install_utilities
|
|
.if !defined(NOPORTDOCS)
|
|
INSTALL_TARGET+= install_docs docdir=${DOCSDIR}
|
|
PORTDOCS= *
|
|
.endif
|
|
|
|
pre-patch:
|
|
@${REINPLACE_CMD} -Ee 's|-l?pthread|${PTHREAD_LIBS}|g' ${WRKSRC}/${CONFIGURE_SCRIPT}
|
|
|
|
pre-configure:
|
|
${CHMOD} u+w ${WRKSRC}/../dist/configure
|
|
|
|
post-install:
|
|
.for i in libdb libdb_cxx
|
|
${LN} -s -f ${PORTNAME}/${i}-${BDBVER}.so.0 ${PREFIX}/lib
|
|
${LN} -s -f ${i}-${BDBVER}.so.0 ${PREFIX}/lib/${i}-${BDBVER}.so
|
|
.endfor
|
|
.if !defined(NOPORTDOCS)
|
|
@${RMDIR} ${DOCSDIR}/ref/splash 2>/dev/null || :
|
|
.endif
|
|
cd ${PREFIX}/bin/${PORTNAME} ; \
|
|
for i in * ; do ${LN} -s -f ${PORTNAME}/$$i ../$$i-${BDBVER} ; done
|