2010-11-12 09:03:26 +00:00
|
|
|
MASTER_SITES= http://download.oracle.com/berkeley-db/
|
2004-01-09 09:45:37 +00:00
|
|
|
DISTNAME?= db-${PORTVERSION}
|
|
|
|
DIST_SUBDIR= bdb
|
|
|
|
|
2010-11-12 09:03:26 +00:00
|
|
|
PATCH_SITES= http://download.oracle.com/berkeley-db/patches/db/${PORTVERSION}/
|
2004-01-09 09:45:37 +00:00
|
|
|
PATCH_DIST_STRIP= -d ${WRKDIR}/${DISTNAME}
|
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}/build_unix
|
|
|
|
|
2006-11-08 05:20:31 +00:00
|
|
|
USE_LDCONFIG= yes
|
2010-12-04 07:34:27 +00:00
|
|
|
USE_AUTOTOOLS= libtool
|
2004-01-09 09:45:37 +00:00
|
|
|
CONFIGURE_SCRIPT= ../dist/configure
|
2004-02-26 01:59:27 +00:00
|
|
|
LIBTOOLFILES= ${CONFIGURE_SCRIPT}
|
2004-01-09 09:45:37 +00:00
|
|
|
BDBVER= ${PORTVERSION:R}
|
|
|
|
BDBMINOR= ${BDBVER:E:S/^\.//}
|
|
|
|
BDBDIR= BerkeleyDB.${BDBVER}
|
|
|
|
CONFIGURE_ARGS= --enable-compat185 --enable-dump185 \
|
|
|
|
--enable-cxx --enable-dynamic \
|
2004-05-27 08:32:20 +00:00
|
|
|
--enable-rpc \
|
2004-01-09 09:45:37 +00:00
|
|
|
--with-uniquename \
|
|
|
|
--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:
|
2007-02-07 06:39:51 +00:00
|
|
|
${REINPLACE_CMD} -Ee 's|-l?pthread|${PTHREAD_LIBS}|g; s,/usr/bin/objformat \|\| echo aout,/usr/bin/objformat || echo elf,' ${WRKSRC}/${CONFIGURE_SCRIPT}
|
2004-01-09 09:45:37 +00:00
|
|
|
|
2004-02-26 01:59:27 +00:00
|
|
|
pre-configure:
|
|
|
|
${CHMOD} u+w ${WRKSRC}/../dist/configure
|
|
|
|
|
2004-01-09 09:45:37 +00:00
|
|
|
post-install:
|
|
|
|
.for i in libdb libdb_cxx
|
|
|
|
${LN} -s -f ${PORTNAME}/${i}-${BDBVER}.so.${BDBMINOR} ${PREFIX}/lib
|
2004-01-14 21:13:42 +00:00
|
|
|
${LN} -s -f ${i}-${BDBVER}.so.${BDBMINOR} ${PREFIX}/lib/${i}-${BDBVER}.so
|
2004-01-09 09:45:37 +00:00
|
|
|
.endfor
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${RMDIR} ${DOCSDIR}/ref/splash 2>/dev/null || :
|
|
|
|
.endif
|
|
|
|
cd ${PREFIX}/bin/${PORTNAME} ; \
|
2004-06-14 08:51:07 +00:00
|
|
|
for i in * ; do ${LN} -s -f ${PORTNAME}/$$i ../$$i-${BDBVER} ; done
|