1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-30 10:38:37 +00:00
freebsd-ports/devel/jna/Makefile
Niclas Zeising 366790689c Add USES=xorg USES=gl, ports categories d
Add USES=xorg, USES=gl and in a few cases USES=gnome to ports in categories
starting with 'd'.
2019-11-04 22:20:30 +00:00

61 lines
1.5 KiB
Makefile

# $FreeBSD$
PORTNAME= jna
PORTVERSION= 4.5.2
CATEGORIES= devel java
MAINTAINER= ports@FreeBSD.org
COMMENT= Java access to native shared libraries
LICENSE= LGPL21+ APACHE20
LICENSE_COMB= dual
LICENSE_FILE= ${WRKSRC}/LICENSE
LICENSE_FILE_LGPL21+ = ${WRKSRC}/LICENSE.LGPL
LICENSE_FILE_APACHE20= ${WRKSRC}/LICENSE.AL
BROKEN_armv6= fails to compile: build.xml: compilation failed
BROKEN_armv7= fails to compile: build.xml: compilation failed
USES= autoreconf:build gmake libtool xorg
USE_ANT= yes
USE_JAVA= yes
JAVA_VERSION= 8
USE_XORG= x11 xt
MAKE_ARGS= -DCC="${CC}" -DLD="${LD}"
MAKE_ENV= ANT_OPTS=-Drelease -DARCH=${ANT_ARCH}
USE_GITHUB= yes
GH_ACCOUNT= java-native-access
PORTDOCS= javadoc platform-${PORTVERSION}-javadoc.jar
PLIST_FILES= %%JAVAJARDIR%%/jna-platform.jar \
%%JAVAJARDIR%%/jna.jar
ALL_TARGET= native jar
TEST_TARGET= test
OPTIONS_DEFINE= DOCS
ANT_ARCH= ${ARCH:S/amd64/x86-64/:S/i386/x86/:S/powerpc64/ppc64/}
post-patch:
@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|' \
${WRKSRC}/native/Makefile
post-build-DOCS-on:
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${ANT} javadoc
do-install:
${INSTALL_DATA} ${WRKSRC}/build/freebsd-${ANT_ARCH}.jar \
${STAGEDIR}${JAVAJARDIR}/jna-platform.jar
${INSTALL_DATA} ${WRKSRC}/build/jna.jar \
${STAGEDIR}${JAVAJARDIR}/jna.jar
do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
@cd ${WRKSRC}/doc && ${COPYTREE_SHARE} javadoc ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/dist/platform-${PORTVERSION}-javadoc.jar \
${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>