freebsd-ports/databases/db47/Makefile.db
Kirill Ponomarev ec1d041e56 - Install libdb-4.2.so and libdb_cxx-4.2.so so that gcc -ldb-4.2
works. These are symlinks to libdb*-4.2.so.2 (the SONAME).
- Bump PORTREVISION

PR:		61283
Submitted by:	maintainer
2004-01-14 21:13:42 +00:00

48 lines
1.5 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
# Do not use GNU_CONFIGURE or USE_LIBTOOL, it adds a --prefix option
# we do not want in CONFIGURE_ARGS, and currently (2003-12-09) breaks
# with its non-standard ${CONFIGURE_SCRIPT}.
USE_REINPLACE= yes
INSTALLS_SHLIB= yes
HAS_CONFIGURE= yes
CONFIGURE_SCRIPT= ../dist/configure
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 \
--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:
@${REINPLACE_CMD} -Ee 's|-l?pthread|${PTHREAD_LIBS}|g' ${WRKSRC}/${CONFIGURE_SCRIPT}
post-install:
.for i in libdb libdb_cxx
${LN} -s -f ${PORTNAME}/${i}-${BDBVER}.so.${BDBMINOR} ${PREFIX}/lib
${LN} -s -f ${i}-${BDBVER}.so.${BDBMINOR} ${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 ${PORTNAME}/$$i ../$$i-${BDBVER} ; done
.include <bsd.port.mk>