# Created by: Dominic Marks <dominic.marks@btinternet.com>
# $FreeBSD: tags/RELEASE_11_0_0/net/libdnet/Makefile 371467 2014-10-25 06:45:45Z antoine $

PORTNAME=	libdnet
PORTVERSION=	1.12
PORTREVISION=	1
CATEGORIES?=	net
MASTER_SITES=	GOOGLE_CODE

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

LICENSE=	BSD3CLAUSE
LICENSE_FILE=	${WRKSRC}/LICENSE

GNU_CONFIGURE=	yes
CONFIGURE_ENV=	ac_cv_dnet_bsd_bpf=yes
USES+=		libtool tar:tgz

.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>
