aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlinimon <linimon@FreeBSD.org>2004-05-17 15:11:41 +0800
committerlinimon <linimon@FreeBSD.org>2004-05-17 15:11:41 +0800
commite434b3948982cfa938fbdc004cc1fc480a0d02ec (patch)
treed0c8d197804ee93252b1d3a8bac0ee9235ff93f8
parentcf5af8e2172eb46923d1cf296df896e54b8aa663 (diff)
downloadfreebsd-ports-gnome-e434b3948982cfa938fbdc004cc1fc480a0d02ec.tar.gz
freebsd-ports-gnome-e434b3948982cfa938fbdc004cc1fc480a0d02ec.tar.zst
freebsd-ports-gnome-e434b3948982cfa938fbdc004cc1fc480a0d02ec.zip
Change the test of IGNORE from a file-existance-test to a release-
version-test. The former do not do The Right Thing on cross-builds. Prodded by: kris
-rw-r--r--net/wistumbler2/Makefile11
1 files changed, 7 insertions, 4 deletions
diff --git a/net/wistumbler2/Makefile b/net/wistumbler2/Makefile
index 185e4fb234c9..d0fe973ae454 100644
--- a/net/wistumbler2/Makefile
+++ b/net/wistumbler2/Makefile
@@ -24,10 +24,6 @@ MANCOMPRESSED= yes
MAN1= wistumbler2.1
PLIST_FILES= bin/wistumbler2
-.if !exists(/sys/dev/owi/if_ieee80211.h)
-IGNORE= requires kernel sources from at least FreeBSD 5.2
-.endif
-
.if defined(NO_X)
MAKE_ENV= PREFIX=${LOCALBASE} USE_GTK=0
.endif
@@ -36,6 +32,13 @@ MAKE_ENV= PREFIX=${LOCALBASE} USE_GTK=0
.if ${OSVERSION} < 500000
BROKEN= "Does not compile on 4.x"
+.else
+# this port needs the file /sys/dev/owi/if_ieee80211.h, but there
+# was not a FreeBSD version bump specifically for that. Use the
+# nearest one.
+.if ${OSVERSION} < 501107
+IGNORE= requires newer kernel sources that include /sys/dev/owi/if_ieee80211.h
+.endif
.endif
pre-everything::