diff options
| author | Volker Stolz <vs@FreeBSD.org> | 2006-04-25 11:28:16 +0000 |
|---|---|---|
| committer | Volker Stolz <vs@FreeBSD.org> | 2006-04-25 11:28:16 +0000 |
| commit | 0ff723d4ef02fa77da29fa45ab121ef6eee436e9 (patch) | |
| tree | 6839bbfdb7021931fa897cd06b1faf72926d2481 /net | |
| parent | Update to 1.1.7 (diff) | |
- uses round() which is only available in 5.3 and higher. It
also depends upon a relatively recent version of libpcap which only
exists in the base of 6.0 and up[1]. The attached patch marks it as
broken on 5.2 and lower, and depends on net/libpcap for 5.3 up to 6.0.
- respect CC/CFLAGS
PR: ports/96273
Submitted by: maintainer
Diffstat (limited to 'net')
| -rw-r--r-- | net/bittwist/Makefile | 12 |
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> |
