summaryrefslogtreecommitdiff
path: root/devel/libnet/Makefile
blob: a09f8cff030757ae38a86b4dfd907d933a01c29b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# $NetBSD: Makefile,v 1.37 2021/11/09 11:56:24 nia Exp $

DISTNAME=	libnet-1.2
CATEGORIES=	devel net
MASTER_SITES=	${MASTER_SITE_GITHUB:=libnet/}
GITHUB_RELEASE=	v${PKGVERSION_NOREV}

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	https://codedocs.xyz/libnet/libnet/
COMMENT=	C library for portable packet creation and injection
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"