aboutsummaryrefslogtreecommitdiffstats
path: root/databases/p5-BDB/Makefile
blob: 94a7cdac54ea9843aa9cec652daecbe47026d328 (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
33
# Created by: Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
# $FreeBSD$

PORTNAME=   BDB
PORTVERSION=    1.91
CATEGORIES= databases perl5
MASTER_SITES=   CPAN
MASTER_SITE_SUBDIR= CPAN:MLEHMANN
PKGNAMEPREFIX=  p5-

MAINTAINER= sunpoet@FreeBSD.org
COMMENT=    Asynchronous Berkeley DB access

LICENSE=    ART10 GPLv1+
LICENSE_COMB=   dual

BUILD_DEPENDS=  p5-common-sense>=0:devel/p5-common-sense
RUN_DEPENDS:=   ${BUILD_DEPENDS}

PORTSCOUT=  skipv:1.801

CFLAGS+=    -I${BDB_INCLUDE_DIR}
LDFLAGS+=   -lpthread
USE_PERL5=  configure
USES=       bdb perl5

post-patch:
    @${REINPLACE_CMD} -e 's|-ldb|-l${BDB_LIB_NAME}|' ${WRKSRC}/Makefile.PL

post-install:
    ${STRIP_CMD} ${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/auto/BDB/BDB.so

.include <bsd.port.mk>