aboutsummaryrefslogtreecommitdiffstats
path: root/net/GeoIP/Makefile
blob: 6ba5b1113b27ff1730f29d5fd5ead2fd2a91f3c3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# New ports collection makefile for:    GeoIP
# Date created:             10 August 2002
# Whom:                     Yen-Ming Lee <leeym@leeym.com>
#
# $FreeBSD$
#

PORTNAME=   GeoIP
PORTVERSION=    1.4.8
PORTREVISION=   1
CATEGORIES= net geography
MASTER_SITES=   http://geolite.maxmind.com/download/geoip/api/c/

MAINTAINER= dhn@FreeBSD.org
COMMENT=    Find the country that any IP address or hostname originates from

CONFIGURE_ARGS= CC="${CC}" PATH="${PATH}" \
            CFLAGS="-I${LOCALBASE}/include" LDFLAGS="-L${LOCALBASE}/lib"

USE_GNOME=  gnometarget
USE_AUTOTOOLS=  libtool
USE_LDCONFIG=   yes

MAN1=       geoiplookup.1 geoipupdate.1 geoiplookup6.1

run-autotools:
    @${REINPLACE_CMD} -e '/^LIBTOOL=/s^\$$(top_builddir)/libtool^${LIBTOOL}^g' \
    ${WRKSRC}/aclocal.m4

post-install:
    ${INSTALL_SCRIPT} ${FILESDIR}/geoipupdate.sh ${PREFIX}/bin/

.include <bsd.port.mk>