mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
- Add staging support
- Convert to new options framework
This commit is contained in:
parent
febf657cf2
commit
217333838c
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=355983
@ -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 <bsd.port.mk>
|
||||
|
Loading…
Reference in New Issue
Block a user