2006-12-16 16:16:21 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.2 2006/12/16 21:16:21 ian Exp $
|
2006-11-17 14:20:34 -05:00
|
|
|
COMMENT= "Java interface to GeoIP database"
|
|
|
|
DISTNAME= jeoip-0.5
|
2006-12-16 16:16:21 -05:00
|
|
|
PKGNAME= ${DISTNAME}p0
|
2006-11-17 14:20:34 -05:00
|
|
|
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= :apache-ant->=1.6.1:devel/apache-ant:\
|
|
|
|
:junit->=3.8.1:java/junit
|
2006-12-16 16:16:21 -05:00
|
|
|
REGRESS_DEPENDS= ::net/GeoIP
|
|
|
|
RUN_DEPENDS= ::net/GeoIP\
|
|
|
|
:javaPathHelper-*:java/javaPathHelper
|
2006-11-17 14:20:34 -05:00
|
|
|
MAKE_ENV= JAVA_HOME=${JAVA_HOME} \
|
|
|
|
CLASSPATH=${LOCALBASE}/share/java/classes/junit-3.8.1/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
|
|
|
|
|
2006-12-16 16:16:21 -05:00
|
|
|
do-regress:
|
|
|
|
@cd ${WRKBUILD} && ${SETENV} ${MAKE_ENV} ant regress
|
|
|
|
|
2006-11-17 14:20:34 -05:00
|
|
|
.include <bsd.port.mk>
|