diff options
author | crees <crees@FreeBSD.org> | 2013-12-29 23:46:13 +0800 |
---|---|---|
committer | crees <crees@FreeBSD.org> | 2013-12-29 23:46:13 +0800 |
commit | b426718713599e9ce79dadf5246f683f947aae5b (patch) | |
tree | bb6bf1e587f12ca3332817bdb17d2c60f9834051 /java/jgraphx | |
parent | 70bd9953a7522088bd1c8a8ffca5b0d497189c8f (diff) | |
download | freebsd-ports-gnome-b426718713599e9ce79dadf5246f683f947aae5b.tar.gz freebsd-ports-gnome-b426718713599e9ce79dadf5246f683f947aae5b.tar.zst freebsd-ports-gnome-b426718713599e9ce79dadf5246f683f947aae5b.zip |
Stage ports maintained by me in irc java mail
Cleanups in several places
Diffstat (limited to 'java/jgraphx')
-rw-r--r-- | java/jgraphx/Makefile | 45 |
1 files changed, 17 insertions, 28 deletions
diff --git a/java/jgraphx/Makefile b/java/jgraphx/Makefile index 19373ffc0972..368eb79b2503 100644 --- a/java/jgraphx/Makefile +++ b/java/jgraphx/Makefile @@ -1,4 +1,3 @@ -# Created by: Chris Rees # $FreeBSD$ PORTNAME= jgraphx @@ -19,53 +18,43 @@ USE_GITHUB= yes GH_ACCOUNT= jgraph GH_COMMIT= b445bde +OPTIONS_DEFINE= COMPILE DOCS + +COMPILE_DESC= Compile from source instead of using provided binary + USE_JAVA= yes JAVA_VERSION= 1.6+ JAVA_RUN= yes -.if !defined(WITHOUT_COMPILE) || !defined(NOPORTDOCS) +.include <bsd.port.options.mk> + +.if ${PORT_OPTIONS:MCOMPILE} || ${PORT_OPTIONS:MDOCS} BUILD_DEPENDS+= ${ANT_CMD}:${PORTSDIR}/devel/apache-ant ANT_CMD?= ${LOCALBASE}/bin/ant ANT= ${SETENV} JAVA_HOME=${JAVA_HOME} ${ANT_CMD} -.endif - -.if !defined(WITHOUT_COMPILE) +. if ${PORT_OPTIONS:MCOMPILE} JAVA_BUILD= yes -.endif - -.if !defined(NOPORTDOCS) -PORTDOCS= * +. endif .endif PLIST_FILES= %%JAVAJARDIR%%/${PORTNAME}.jar - -NO_STAGE= yes -pre-fetch: - @${ECHO_MSG} "" - @${ECHO_MSG} "You may use the following build options:" - @${ECHO_MSG} "" - @${ECHO_MSG} " WITHOUT_COMPILE=yes Install the pre-compiled .jar file" - @${ECHO_MSG} "" +PORTDOCS= * do-build: -.if !defined(WITHOUT_COMPILE) || !defined(NOPORTDOCS) - @cd ${WRKSRC} && ${ANT} ${ANT_TARGETS} +.if ${PORT_OPTIONS:MCOMPILE} || ${PORT_OPTIONS:MDOCS} + cd ${WRKSRC} && ${ANT} ${ANT_TARGETS} .endif do-install: do-install-jar do-install-javadoc do-install-jar: - @${ECHO_CMD} -n ">> Installing .jar file..." - @${INSTALL_DATA} ${WRKSRC}/lib/${PORTNAME}.jar \ - ${JAVAJARDIR}/${PORTNAME}.jar - @${ECHO_CMD} " [DONE]" + ${INSTALL_DATA} ${WRKSRC}/lib/${PORTNAME}.jar \ + ${STAGEDIR}${JAVAJARDIR}/${PORTNAME}.jar do-install-javadoc: -.if !defined(NOPORTDOCS) - @${ECHO_CMD} -n ">> Installing documentation in ${DOCSDIR}..." - @${MKDIR} ${DOCSDIR} - @cd ${WRKSRC}/docs && ${COPYTREE_SHARE} \* ${DOCSDIR} - @${ECHO_CMD} " [DONE]" +.if ${PORT_OPTIONS:MDOCS} + ${MKDIR} ${STAGEDIR}${DOCSDIR} + cd ${WRKSRC}/docs && ${COPYTREE_SHARE} \* ${STAGEDIR}${DOCSDIR} .endif .include <bsd.port.mk> |