2005-11-25 21:45:27 +01:00
|
|
|
# ports collection makefile for: Berkeley DB v4.4
|
|
|
|
# Date created: 2005-11-21
|
2004-01-09 10:45:37 +01:00
|
|
|
# Whom: Matthias Andree <matthias.andree@gmx.de>
|
1997-06-13 19:54:36 +02:00
|
|
|
#
|
1999-08-25 07:28:01 +02:00
|
|
|
# $FreeBSD$
|
1997-06-13 19:54:36 +02:00
|
|
|
#
|
|
|
|
|
2005-11-25 21:45:27 +01:00
|
|
|
PORTNAME= db44
|
2006-11-08 06:26:36 +01:00
|
|
|
PORTVERSION= 4.4.20.4
|
1997-06-13 19:54:36 +02:00
|
|
|
CATEGORIES= databases
|
2010-11-12 10:03:26 +01:00
|
|
|
MASTER_SITES= http://download.oracle.com/berkeley-db/
|
2003-02-16 06:54:21 +01:00
|
|
|
PKGNAMESUFFIX?=
|
2006-02-09 11:05:01 +01:00
|
|
|
DISTNAME= db-4.4.20
|
2004-12-28 23:02:11 +01:00
|
|
|
DIST_SUBDIR= bdb
|
2003-02-16 06:54:21 +01:00
|
|
|
|
2010-06-13 13:57:36 +02:00
|
|
|
MAINTAINER= mandree@FreeBSD.org
|
2005-11-25 21:45:27 +01:00
|
|
|
COMMENT= The Berkeley DB package, revision 4.4
|
2002-11-20 14:15:12 +01:00
|
|
|
|
2004-12-28 23:02:11 +01:00
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}/build_unix
|
2004-03-03 12:21:33 +01:00
|
|
|
|
2006-11-08 06:26:36 +01:00
|
|
|
USE_LDCONFIG= yes
|
2010-10-09 15:54:56 +02:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
DEBUG_FLAGS= -g -O1 # need -O1 for inline assembly
|
2004-12-28 23:02:11 +01:00
|
|
|
CONFIGURE_SCRIPT= ../dist/configure
|
|
|
|
LIBTOOLFILES= ${CONFIGURE_SCRIPT}
|
2006-02-09 11:05:01 +01:00
|
|
|
BDBVER= ${PORTVERSION:R:R}
|
2004-12-28 23:02:11 +01:00
|
|
|
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:
|
2005-11-25 21:45:27 +01:00
|
|
|
@${CHMOD} u+w ${WRKSRC}/../dist/configure
|
2004-12-28 23:02:11 +01:00
|
|
|
|
2005-07-29 12:44:59 +02:00
|
|
|
post-configure:
|
|
|
|
@${REINPLACE_CMD} -e '/^extern void db_rpc_serverprog/ d;' ${WRKSRC}/db_server.h
|
|
|
|
|
2004-12-28 23:02:11 +01:00
|
|
|
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
|
2004-06-26 13:13:16 +02:00
|
|
|
|
2005-11-25 21:45:27 +01:00
|
|
|
.include <bsd.port.mk>
|