mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-25 04:43:33 +00:00
b205b2b73e
- Use RANDOMIZE_MASTER_SITES, USE_LDCONFIG - Add patch.4.2.52.5 from vendor PR: ports/105270 Submitted by: Matthias Andree (maintainer)
49 lines
1.6 KiB
Makefile
49 lines
1.6 KiB
Makefile
MASTER_SITES= http://download-east.oracle.com/berkeley-db/ \
|
|
http://download-west.oracle.com/berkeley-db/ \
|
|
http://download-uk.oracle.com/berkeley-db/
|
|
DISTNAME?= db-${PORTVERSION}
|
|
DIST_SUBDIR= bdb
|
|
|
|
PATCH_SITES= http://www.oracle.com/technology/products/berkeley-db/db/update/${PORTVERSION}/
|
|
PATCH_DIST_STRIP= -d ${WRKDIR}/${DISTNAME}
|
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}/build_unix
|
|
|
|
USE_LDCONFIG= yes
|
|
USE_AUTOTOOLS= libtool: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 \
|
|
--enable-rpc \
|
|
--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 -f ${PORTNAME}/$$i ../$$i-${BDBVER} ; done
|