freebsd-ports/devel/geoip-java/Makefile
Emanuel Haupt 5005b67362 According to the Porter's Handbook (5.12.2.3.) default options must be added to
OPTIONS_DEFINE. This policy has been implemented only recently that's why we
have many ports violating this policy.

This patch adds the default options specified in the Porter's Handbook to
OPTIONS_DEFINE where they are being used. Ports maintained by
gnome@FreeBSD.org, kde@FreeBSD.org and x11@FreeBSD.org have been excluded.

Approved by:    portmgr (bapt)
2014-02-10 13:54:26 +00:00

50 lines
984 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}
NO_STAGE= yes
OPTIONS_DEFINE= DOCS
.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>