aboutsummaryrefslogtreecommitdiff
path: root/net/bittwist
diff options
context:
space:
mode:
authorVolker Stolz <vs@FreeBSD.org>2006-04-25 11:28:16 +0000
committerVolker Stolz <vs@FreeBSD.org>2006-04-25 11:28:16 +0000
commit0ff723d4ef02fa77da29fa45ab121ef6eee436e9 (patch)
tree6839bbfdb7021931fa897cd06b1faf72926d2481 /net/bittwist
parentd01ec1892147f8e648e982b5e9288739a653b0f4 (diff)
downloadports-0ff723d4ef02fa77da29fa45ab121ef6eee436e9.tar.gz
ports-0ff723d4ef02fa77da29fa45ab121ef6eee436e9.zip
Notes
Diffstat (limited to 'net/bittwist')
-rw-r--r--net/bittwist/Makefile12
1 files changed, 10 insertions, 2 deletions
diff --git a/net/bittwist/Makefile b/net/bittwist/Makefile
index 892504305987..506ffe214868 100644
--- a/net/bittwist/Makefile
+++ b/net/bittwist/Makefile
@@ -16,13 +16,21 @@ MAINTAINER= wxs@csh.rit.edu
COMMENT= Libpcap-based Ethernet packet generator, with PCAP editor
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
+MAKE_ARGS+= CC="${CC}" CFLAGS="${CFLAGS}"
MAN1= bittwist.1 bittwistb.1 bittwiste.1
.include <bsd.port.pre.mk>
-.if ${OSVERSION} < 500000
-IGNORE= does not build under 4.x
+# 5.3 is the first version to have round().
+.if ${OSVERSION} < 503001
+IGNORE= does not build under 5.2 and older (no round())
+.endif
+
+# 5.3 and up do not have a new enough libpcap but does have round().
+# 6.0 and up have both a new enough libpcap and round().
+.if ${OSVERSION} >= 503001 && ${OSVERSION} < 600100
+BUILD_DEPENDS= ${LOCALBASE}/lib/libpcap.a:${PORTSDIR}/net/libpcap
.endif
.include <bsd.port.post.mk>