2014-06-14 23:25:41 +00:00

30 lines
586 B
Makefile

# $OpenBSD: Makefile,v 1.27 2014/06/14 23:25:42 sthen Exp $
SHARED_ONLY= Yes
COMMENT= look up country by IP address/hostname
MODULES= cpan
DISTNAME= Geo-IP-1.43
CPAN_AUTHOR= BORISZ
CATEGORIES= net geo
REVISION= 0
# Perl
PERMIT_PACKAGE_CDROM= Yes
WANTLIB += GeoIP>=8
LIB_DEPENDS= net/GeoIP>=1.4.8
CONFIGURE_ARGS= LIBS='-L${LOCALBASE}/lib' INC='-I${LOCALBASE}/include'
MODCPAN_EXAMPLES= Yes
MODCPAN_EXAMPLES_DIST= example
pre-patch:
perl -pi -e 's,/usr/local/share/GeoIP,${LOCALSTATEDIR}/db/GeoIP,g' \
${WRKSRC}/lib/Geo/IP.pm ${WRKSRC}/example/*.pl
.include <bsd.port.mk>