29 lines
577 B
Makefile
Raw Normal View History

2014-12-14 16:43:39 +00:00
# $OpenBSD: Makefile,v 1.28 2014/12/14 16:43:39 benoit Exp $
SHARED_ONLY= Yes
COMMENT= look up country by IP address/hostname
MODULES= cpan
2014-12-14 16:43:39 +00:00
DISTNAME = Geo-IP-1.45
CPAN_AUTHOR= MAXMIND
CATEGORIES= net geo
# Perl
PERMIT_PACKAGE_CDROM= Yes
2012-11-27 19:58:49 +00:00
WANTLIB += GeoIP>=8
2012-08-23 15:50:05 +00:00
2012-11-27 19:58:49 +00:00
LIB_DEPENDS= net/GeoIP>=1.4.8
CONFIGURE_ARGS= LIBS='-L${LOCALBASE}/lib' INC='-I${LOCALBASE}/include'
2012-11-27 19:58:49 +00:00
MODCPAN_EXAMPLES= Yes
MODCPAN_EXAMPLES_DIST= example
2014-03-18 17:56:56 +00:00
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>