# $Id: Portfile,v 1.3 2005/09/21 18:26:01 mww Exp $

PortSystem 1.0

name			libgeoip
version			1.3.14
categories		devel net
platforms		darwin
maintainers		mww@opendarwin.org
description		Gets country code by IP address
long_description	${description}

homepage		http://www.maxmind.com/app/c
master_sites	http://www.maxmind.com/download/geoip/api/c/
distname		GeoIP-${version}
checksums		md5 a1f6fb744d85e96a457808f9c32fd334

test.run		yes
test.target		check

configure.args	--mandir=${prefix}/share/man

post-destroot	{
	xinstall -d -m 755 ${destroot}${prefix}/share/doc/${name}
	xinstall -m 644 -W ${worksrcpath} AUTHORS COPYING ChangeLog INSTALL \
		NEWS README TODO ${destroot}${prefix}/share/doc/${name}
}
