summaryrefslogtreecommitdiff
path: root/net/py-pcap
diff options
context:
space:
mode:
authorHye-Shik Chang <perky@FreeBSD.org>2003-03-31 04:29:23 +0000
committerHye-Shik Chang <perky@FreeBSD.org>2003-03-31 04:29:23 +0000
commitce978adb6aac3d35387c306fe71270e0fcc819db (patch)
treeca2a5185128bc218c6ec684f9df49fb14763fc86 /net/py-pcap
parentUpdate based graphviz's version to fix a checksum failure (diff)
Change the `grep` test to an OSVERSION test.
Spotted by: kris
Notes
Notes: svn path=/head/; revision=77799
Diffstat (limited to 'net/py-pcap')
-rw-r--r--net/py-pcap/Makefile10
1 files changed, 6 insertions, 4 deletions
diff --git a/net/py-pcap/Makefile b/net/py-pcap/Makefile
index 451fda88526a..17404cfd009b 100644
--- a/net/py-pcap/Makefile
+++ b/net/py-pcap/Makefile
@@ -23,9 +23,11 @@ USE_PYTHON= yes
USE_PYDISTUTILS= yes
USE_PYTHON_PREFIX= yes
-PCAPTEST!= grep PCAP_IF_LOOPBACK /usr/include/pcap.h || true
-.if empty(PCAPTEST)
-BROKEN= "needs libpcap 0.7 or higher"
+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} < 460001 || \
+ ( ${OSVERSION} >= 500000 && ${OSVERSION} < 500038 )
+IGNORE= "needs libpcap 0.7 or higher"
.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>