openbsd-ports/geo/jeoip/Makefile
2010-11-26 07:20:11 +00:00

49 lines
1.1 KiB
Makefile

# $OpenBSD: Makefile,v 1.12 2010/11/26 07:20:12 espie Exp $
COMMENT= Java interface to GeoIP database
DISTNAME= jeoip-0.5
REVISION= 4
CATEGORIES= geo net
PKG_ARCH= *
HOMEPAGE= http://www.darwinsys.com/freeware/jeoip.jsp
MAINTAINER= Ian Darwin <ian@openbsd.org>
# BSD
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM=Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= http://www.darwinsys.com/freeware/
MODULES= java
MODJAVA_VER= 1.5+
MODJAVA_JRERUN= Yes
BUILD_DEPENDS= devel/apache-ant>=1.6.1 \
java/junit=3.8.2
REGRESS_DEPENDS= net/GeoIP \
java/junit=3.8.2
RUN_DEPENDS= net/GeoIP\
java/javaPathHelper
MAKE_ENV= JAVA_HOME=${JAVA_HOME} \
CLASSPATH=${LOCALBASE}/share/java/classes/junit-3.8.2/junit.jar
WRKDIST= ${WRKDIR}/jeoip
INSTALLDIR= jeoip
do-build:
@cd ${WRKBUILD} && ${SETENV} ${MAKE_ENV} ant jar docs
do-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/java/${INSTALLDIR}
${INSTALL_DATA} ${WRKDIST}/jeoip.jar ${PREFIX}/share/java/${INSTALLDIR}
${INSTALL_SCRIPT} ${WRKDIST}/unix/jeoip ${PREFIX}/bin
do-regress:
@cd ${WRKBUILD} && ${SETENV} ${MAKE_ENV} ant regress
.include <bsd.port.mk>