From 217333838c27f3e044ebcad815a6092c1653ed44 Mon Sep 17 00:00:00 2001 From: Pawel Pekala Date: Sat, 31 May 2014 14:39:57 +0000 Subject: [PATCH] - Add staging support - Convert to new options framework --- java/mx4j/Makefile | 41 ++++++++--------------------------------- 1 file changed, 8 insertions(+), 33 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= * -do-install: do-install-jar do-install-javadoc +OPTIONS_DEFINE= DOCS EXAMPLES -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