diff options
author | fjoe <fjoe@FreeBSD.org> | 2006-02-14 03:51:31 +0800 |
---|---|---|
committer | fjoe <fjoe@FreeBSD.org> | 2006-02-14 03:51:31 +0800 |
commit | 241e2e5bc3345924c43e0a9a5dd2d8f64786c038 (patch) | |
tree | 22c9a2c1119e2205e9cbac9722739676e19a45cb /emulators/dynamips | |
parent | 1e77b65250f2f4f99aaffaf08f8998375a53c4d1 (diff) | |
download | freebsd-ports-gnome-241e2e5bc3345924c43e0a9a5dd2d8f64786c038.tar.gz freebsd-ports-gnome-241e2e5bc3345924c43e0a9a5dd2d8f64786c038.tar.zst freebsd-ports-gnome-241e2e5bc3345924c43e0a9a5dd2d8f64786c038.zip |
Correct check for FreeBSD version that has libpcap 0.9+.
Diffstat (limited to 'emulators/dynamips')
-rw-r--r-- | emulators/dynamips/Makefile | 7 | ||||
-rw-r--r-- | emulators/dynamips/files/patch-Makefile | 11 |
2 files changed, 10 insertions, 8 deletions
diff --git a/emulators/dynamips/Makefile b/emulators/dynamips/Makefile index 6c115aeabe58..2b57cfc864f4 100644 --- a/emulators/dynamips/Makefile +++ b/emulators/dynamips/Makefile @@ -44,13 +44,10 @@ DYNAMIPS_ARCH= "amd64" DYNAMIPS_ARCH= "nojit" .endif -.if ${OSVERSION} < 500000 +.if ${OSVERSION} < 600029 # # Requires libpcap 0.9+ -USE_REINPLACE= yes - -post-patch: - @${REINPLACE_CMD} -e 's/^HAS_PCAP=1/HAS_PCAP=0/' ${WRKSRC}/Makefile +MAKE_ENV= HAS_PCAP=0 .endif .include <bsd.port.post.mk> diff --git a/emulators/dynamips/files/patch-Makefile b/emulators/dynamips/files/patch-Makefile index 783bf76598af..5efe9c99054e 100644 --- a/emulators/dynamips/files/patch-Makefile +++ b/emulators/dynamips/files/patch-Makefile @@ -1,6 +1,6 @@ --- Makefile.orig Thu Feb 2 00:08:41 2006 -+++ Makefile Tue Feb 14 01:26:49 2006 -@@ -3,7 +3,7 @@ ++++ Makefile Tue Feb 14 01:53:31 2006 +@@ -3,26 +3,26 @@ # Replace x86 by amd64 for a build on x86_64. # Use "nojit" for architectures that are not x86 or x86_64. @@ -9,7 +9,12 @@ # Change this to 0 if your system doesn't support RFC 2553 extensions HAS_RFC2553=1 -@@ -15,14 +15,14 @@ + + # Change this to 1 if your system has libpcap-0.9.4 or better + # (WinPcap is used for Cygwin) +-HAS_PCAP=1 ++HAS_PCAP?=1 + # Current dynamips release VERSION=0.2.3c |