2013-09-20 16:13:47 +00:00
|
|
|
# Created by: Gea-Suan Lin <gslin@gslin.org>
|
2009-11-09 16:43:06 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= db48
|
2010-05-13 22:29:16 +00:00
|
|
|
PORTVERSION= 4.8.30.0
|
2014-07-02 20:59:24 +00:00
|
|
|
PORTREVISION= 2
|
2009-11-09 16:43:06 +00:00
|
|
|
CATEGORIES= databases
|
2014-06-06 18:56:28 +00:00
|
|
|
MASTER_SITES= http://download.oracle.com/berkeley-db/
|
2009-11-09 16:43:06 +00:00
|
|
|
PKGNAMEPREFIX?=
|
|
|
|
DISTNAME= db-${PORTVERSION:R}
|
|
|
|
DIST_SUBDIR= bdb
|
|
|
|
|
2016-04-12 05:54:17 +00:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2016-04-03 22:15:36 +00:00
|
|
|
COMMENT= Berkeley DB package, revision 4.8
|
|
|
|
|
|
|
|
LICENSE= BSD3CLAUSE
|
|
|
|
LICENSE_FILE= ${WRKDIR}/${DISTNAME}/LICENSE
|
2014-06-06 18:56:28 +00:00
|
|
|
|
2016-04-12 05:43:16 +00:00
|
|
|
DEPRECATED= Please migrate to db5 or db6, make sure that bitcoin and siblings moved to another database or version by then
|
|
|
|
# This port expires along with FreeBSD 10.X.
|
|
|
|
EXPIRATION_DATE= 2018-04-30
|
2009-11-09 16:43:06 +00:00
|
|
|
|
|
|
|
BDBVER= ${PORTVERSION:R:R}
|
|
|
|
CONFIGURE_ARGS= --enable-compat185 --enable-dump185 --enable-cxx \
|
|
|
|
--includedir=${PREFIX}/include/${PORTNAME} \
|
|
|
|
--libdir=${PREFIX}/lib/${PORTNAME} \
|
|
|
|
--bindir=${PREFIX}/bin/${PORTNAME}
|
|
|
|
CONFIGURE_SCRIPT= ../dist/configure
|
2014-06-06 18:56:28 +00:00
|
|
|
USES= libtool:keepla
|
2009-11-09 16:43:06 +00:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
INSTALL_TARGET= install_include install_lib install_utilities
|
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}/build_unix
|
|
|
|
USE_LDCONFIG= yes
|
|
|
|
|
2015-05-07 17:35:33 +00:00
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
2017-10-10 21:31:30 +00:00
|
|
|
.if ${ARCH} == aarch64 || ${ARCH} == armv6 || ${ARCH} == armv7
|
2015-05-07 17:35:33 +00:00
|
|
|
# db48 uses a deprecated instruction for mutexes on ARM, fbsd bug#197227
|
|
|
|
CONFIGURE_ARGS+= --enable-posixmutexes
|
|
|
|
.endif
|
|
|
|
|
2014-06-06 18:56:28 +00:00
|
|
|
post-patch:
|
|
|
|
${REINPLACE_CMD} -Ee 's|--mode=install cp -p|--mode=install ${INSTALL} -s|;' ${WRKSRC}/${CONFIGURE_SCRIPT}
|
2016-04-17 20:51:21 +00:00
|
|
|
${REINPLACE_CMD} -Ee 's/[[:<:]]atomic_init[[:>:]]/db_atomic_init/g' ${WRKSRC}/../dbinc/atomic.h ${WRKSRC}/../mp/mp_*.c ${WRKSRC}/../mutex/mut_*.c
|
2014-06-06 18:56:28 +00:00
|
|
|
|
2009-11-09 16:43:06 +00:00
|
|
|
post-install:
|
|
|
|
.for i in libdb libdb_cxx
|
2014-02-02 11:00:07 +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
|
2009-11-09 16:43:06 +00:00
|
|
|
.endfor
|
2014-02-02 11:00:07 +00:00
|
|
|
cd ${STAGEDIR}${PREFIX}/bin/${PORTNAME}; \
|
2009-11-09 16:43:06 +00:00
|
|
|
for i in *; do ${LN} -s -f ${PORTNAME}/$$i ../$$i-${BDBVER}; done
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|