1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-24 00:45:52 +00:00
freebsd-ports/net-mgmt/p5-Net-IP/Makefile
Doug Barton 7d045384c3 Initialize a variable in $PREFIX/bin/ipcount to avoid a warning
While I'm here twiddle whitespace in the header to avoid double-spaces
2011-05-30 20:39:25 +00:00

34 lines
785 B
Makefile

# New ports collection makefile for: p5-Net-IP
# Date created: 30 May 2002
# Whom: Kimura Fuyuki <fuyuki@hadaly.org>
#
# $FreeBSD$
#
PORTNAME= Net-IP
PORTVERSION= 1.25
PORTREVISION= 3
CATEGORIES= net-mgmt perl5 ipv6
MASTER_SITES= CPAN
PKGNAMEPREFIX= p5-
MAINTAINER= dougb@FreeBSD.org
COMMENT= Perl extension for manipulating IPv4/IPv6 addresses
PERL_CONFIGURE= yes
MAN3= Net::IP.3
post-configure:
${PERL} -pi -e 's/-I\S+PERL\S+ //g if m{PERL_DL_NONLAZY}' ${WRKSRC}/Makefile
post-patch:
@${CP} ${WRKSRC}/IP.pm ${WRKSRC}/IP.pm.presed
@${SED} -e "1853s#\\s+#\s*#g" ${WRKSRC}/IP.pm.presed > \
${WRKSRC}/IP.pm
@${CP} ${WRKSRC}/ipcount ${WRKSRC}/ipcount.presed
@${SED} -e "76s#count#count = 0#" ${WRKSRC}/ipcount.presed > \
${WRKSRC}/ipcount
.include <bsd.port.mk>