summaryrefslogtreecommitdiff
path: root/net/p5-NetAddr-IP/Makefile
blob: 97013f59fed6c7f261cdf8b28eec2033c3edfcd3 (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
27
28
29
30
31
32
33
34
35
36
# $NetBSD: Makefile,v 1.17 2009/01/04 08:55:54 seb Exp $
#

DISTNAME=	NetAddr-IP-4.022
PKGNAME=	p5-${DISTNAME}
SVR4_PKGNAME=	p5nai
CATEGORIES=	net perl5
MASTER_SITES=	${MASTER_SITE_PERL_CPAN:=NetAddr/}

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	http://search.cpan.org/dist/NetAddr-IP/
COMMENT=	Perl5 module for managing IP addresses

PKG_DESTDIR_SUPPORT=	user-destdir

# This is for the 'test' target
BUILD_DEPENDS+=	p5-Test-Pod-[0-9]*:../../devel/p5-Test-Pod

REPLACE_PERL+=	IP.pm
REPLACE_PERL+=	Lite/Lite.pm
REPLACE_PERL+=	Lite/Util/Util.pm
REPLACE_PERL+=	Lite/Util/lib/NetAddr/IP/UtilPP.pm

SUBST_CLASSES+=	fixperl
SUBST_STAGE.fixperl=	pre-install
SUBST_MESSAGE.fixperl=	Fixing perl interpreter
SUBST_FILES.fixperl=	blib/lib/NetAddr/IP/Util_IS.pm
SUBST_FILES.fixperl+=	Lite/Util/Util_IS.pm
SUBST_SED.fixperl=	-e '1s=^\#![[:space:]]*.*perl[^[:space:]]*=\#!${PERL5}='

USE_LANGUAGES=		c

PERL5_PACKLIST=		auto/NetAddr/IP/.packlist

.include "../../lang/perl5/module.mk"
.include "../../mk/bsd.pkg.mk"