diff options
author | Kurt Jaeger <pi@FreeBSD.org> | 2017-03-14 17:10:53 +0000 |
---|---|---|
committer | Kurt Jaeger <pi@FreeBSD.org> | 2017-03-14 17:10:53 +0000 |
commit | 0b02030d0efbb232b28778c532906b200767b7a8 (patch) | |
tree | ae90a4b7b5a75c21ac94d734de2ee57b9279532d /net/intel-ixl-kmod/Makefile | |
parent | 2132d5415100bed1e9b7b22e6333a8b422c9f938 (diff) | |
download | ports-0b02030d0efbb232b28778c532906b200767b7a8.tar.gz ports-0b02030d0efbb232b28778c532906b200767b7a8.zip |
Notes
Diffstat (limited to 'net/intel-ixl-kmod/Makefile')
-rw-r--r-- | net/intel-ixl-kmod/Makefile | 23 |
1 files changed, 19 insertions, 4 deletions
diff --git a/net/intel-ixl-kmod/Makefile b/net/intel-ixl-kmod/Makefile index b18892e4fe8c..f5f0d63456de 100644 --- a/net/intel-ixl-kmod/Makefile +++ b/net/intel-ixl-kmod/Makefile @@ -2,7 +2,7 @@ # $FreeBSD$ PORTNAME?= ixl -PORTVERSION?= 1.4.27 +PORTVERSION?= 1.7.11 CATEGORIES= net MASTER_SITES= https://downloadmirror.intel.com/${MASTER_SITE_SUBDIR}/ \ http://downloadmirror.intel.com/${MASTER_SITE_SUBDIR}/ @@ -15,6 +15,21 @@ COMMENT?= 40 gigabit FreeBSD Base Driver for Intel(R) Network Connections LICENSE= BSD2CLAUSE +# Present version of net/intel-em-kmod has issues building with netmap(4) +# support on 11+. Narrowing netmap(4) support to this port only +.if ${PORTNAME} == ixl +OPTIONS_SINGLE= NETMAP +OPTIONS_SINGLE_NETMAP= NETMAP_AUTO NETMAP_ON NETMAP_OFF +OPTIONS_DEFAULT= NETMAP_AUTO + +NETMAP_AUTO_DESC= Enable netmap(4) support on FreeBSD 11.0+ +NETMAP_ON_DESC= Enable netmap(4) support unconditionally +NETMAP_OFF_DESC= Disable netmap(4) support unconditionally + +NETMAP_ON_CFLAGS= -DDEV_NETMAP +NETMAP_OFF_CFLAGS= -UDEV_NETMAP +.endif + USES= kmod WRKSRC_SUBDIR= src @@ -30,10 +45,10 @@ PLIST_FILES= ${KMODDIR}/if_${PORTNAME}_updated.ko \ .if ${PORTNAME} == ixl ONLY_FOR_ARCHS= amd64 ONLY_FOR_ARCHS_REASON= Not supported on other architectures, amd64 only. - -.if ${OSVERSION} >= 1100000 -BROKEN= does not build .endif + +.if ${PORT_OPTIONS:MNETMAP_AUTO} && ${OSVERSION} >= 1100000 +CFLAGS+= -DDEV_NETMAP .endif do-install: |