2011-08-30 13:16:35 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.4 2011/08/30 17:16:36 jasper Exp $
|
2011-08-29 11:07:32 -04:00
|
|
|
|
|
|
|
COMMENT= Java Native Access (JNA)
|
|
|
|
|
|
|
|
V= 3.2.7
|
|
|
|
DISTNAME= twall-jna-$V-0-g3727f95
|
|
|
|
PKGNAME= jna-$V
|
2011-08-30 13:16:35 -04:00
|
|
|
REVISION= 1
|
|
|
|
CATEGORIES= devel
|
2011-08-29 11:07:32 -04:00
|
|
|
|
2011-08-30 08:03:56 -04:00
|
|
|
MAINTAINER= Jasper Lievisse Adriaanse <jasper@openbsd.org>
|
|
|
|
|
2011-08-29 11:07:32 -04:00
|
|
|
HOMEPAGE= https://github.com/twall/jna
|
|
|
|
|
|
|
|
# LGPLv2.1+
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM=Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
|
|
|
MASTER_SITES= http://distfiles.nl/
|
|
|
|
EXTRACT_SUFX= .zip
|
|
|
|
|
|
|
|
MODULES= java
|
|
|
|
MODJAVA_VER= 1.6+
|
|
|
|
|
2011-08-30 08:03:56 -04:00
|
|
|
USE_GMAKE= Yes
|
|
|
|
|
2011-08-30 06:49:02 -04:00
|
|
|
BUILD_DEPENDS= devel/apache-ant \
|
|
|
|
sysutils/ggrep
|
2011-08-29 11:07:32 -04:00
|
|
|
|
|
|
|
WRKDIST= ${WRKDIR}/twall-jna-d928d42/
|
|
|
|
|
|
|
|
JAR_DIR= ${PREFIX}/share/java/classes/
|
|
|
|
DOC_DIR= ${PREFIX}/share/java/jna/
|
|
|
|
|
|
|
|
do-build:
|
|
|
|
cd ${WRKSRC}/jnalib/ && ${SETENV} ${MAKE_ENV} ${LOCALBASE}/bin/ant
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_DATA_DIR} ${JAR_DIR} ${DOC_DIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/jnalib/build-*/openbsd-${ARCH}.jar \
|
|
|
|
${JAR_DIR}/jna-platform.jar
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/jnalib/build-*/jna.jar ${JAR_DIR}
|
|
|
|
cp -r ${WRKSRC}/www/javadoc/ ${DOC_DIR}
|
|
|
|
|
|
|
|
do-regress:
|
|
|
|
cd ${WRKSRC}/jnalib/ && ${SETENV} ${MAKE_ENV} ${LOCALBASE}/bin/ant test
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|