1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-22 20:41:26 +00:00
freebsd-ports/www/mod_geoip/Makefile
Frank J. Laszlo 6e17578b4d - Add even more ports to the new "geography" category
Approved by:	Pav (wearing portmgr hat)
2007-07-22 19:53:52 +00:00

40 lines
934 B
Makefile

# New ports collection makefile for: mod_geoip
# Date created: 24 Jan 2003
# Whom: Sean Chittenden <seanc@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= mod_geoip
PORTVERSION= 1.2.9
CATEGORIES= www geography
MASTER_SITES= http://www.maxmind.com/download/geoip/api/mod_geoip/
DISTNAME= ${PORTNAME}_${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= An Apache module that provides the country code of the client's IP
LIB_DEPENDS= GeoIP.5:${PORTSDIR}/net/GeoIP
USE_APACHE= 1.3
.include <bsd.port.pre.mk>
PORTDOCS= Changes INSTALL README README.php
do-build:
@cd ${WRKSRC} && \
${APXS} -c -L${LOCALBASE}/lib -I${LOCALBASE}/include -lGeoIP mod_geoip.c
do-install:
${APXS} -i -A -n geoip ${WRKSRC}/mod_geoip.so
.if !defined(NOPORTDOCS)
${MKDIR} ${PREFIX}/share/doc/mod_geoip
.for f in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/share/doc/mod_geoip/
.endfor
.endif
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>