1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-22 00:35:15 +00:00
freebsd-ports/databases/db43/Makefile
2014-07-04 23:27:46 +00:00

67 lines
1.8 KiB
Makefile

# Created by: Matthias Andree <matthias.andree@gmx.de>
# $FreeBSD$
PORTNAME= db43
PORTVERSION= 4.3.29
PORTREVISION= 1
CATEGORIES= databases
MASTER_SITES= http://download.oracle.com/berkeley-db/
DISTNAME= db-${PORTVERSION}
DIST_SUBDIR= bdb
MAINTAINER= mandree@FreeBSD.org
COMMENT= The Berkeley DB package, revision 4.3
WRKSRC= ${WRKDIR}/${DISTNAME}/build_unix
DEPRECATED= Please use databases/db5 or db6 for new installs.
USE_LDCONFIG= yes
GNU_CONFIGURE= yes
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
INSTALL_TARGET+= install_docs docdir=${DOCSDIR}
PORTDOCS= *
OPTIONS_DEFINE= DOCS
.include <bsd.port.options.mk>
pre-patch:
${REINPLACE_CMD} -Ee 's|-l?pthread|${PTHREAD_LIBS}|g; s,/usr/bin/objformat \|\| echo aout,/usr/bin/objformat || echo elf,' ${WRKSRC}/${CONFIGURE_SCRIPT}
pre-configure:
${CHMOD} u+w ${WRKSRC}/../dist/configure
post-configure:
${REINPLACE_CMD} -e '/^extern void db_rpc_serverprog/ d;' ${WRKSRC}/db_server.h
post-install:
.for i in libdb libdb_cxx
${LN} -s -f ${PORTNAME}/${i}-${BDBVER}.so.0 ${STAGEDIR}${PREFIX}/lib
${LN} -s -f ${i}-${BDBVER}.so.0 ${STAGEDIR}${PREFIX}/lib/${i}-${BDBVER}.so
.endfor
.if ${PORT_OPTIONS:MDOCS}
@${RMDIR} ${DOCSDIR}/ref/splash 2>/dev/null || :
.endif
cd ${STAGEDIR}${PREFIX}/bin/${PORTNAME} ; \
for i in * ; do ${LN} -s -f ${PORTNAME}/$$i ../$$i-${BDBVER} ; done
.include <bsd.port.pre.mk>
.if ${ARCH} == amd64
CONFIGURE_ARGS+= --with-mutex=x86/gcc-assembly
.endif
.include <bsd.port.post.mk>