# $OpenBSD: Makefile,v 1.29 2004/05/07 15:28:31 naddy Exp $

COMMENT=	"raw IP packet construction library"

DISTNAME=	libnet-1.0.2a
CATEGORIES=	net

MASTER_SITES=	http://www.packetfactory.net/libnet/dist/deprecated/

HOMEPAGE=	http://www.packetfactory.net/projects/libnet/

PERMIT_PACKAGE_CDROM=	Yes
PERMIT_PACKAGE_FTP=	Yes
PERMIT_DISTFILES_CDROM=	Yes
PERMIT_DISTFILES_FTP=	Yes

CONFIGURE_STYLE= autoconf no-autoheader

WRKDIST=	${WRKDIR}/Libnet-1.0.2a

REGRESS_TARGET=		test
REGRESS_IS_INTERACTIVE=	Yes

post-regress:
	@cd ${WRKSRC}/test; ${SUDO} ./test-step.sh

.include <bsd.port.mk>

.if defined(NO_SHARED_LIBS) && ${NO_SHARED_LIBS:L} == "yes"
MAKE_ENV+=	NO_SHARED_LIBS=Yes
.endif
