605c6e20c1
(golang). You can download the free GeoLite Country database or you can subscribe to updates. WWW: https://github.com/abh/geoip
29 lines
570 B
Makefile
29 lines
570 B
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= geoip
|
|
PORTVERSION= 0.0.0.20131016
|
|
CATEGORIES= net
|
|
MASTER_SITES= GH GHC
|
|
PKGNAMEPREFIX= go-
|
|
|
|
MAINTAINER= kuriyama@FreeBSD.org
|
|
COMMENT= Go library to wrap the libgeoip C library
|
|
|
|
LICENSE= MIT
|
|
|
|
LIB_DEPENDS= libGeoIP.so:${PORTSDIR}/net/GeoIP
|
|
|
|
USES= compiler
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= abh
|
|
GH_PROJECT= ${PORTNAME}
|
|
GH_TAGNAME= da13074
|
|
|
|
GO_PKGNAME= github.com/${GH_ACCOUNT}/${GH_PROJECT}
|
|
|
|
.include <bsd.port.pre.mk>
|
|
.include "${PORTSDIR}/lang/go/files/bsd.go.mk"
|
|
.if ${COMPILER_TYPE} == clang && ${CC} == cc
|
|
CC= clang
|
|
.endif
|
|
.include <bsd.port.post.mk>
|