aboutsummaryrefslogtreecommitdiffstats
path: root/net/p5-IP-Country/Makefile
blob: d094f7e0180ce7131da39e322e3f2907eb863461 (plain) (blame)
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
37
38
39
# New ports collection makefile for:    net/p5-IP-Countries
# Date created:             20 June 2005
# Whom:                 dikshie <dikshie@lapi.itb.ac.id>
#
# $FreeBSD$
#

PORTNAME=   IP-Country
PORTVERSION=    2.21
CATEGORIES= net perl5
MASTER_SITES=   ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= ../by-authors/id/N/NW/NWETTERS
PKGNAMEPREFIX=  p5-

MAINTAINER= dikshie@lapi.itb.ac.id
COMMENT=    Fast lookup of country codes from IP addresses

BUILD_DEPENDS=  ${SITE_PERL}/Geography/Countries.pm:${PORTSDIR}/misc/p5-Geography-Countries
RUN_DEPENDS=    ${BUILD_DEPENDS}

PERL_CONFIGURE= yes

MAN1=       ip2cc.1
MAN3=       IP::Authority.3 \
        IP::Country::Fast.3 \
        IP::Country::MaxMind.3 \
        IP::Country::Medium.3 \
        IP::Country::Slow.3 \
        IP::Country.3

.include <bsd.port.pre.mk>

.if ${PERL_LEVEL} < 500600
post-patch:
    ${FIND} ${WRKSRC} -name "*.pm" | ${XARGS} ${REINPLACE_CMD} -e '/warnings/d'
    ${FIND} ${WRKSRC} -name "*.pm.bak" -delete
.endif

.include <bsd.port.post.mk>