diff options
author | amdmi3 <amdmi3@FreeBSD.org> | 2016-09-12 01:58:19 +0800 |
---|---|---|
committer | amdmi3 <amdmi3@FreeBSD.org> | 2016-09-12 01:58:19 +0800 |
commit | fff647e14c9242dc8791f287de2cec04e2399be8 (patch) | |
tree | 6c4d08e2dcdf7bbe762e09b15d071ed37b4aacd1 /devel | |
parent | 39908ea9b0ebba9b839344f3593fe5e3e0ec61d2 (diff) | |
download | freebsd-ports-gnome-fff647e14c9242dc8791f287de2cec04e2399be8.tar.gz freebsd-ports-gnome-fff647e14c9242dc8791f287de2cec04e2399be8.tar.zst freebsd-ports-gnome-fff647e14c9242dc8791f287de2cec04e2399be8.zip |
- Add LICENSE
- Switch to options helpers
- Cosmetic fixes
Diffstat (limited to 'devel')
-rw-r--r-- | devel/jna/Makefile | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/devel/jna/Makefile b/devel/jna/Makefile index 8498a7315e13..ec2b37b2cb24 100644 --- a/devel/jna/Makefile +++ b/devel/jna/Makefile @@ -7,16 +7,23 @@ 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} +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 @@ -24,10 +31,6 @@ OPTIONS_DEFINE= DOCS .include <bsd.port.options.mk> -.if ${PORT_OPTIONS:MDOCS} -PORTDOCS= javadoc platform-${PORTVERSION}-javadoc.jar -.endif - .if ${ARCH} == "i386" ANT_ARCH= x86 .elif ${ARCH} == "amd64" @@ -36,24 +39,21 @@ ANT_ARCH= x86-64 post-patch: @${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|' \ - ${WRKSRC}/native/Makefile + ${WRKSRC}/native/Makefile -post-build-script: -.if ${PORT_OPTIONS:MDOCS} +post-build-DOCS-on: cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${ANT} javadoc -.endif do-install: ${INSTALL_DATA} ${WRKSRC}/build/freebsd-${ANT_ARCH}.jar \ - ${STAGEDIR}${JAVAJARDIR}/jna-platform.jar + ${STAGEDIR}${JAVAJARDIR}/jna-platform.jar ${INSTALL_DATA} ${WRKSRC}/build/jna.jar \ - ${STAGEDIR}${JAVAJARDIR}/jna.jar -.if ${PORT_OPTIONS:MDOCS} + ${STAGEDIR}${JAVAJARDIR}/jna.jar + +do-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} - cd ${WRKSRC}/doc && \ - ${COPYTREE_SHARE} javadoc ${STAGEDIR}${DOCSDIR} + @cd ${WRKSRC}/doc && ${COPYTREE_SHARE} javadoc ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/dist/platform-${PORTVERSION}-javadoc.jar \ - ${STAGEDIR}${DOCSDIR} -.endif + ${STAGEDIR}${DOCSDIR} .include <bsd.port.mk> |