1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-27 10:03:20 +00:00
freebsd-ports/devel/geoip-java/Makefile
2019-01-13 21:22:06 +00:00

52 lines
1.1 KiB
Makefile

# $FreeBSD$
PORTNAME= geoip
PORTVERSION= 1.2.8
PORTREVISION= 1
CATEGORIES= devel java
MASTER_SITES= http://www.maxmind.com/download/geoip/api/java/
PKGNAMESUFFIX= -java
DISTNAME= GeoIPJava-${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Java bindings for GeoIP API
LICENSE= LGPL20+ # source sayas LGPL20+, LICENSE saya LGPL21
LICENSE_FILE= ${WRKSRC}/LICENSE
RUN_DEPENDS= GeoIP>=1.4.8:net/GeoIP
DEPRECATED= Uses legacy GeoIP 1 format which no longer works; switch to GeoIP 2 where possible
EXPIRATION_DATE=2019-02-15
USES= zip
USE_JAVA= yes
JAVA_VERSION= 1.6+
USE_ANT= yes
ALL_TARGET= jar
NO_ARCH= yes
DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}${PKGNAMESUFFIX}
PLIST_FILES= %%JAVAJARDIR%%/maxmind-geoip-${PORTVERSION}.jar
PORTDOCS= *
OPTIONS_DEFINE= DOCS
pre-build:
@${CP} ${FILESDIR}/build.xml ${WRKSRC}
post-build-DOCS-on:
cd ${WRKSRC} && ${ANT} javadoc
do-install:
${INSTALL_DATA} ${WRKSRC}/maxmind-geoip.jar \
${STAGEDIR}${JAVAJARDIR}/maxmind-geoip-${PORTVERSION}.jar
do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
(cd ${WRKSRC}/javadoc && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR})
.include <bsd.port.mk>