freebsd-ports/databases/p5-BDB/Makefile
Sunpoet Po-Chuan Hsieh 7c0d59ffd1 - Update USE_BDB
- Use -lpthread instead of -pthread
- Cleanup -lpthread/-pthread manipulation
2015-03-25 15:45:16 +00:00

30 lines
672 B
Makefile

# Created by: Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
# $FreeBSD$
PORTNAME= BDB
PORTVERSION= 1.90
PORTREVISION= 2
CATEGORIES= databases perl5
MASTER_SITES= CPAN
MASTER_SITE_SUBDIR= CPAN:MLEHMANN
PKGNAMEPREFIX= p5-
DISTNAME= ${PORTNAME}-${PORTVERSION:C/0$//}
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Asynchronous Berkeley DB access
BUILD_DEPENDS= p5-common-sense>=0:${PORTSDIR}/devel/p5-common-sense
RUN_DEPENDS:= ${BUILD_DEPENDS}
PORTSCOUT= skipv:1.801
CFLAGS+= -I${BDB_INCLUDE_DIR}
LDFLAGS+= -lpthread
USE_BDB= yes
USE_PERL5= configure
USES= perl5
post-patch:
@${REINPLACE_CMD} -e '18 s|-ldb|-l${BDB_LIB_NAME}|' ${WRKSRC}/Makefile.PL
.include <bsd.port.mk>