2013-09-20 16:13:47 +00:00
|
|
|
# Created by: Matthias Andree <matthias.andree@gmx.de>
|
1999-08-25 05:28:01 +00:00
|
|
|
# $FreeBSD$
|
1997-06-13 17:54:36 +00:00
|
|
|
|
2004-12-05 03:03:15 +00:00
|
|
|
PORTNAME= db43
|
2005-10-05 06:41:54 +00:00
|
|
|
PORTVERSION= 4.3.29
|
2006-11-08 05:20:54 +00:00
|
|
|
PORTREVISION= 1
|
1997-06-13 17:54:36 +00:00
|
|
|
CATEGORIES= databases
|
2010-11-12 09:03:26 +00:00
|
|
|
MASTER_SITES= http://download.oracle.com/berkeley-db/
|
2006-11-08 05:20:54 +00:00
|
|
|
DISTNAME= db-${PORTVERSION}
|
2004-12-28 22:02:11 +00:00
|
|
|
DIST_SUBDIR= bdb
|
2003-02-16 05:54:21 +00:00
|
|
|
|
2010-06-13 11:57:36 +00:00
|
|
|
MAINTAINER= mandree@FreeBSD.org
|
2004-12-05 03:03:15 +00:00
|
|
|
COMMENT= The Berkeley DB package, revision 4.3
|
2002-11-20 13:15:12 +00:00
|
|
|
|
2004-12-28 22:02:11 +00:00
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}/build_unix
|
2004-03-03 11:21:33 +00:00
|
|
|
|
2013-12-16 20:46:12 +00:00
|
|
|
DEPRECATED= Please use databases/db5 or db6 for new installs.
|
2013-12-13 23:27:33 +00:00
|
|
|
|
2006-11-08 05:20:54 +00:00
|
|
|
USE_LDCONFIG= yes
|
2006-02-23 10:40:44 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2004-12-28 22:02:11 +00:00
|
|
|
CONFIGURE_SCRIPT= ../dist/configure
|
|
|
|
LIBTOOLFILES= ${CONFIGURE_SCRIPT}
|
|
|
|
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
|
2014-02-02 10:08:02 +00:00
|
|
|
|
2004-12-28 22:02:11 +00:00
|
|
|
INSTALL_TARGET+= install_docs docdir=${DOCSDIR}
|
|
|
|
PORTDOCS= *
|
|
|
|
|
2014-07-04 23:27:46 +00:00
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
2004-12-28 22:02:11 +00:00
|
|
|
pre-patch:
|
2007-02-07 06:40:40 +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-12-28 22:02:11 +00:00
|
|
|
|
|
|
|
pre-configure:
|
|
|
|
${CHMOD} u+w ${WRKSRC}/../dist/configure
|
|
|
|
|
2005-07-29 10:44:59 +00:00
|
|
|
post-configure:
|
2007-02-07 06:40:40 +00:00
|
|
|
${REINPLACE_CMD} -e '/^extern void db_rpc_serverprog/ d;' ${WRKSRC}/db_server.h
|
2005-07-29 10:44:59 +00:00
|
|
|
|
2004-12-28 22:02:11 +00:00
|
|
|
post-install:
|
|
|
|
.for i in libdb libdb_cxx
|
2014-02-02 10:08:02 +00:00
|
|
|
${LN} -s -f ${PORTNAME}/${i}-${BDBVER}.so.0 ${STAGEDIR}${PREFIX}/lib
|
|
|
|
${LN} -s -f ${i}-${BDBVER}.so.0 ${STAGEDIR}${PREFIX}/lib/${i}-${BDBVER}.so
|
2004-12-28 22:02:11 +00:00
|
|
|
.endfor
|
2014-07-04 23:27:46 +00:00
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
2004-12-28 22:02:11 +00:00
|
|
|
@${RMDIR} ${DOCSDIR}/ref/splash 2>/dev/null || :
|
|
|
|
.endif
|
2014-02-02 10:08:02 +00:00
|
|
|
cd ${STAGEDIR}${PREFIX}/bin/${PORTNAME} ; \
|
2004-12-28 22:02:11 +00:00
|
|
|
for i in * ; do ${LN} -s -f ${PORTNAME}/$$i ../$$i-${BDBVER} ; done
|
2004-06-26 11:13:16 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${ARCH} == amd64
|
|
|
|
CONFIGURE_ARGS+= --with-mutex=x86/gcc-assembly
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|