aboutsummaryrefslogtreecommitdiffstats
path: root/databases/p5-BerkeleyDB/Makefile
blob: 01793893e4511c46365439da842053e3cb8c41cd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# ports collection makefile for:    perl interface to Berkeley DB v3
# Date created:             3 January 2001
# Whom:                 T. William Wells <bill@twwells.com>
#
# $FreeBSD$
#

PORTNAME=   BerkeleyDB
PORTVERSION=    0.15
PORTREVISION=   2
CATEGORIES= databases perl5
MASTER_SITES=   $(MASTER_SITE_PERL_CPAN)
MASTER_SITE_SUBDIR= BerkeleyDB
PKGNAMEPREFIX=  p5-

MAINTAINER= bill@twwells.com

LIB_DEPENDS=    db3.2:${PORTSDIR}/databases/db3

PERL_CONFIGURE= yes
ALL_TARGET= all test

MAN3=       BerkeleyDB.3
MAN3PREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION}

post-patch:
    ${PERL} -pi -e 's|^(INCLUDE\s+= )./libraries/.*$$|$$1\$(PREFIX)/include/db3|g; \
        s|^(LIB\s+= )./libraries/.*$$|$$1$(PREFIX)/lib|g' ${WRKSRC}/config.in
    ${PERL} -pi -e 's|^#DBNAME.*|DBNAME = -ldb3|' ${WRKSRC}/config.in
    ${PERL} -pi -e '$$_="" if /MAN3PODS/' ${WRKSRC}/Makefile.PL

.include <bsd.port.mk>