mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-21 04:06:46 +00:00
4e8777dbb8
Submitted by: "Herbert J. Skuhra" <h.skuhra@gmail.com> PR: ports/152158 Approved by: gslin@gslin.org (for db4[5-8]) (implicit, see Makefile)
60 lines
1.6 KiB
Makefile
60 lines
1.6 KiB
Makefile
# ports collection makefile for: Berkeley DB v4.4
|
|
# Date created: 2005-11-21
|
|
# Whom: Matthias Andree <matthias.andree@gmx.de>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= db44
|
|
PORTVERSION= 4.4.20.4
|
|
CATEGORIES= databases
|
|
MASTER_SITES= http://download.oracle.com/berkeley-db/
|
|
PKGNAMESUFFIX?=
|
|
DISTNAME= db-4.4.20
|
|
DIST_SUBDIR= bdb
|
|
|
|
MAINTAINER= mandree@FreeBSD.org
|
|
COMMENT= The Berkeley DB package, revision 4.4
|
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}/build_unix
|
|
|
|
USE_LDCONFIG= yes
|
|
GNU_CONFIGURE= yes
|
|
DEBUG_FLAGS= -g -O1 # need -O1 for inline assembly
|
|
CONFIGURE_SCRIPT= ../dist/configure
|
|
LIBTOOLFILES= ${CONFIGURE_SCRIPT}
|
|
BDBVER= ${PORTVERSION:R:R}
|
|
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
|
|
.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-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 ${PREFIX}/lib
|
|
${LN} -s -f ${i}-${BDBVER}.so.0 ${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
|
|
|
|
.include <bsd.port.mk>
|