mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-24 04:33:24 +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.9 KiB
Makefile
60 lines
1.9 KiB
Makefile
# New ports collection makefile for: db45
|
|
# Date created: 2007-05-10
|
|
# Whom: Gea-Suan Lin <gslin@gslin.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= db45
|
|
PORTVERSION= 4.5.20.2
|
|
CATEGORIES= databases
|
|
MASTER_SITES= http://download.oracle.com/berkeley-db/
|
|
PKGNAMEPREFIX?=
|
|
DISTNAME= db-${PORTVERSION:R}
|
|
DIST_SUBDIR= bdb
|
|
|
|
PATCH_SITES= http://download.oracle.com/berkeley-db/patches/db/${PORTVERSION:R}/
|
|
PATCHFILES= patch.4.5.20.1 patch.4.5.20.2
|
|
PATCH_DIST_STRIP= -d .. -l
|
|
# * patch.4.5.20.1: -----------------------------------------------------------
|
|
# Fixes access to sequences in the Java API in DB 4.5.20.
|
|
# * patch.4.5.20.2: -----------------------------------------------------------
|
|
# Fixes a problem introduced in 4.5.20 when we changed the way DBTs are copied
|
|
# in calls from the Java API into the core API.
|
|
|
|
# I allow matthias.andree@gmx.de and all freebsd committer to do changes
|
|
# to this package.
|
|
|
|
MAINTAINER= gslin@gslin.org
|
|
COMMENT= The Berkeley DB package, revision 4.5
|
|
|
|
BDBVER= ${PORTVERSION:R:R}
|
|
CONFIGURE_ARGS= --enable-compat185 --enable-dump185 --enable-cxx \
|
|
--enable-dynamic --enable-rpc --enable-pthread_api \
|
|
--includedir=${PREFIX}/include/${PORTNAME} \
|
|
--libdir=${PREFIX}/lib/${PORTNAME} \
|
|
--bindir=${PREFIX}/bin/${PORTNAME}
|
|
DEBUG_FLAGS= -g -O1 # need -O1 for inline assembly
|
|
CONFIGURE_SCRIPT= ../dist/configure
|
|
GNU_CONFIGURE= yes
|
|
MAKE_JOBS_SAFE= yes
|
|
INSTALL_TARGET= install_include install_lib install_utilities
|
|
LIBTOOLFILES= ${CONFIGURE_SCRIPT}
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}/build_unix
|
|
USE_LDCONFIG= yes
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
INSTALL_TARGET+= install_docs docdir=${DOCSDIR}
|
|
PORTDOCS= *
|
|
.endif
|
|
|
|
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
|
|
cd ${PREFIX}/bin/${PORTNAME} ; \
|
|
for i in * ; do ${LN} -s -f ${PORTNAME}/$$i ../$$i-${BDBVER} ; done
|
|
|
|
.include <bsd.port.mk>
|