diff options
author | Pawel Pekala <pawel@FreeBSD.org> | 2014-05-31 22:39:57 +0800 |
---|---|---|
committer | Pawel Pekala <pawel@FreeBSD.org> | 2014-05-31 22:39:57 +0800 |
commit | 217333838c27f3e044ebcad815a6092c1653ed44 (patch) | |
tree | 12f6e98e6758226d5c00cd4567d309b7cdedbd12 | |
parent | febf657cf2ef16e6763e88c35c296322356c77b1 (diff) | |
download | freebsd-ports-gnome-217333838c27f3e044ebcad815a6092c1653ed44.tar.gz freebsd-ports-gnome-217333838c27f3e044ebcad815a6092c1653ed44.tar.zst freebsd-ports-gnome-217333838c27f3e044ebcad815a6092c1653ed44.zip |
- Add staging support
- Convert to new options framework
-rw-r--r-- | java/mx4j/Makefile | 43 |
1 files changed, 9 insertions, 34 deletions
diff --git a/java/mx4j/Makefile b/java/mx4j/Makefile index cac8edd1ab0d..392a6865759d 100644 --- a/java/mx4j/Makefile +++ b/java/mx4j/Makefile @@ -12,46 +12,21 @@ COMMENT= Open Source implementation of the Java Management Extensions (JMX) USE_JAVA= yes JAVA_VERSION= 1.6+ - -.if !defined(NOPORTDOCS) -PORTDOCS= * -.endif - -.if !defined(NOPORTEXAMPLES) -PORTEXAMPLES= * -.endif +NO_BUILD= yes JARFILES= mx4j-examples.jar mx4j-impl.jar mx4j-jmx.jar \ mx4j-remote.jar mx4j-rimpl.jar mx4j-rjmx.jar \ mx4j-soap.war mx4j-tools.jar mx4j.jar PLIST_FILES= ${JARFILES:S,^,%%JAVAJARDIR%%/,} -NO_BUILD= yes +PORTDOCS= * +PORTEXAMPLES= * + +OPTIONS_DEFINE= DOCS EXAMPLES -do-install: do-install-jar do-install-javadoc - -NO_STAGE= yes -do-install-jar: - @${ECHO_MSG} -n ">> Installing .jar files in ${JAVAJARDIR} ..." - @for jarfile in ${JARFILES}; do \ - ${INSTALL_DATA} ${WRKSRC}/lib/$$jarfile ${JAVAJARDIR} ; \ - done - @${ECHO_MSG} " [DONE]" - -do-install-javadoc: -.if !defined(NOPORTDOCS) - @${ECHO_MSG} -n ">> Installing documentation in ${DOCSDIR} ..." - @cd ${WRKSRC}/docs \ - && ${FIND} . -type d -exec ${MKDIR} ${DOCSDIR}/{} \; \ - && ${FIND} . -type f -exec ${INSTALL_DATA} {} ${DOCSDIR}/{} \; - @${ECHO_MSG} " [DONE]" -.endif -.if !defined(NOPORTEXAMPLES) - @${ECHO_MSG} -n ">> Installing examples in ${EXAMPLESDIR} ..." - @cd ${WRKSRC}/examples \ - && ${FIND} . -type d -exec ${MKDIR} ${EXAMPLESDIR}/{} \; \ - && ${FIND} . -type f -exec ${INSTALL_DATA} {} ${EXAMPLESDIR}/{} \; - @${ECHO_MSG} " [DONE]" -.endif +do-install: + (cd ${WRKSRC}/lib && ${INSTALL_DATA} ${JARFILES} ${STAGEDIR}${JAVAJARDIR}) + (cd ${WRKSRC}/docs && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}) + (cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}) .include <bsd.port.mk> |