1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00
freebsd-ports/devel/geoip-java/Makefile
Baptiste Daroussin 580b0c7423 Decommissioning java 1.5 (EOLed since October 2009):
suppress any reference to USE_JAVA=	1.5+ (part1)
2012-12-10 11:25:27 +00:00

47 lines
946 B
Makefile

# $FreeBSD$
PORTNAME= geoip
PORTVERSION= 1.2.8
CATEGORIES= devel java
MASTER_SITES= http://www.maxmind.com/download/geoip/api/java/
DISTNAME= GeoIPJava-${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Java bindings for GeoIP API
LICENSE= LGPL21
RUN_DEPENDS= GeoIP>=1.4.8:${PORTSDIR}/net/GeoIP
PKGNAMESUFFIX:= -java
USE_ZIP= YES
USE_JAVA= YES
JAVA_VERSION= 1.6+
USE_ANT= YES
ALL_TARGET= jar
PLIST_FILES= %%JAVAJARDIR%%/maxmind-geoip-${PORTVERSION}.jar
PORTDOCS= *
DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}${PKGNAMESUFFIX}
.include <bsd.port.options.mk>
pre-build:
@${CP} ${FILESDIR}/build.xml ${WRKSRC}
post-build-script:
.if ${PORT_OPTIONS:MDOCS}
cd ${WRKSRC} && \
${ANT} javadoc
.endif
do-install:
${INSTALL_DATA} ${WRKSRC}/maxmind-geoip.jar ${JAVAJARDIR}/maxmind-geoip-${PORTVERSION}.jar
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
cd ${WRKSRC}/javadoc && ${COPYTREE_SHARE} \* ${DOCSDIR}
.endif
.include <bsd.port.mk>