# Created by: Sergey Kozlov <skozlov@FreeBSD.org>
# $FreeBSD: tags/RELEASE_12_1_0/net/intel-ix-kmod/Makefile 509590 2019-08-22 08:55:58Z skozlov $

PORTNAME=	ix
PORTVERSION=	3.3.10
PORTREVISION=	0
PORTEPOCH=	0
MASTER_SITE_SUBDIR=	14688/eng

MAINTAINER=	freebsd@intel.com
COMMENT=	10 gigabit FreeBSD Base Driver for Intel(R) Network Connections

MANPAGENAME=	ixgbe
MANPAGELINKS=	ix if_ix if_ixgbe

MAX_NETMAP_OSVERSION=	1199999  # Doesn't build w/NETMAP on 12

MASTERDIR=	${.CURDIR}/../intel-ixl-kmod
PKGDIR=		${.CURDIR}
DISTINFO_FILE=	${.CURDIR}/distinfo

OPTIONS_DEFINE=	SRIOV
SRIOV_DESC=	Enable SR-IOV support (experimental)

post-patch-SRIOV-on:
	@${SED} -i '' 's|SRIOV_ENABLE = 0|SRIOV_ENABLE = 1|g' ${WRKSRC}/Makefile

.include "${MASTERDIR}/Makefile"
