File:  [cvs.NetBSD.org] / pkgsrc / net / p5-Net-Pcap / Makefile
Revision 1.29: download - view: text, annotated - select for diffs
Wed Jun 8 19:24:13 2016 UTC (8 years, 5 months ago) by wiz
Branches: MAIN
CVS tags: pkgsrc-2016Q2-base, pkgsrc-2016Q2, HEAD
Bump PKGREVISION for perl-5.24.

# $NetBSD: Makefile,v 1.29 2016/06/08 19:24:13 wiz Exp $
#

DISTNAME=	Net-Pcap-0.17
PKGNAME=	p5-${DISTNAME}
PKGREVISION=	2
CATEGORIES=	net perl5
MASTER_SITES=	${MASTER_SITE_PERL_CPAN:=Net/}

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	http://search.cpan.org/dist/Net-Pcap/
COMMENT=	Perl interface to pcap(3) LBL packet capture library
LICENSE=	${PERL5_LICENSE}

DEPENDS+=	p5-IO-Interface-[0-9]*:../../net/p5-IO-Interface
# Used during test, doesn't work properly:
# BUILD_DEPENDS+= p5-Test-Distribution-[0-9]*:../../devel/p5-Test-Distribution

BUILDLINK_API_DEPENDS.libpcap+=	libpcap>=0.9.5

PERL5_PACKLIST=	auto/Net/Pcap/.packlist

MAKE_PARAMS+=	INC=-I${BUILDLINK_PREFIX.libpcap}/include
MAKE_PARAMS+=	LIBS='-L${BUILDLINK_PREFIX.libpcap}/lib ${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.libpcap}/lib -lpcap'

SUBST_CLASSES+=		pcaplib
SUBST_STAGE.pcaplib=	pre-configure
SUBST_FILES.pcaplib=	Makefile.PL
SUBST_SED.pcaplib=	-e 's,@PCAP_LIBDIR@,${BUILDLINK_PREFIX.libpcap}/lib,'

.include "../../lang/perl5/module.mk"
.include "../../net/libpcap/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

CVSweb <webmaster@jp.NetBSD.org>