diff --git a/devel/libnet/Makefile b/devel/libnet/Makefile index 16fee7aa4f32..a09f8cff0307 100644 --- a/devel/libnet/Makefile +++ b/devel/libnet/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.36 2021/07/22 07:58:50 wiz Exp $ +# $NetBSD: Makefile,v 1.37 2021/11/09 11:56:24 nia Exp $ DISTNAME= libnet-1.2 CATEGORIES= devel net @@ -13,6 +13,14 @@ LICENSE= 2-clause-bsd USE_LIBTOOL= yes GNU_CONFIGURE= yes +.include "../../mk/bsd.prefs.mk" + +.if ${OPSYS} == "Linux" +CONFIGURE_ARGS+= --with-link-layer=linux +.elif exists(/usr/include/net/bpf.h) +CONFIGURE_ARGS+= --with-link-layer=bpf +.endif + .include "options.mk" .include "../../mk/bsd.pkg.mk"