Date: Sat, 31 May 2014 14:39:58 +0000 (UTC) From: Pawel Pekala <pawel@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r355983 - head/java/mx4j Message-ID: <201405311439.s4VEdwhJ050017@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: pawel Date: Sat May 31 14:39:57 2014 New Revision: 355983 URL: http://svnweb.freebsd.org/changeset/ports/355983 QAT: https://qat.redports.org/buildarchive/r355983/ Log: - Add staging support - Convert to new options framework Modified: head/java/mx4j/Makefile Modified: head/java/mx4j/Makefile ============================================================================== --- head/java/mx4j/Makefile Sat May 31 14:33:59 2014 (r355982) +++ head/java/mx4j/Makefile Sat May 31 14:39:57 2014 (r355983) @@ -12,46 +12,21 @@ COMMENT= Open Source implementation of t 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 <bsd.port.mk>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201405311439.s4VEdwhJ050017>