2014-03-18 17:56:56 +00:00

29 lines
574 B
Makefile

# $OpenBSD: Makefile,v 1.26 2014/03/18 17:56:56 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
# 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>