2002-08-16 10:27:47 +02:00
|
|
|
# New ports collection makefile for: p5-Geo-IP
|
|
|
|
# Date created: 10 August 2002
|
|
|
|
# Whom: Yen-Ming Lee <leeym@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= Geo-IP
|
2005-09-27 02:21:56 +02:00
|
|
|
PORTVERSION= 1.27
|
2004-12-25 06:36:01 +01:00
|
|
|
PORTREVISION= 0
|
2002-10-17 21:47:13 +02:00
|
|
|
CATEGORIES= net
|
2002-08-29 06:31:45 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITE_PERL_CPAN} \
|
2002-11-18 13:01:16 +01:00
|
|
|
http://www.maxmind.com/download/geoip/api/perl/
|
2002-08-29 06:31:45 +02:00
|
|
|
MASTER_SITE_SUBDIR= Geo
|
2002-08-16 10:27:47 +02:00
|
|
|
PKGNAMEPREFIX= p5-
|
|
|
|
|
2002-10-07 06:30:58 +02:00
|
|
|
MAINTAINER= seanc@FreeBSD.org
|
2003-03-07 07:14:21 +01:00
|
|
|
COMMENT= Gets country name by IP or hostname
|
2002-08-16 10:27:47 +02:00
|
|
|
|
2004-05-30 09:19:41 +02:00
|
|
|
LIB_DEPENDS= GeoIP.4:${PORTSDIR}/net/GeoIP
|
2002-08-16 10:27:47 +02:00
|
|
|
|
|
|
|
PERL_CONFIGURE= yes
|
2003-05-16 20:10:49 +02:00
|
|
|
CONFIGURE_ARGS= LIBS='-L${LOCALBASE}/lib' INC='-I${LOCALBASE}/include'
|
2002-08-16 10:27:47 +02:00
|
|
|
|
2003-01-24 21:08:21 +01:00
|
|
|
MAN3= Geo::Mirror.3 Geo::IP.3 Geo::IP::Record.3
|
2002-08-16 10:27:47 +02:00
|
|
|
|
2003-05-16 20:10:49 +02:00
|
|
|
post-patch:
|
2003-05-21 05:43:20 +02:00
|
|
|
@${PERL} -pi -e 's/^our (.*),(.*);$$/use vars qw$$1$$2;/' ${WRKSRC}/lib/Geo/Mirror.pm
|
2004-12-27 09:25:47 +01:00
|
|
|
@${PERL} -pi -e 's/^([\w].+);$$/\1/' ${WRKSRC}/IP.xs
|
2003-05-16 20:10:49 +02:00
|
|
|
|
2002-08-16 10:27:47 +02:00
|
|
|
.include <bsd.port.mk>
|