226faa7c29
to go about their rotten business. It is issued without acknowledgment of any obligation, in response to ports/64393. The patch does NOT bump PORTREVISION as the change is invisible for the port's or package's users. $FreeBSD$ is sufficient. I also refute any "bug" with respect to the the porter's handbook's pages referenced in ports/64393, my port has not written anything after bsd.port.mk and portlint has nothing to complain about (only that it can't figure "patch" is legal in a PATCHFILES variable). Informational: tools that assume .include <bsd.port.[post.]mk> was the last line in a port's makefile are broken. They should be comparing the output of realpath $(make -V MASTERDIR) against the output of realpath $(pwd) instead: -bash-2.05b$ realpath $(pwd) /usr/home/ma/db42 -bash-2.05b$ realpath $(make -V MASTERDIR) /usr/home/ma/db42 -bash-2.05b$ cd ../db42-nocrypto # switch to slave's port directory -bash-2.05b$ realpath $(make -V MASTERDIR) /usr/home/ma/db42 -bash-2.05b$ realpath $(pwd) /usr/home/ma/db42-nocrypto PR: 64479 Submitted by: Matthias Andree <matthias.andree@gmx.de> (maintainer)
46 lines
1.4 KiB
Text
46 lines
1.4 KiB
Text
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 \
|
|
--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}
|
|
|
|
pre-configure:
|
|
${CHMOD} u+w ${WRKSRC}/../dist/configure
|
|
|
|
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
|