aboutsummaryrefslogtreecommitdiffstats
path: root/net/libpcap
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2005-11-13 20:29:21 +0800
committerpav <pav@FreeBSD.org>2005-11-13 20:29:21 +0800
commitc7298250040b2663680b7f740f13e00bdea91dcd (patch)
tree172253d00a2ff8fcea563a56536b2f542e9f01e1 /net/libpcap
parentd69cfed7d132ae8cb4ad248e34c12a0abb323dee (diff)
downloadfreebsd-ports-gnome-c7298250040b2663680b7f740f13e00bdea91dcd.tar.gz
freebsd-ports-gnome-c7298250040b2663680b7f740f13e00bdea91dcd.tar.zst
freebsd-ports-gnome-c7298250040b2663680b7f740f13e00bdea91dcd.zip
- Build with -fPIC on amd64 to fix build of net/p5-Net-Pcap module
- Use USE_BISON Approved by: bms (maintainer)
Diffstat (limited to 'net/libpcap')
-rw-r--r--net/libpcap/Makefile13
1 files changed, 9 insertions, 4 deletions
diff --git a/net/libpcap/Makefile b/net/libpcap/Makefile
index a7543648d1c3..9ea772180f4f 100644
--- a/net/libpcap/Makefile
+++ b/net/libpcap/Makefile
@@ -7,7 +7,7 @@
PORTNAME= libpcap
PORTVERSION= 0.8.3
-PORTREVISION= 0
+PORTREVISION= 1
CATEGORIES= net
MASTER_SITES= http://www.tcpdump.org/release/
DISTNAME= ${PORTNAME}-${PORTVERSION}
@@ -15,13 +15,12 @@ DISTNAME= ${PORTNAME}-${PORTVERSION}
MAINTAINER= bms@FreeBSD.org
COMMENT= Ubiquitous network traffic capture library
-BUILD_DEPENDS= ${LOCALBASE}/bin/bison:${PORTSDIR}/devel/bison
-
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
MAN3= pcap.3
GNU_CONFIGURE= yes
+USE_BISON= yes
.if defined(LIBPCAP_OVERWRITE_BASE)
PREFIX= /usr
@@ -50,4 +49,10 @@ post-install:
${CAT} ${PKGMESSAGE}
.endif
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${ARCH} == "amd64"
+CFLAGS+= -fPIC
+.endif
+
+.include <bsd.port.post.mk>