# Created by: Dominic Marks <dominic.marks@btinternet.com>
# $FreeBSD: tags/RELEASE_11_1_0/net/libdnet/Makefile 422146 2016-09-14 17:52:05Z antoine $

PORTNAME=	libdnet
PORTVERSION=	1.12
PORTREVISION=	1
DISTVERSIONPREFIX=	${PORTNAME}-
CATEGORIES?=	net

MAINTAINER?=	onatan@gmail.com
COMMENT=	Simple interface to low level networking routines

LICENSE=	BSD3CLAUSE
LICENSE_FILE=	${WRKSRC}/LICENSE

USE_GITHUB=	yes
GH_ACCOUNT=	dugsong

GNU_CONFIGURE=	yes
CONFIGURE_ENV=	ac_cv_dnet_bsd_bpf=yes
USES+=		libtool

.if !defined(LIBDNET_SLAVE)
CONFIGURE_ARGS+=	--without-python
USE_LDCONFIG=	yes
.endif

post-patch:
	@${REINPLACE_CMD} 's|shrext|shrext_cmds|g' ${WRKSRC}/configure

.include <bsd.port.mk>
