1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-21 08:42:23 +00:00
freebsd-ports/devel/jna/Makefile
Dmitry Marakasov 764781d46a - Add LICENSE
- Switch to options helpers
- Cosmetic fixes
2016-09-11 17:58:19 +00:00

60 lines
1.3 KiB
Makefile

# $FreeBSD$
PORTNAME= jna
PORTVERSION= 4.1.0
CATEGORIES= devel java
MAINTAINER= ports@FreeBSD.org
COMMENT= Java access to native shared libraries
LICENSE= LGPL21+ APACHE20
LICENSE_COMB= dual
LICENSE_FOLE= ${WRKSRC}/LICENSE
LICENSE_FILE_LGPL21+ = ${WRKSRC}/LGPL2.1
LICENSE_FILE_APACHE20= ${WRKSRC}/ASL2.0
USES= gmake
USE_ANT= yes
USE_JAVA= yes
USE_XORG= x11 xt
MAKE_ARGS= -DCC="${CC}" -DLD="${LD}"
MAKE_ENV= ANT_OPTS=-Drelease -DARCH=${ANT_ARCH}
USE_GITHUB= yes
GH_ACCOUNT= twall
PORTDOCS= javadoc platform-${PORTVERSION}-javadoc.jar
PLIST_FILES= %%JAVAJARDIR%%/jna-platform.jar \
%%JAVAJARDIR%%/jna.jar
OPTIONS_DEFINE= DOCS
.include <bsd.port.options.mk>
.if ${ARCH} == "i386"
ANT_ARCH= x86
.elif ${ARCH} == "amd64"
ANT_ARCH= x86-64
.endif
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>