diff options
author | Dmitry Marakasov <amdmi3@FreeBSD.org> | 2016-04-02 02:53:44 +0000 |
---|---|---|
committer | Dmitry Marakasov <amdmi3@FreeBSD.org> | 2016-04-02 02:53:44 +0000 |
commit | cce6716655761ab5c5c6d2f8570a697c534c3f53 (patch) | |
tree | c5b04e720244a89c77bc256007c13ce5e62c825c | |
parent | 9e41a3757031fb7bfc2d2422eb7a0acd11b89d78 (diff) | |
download | ports-cce6716655761ab5c5c6d2f8570a697c534c3f53.tar.gz ports-cce6716655761ab5c5c6d2f8570a697c534c3f53.zip |
- Add NO_ARCH
- Switch to options helpers
- Simplify installation
Notes
Notes:
svn path=/head/; revision=412379
-rw-r--r-- | textproc/saxon/Makefile | 28 |
1 files changed, 10 insertions, 18 deletions
diff --git a/textproc/saxon/Makefile b/textproc/saxon/Makefile index 9cdc87c25d59..80ce3d5c1baf 100644 --- a/textproc/saxon/Makefile +++ b/textproc/saxon/Makefile @@ -17,13 +17,12 @@ USE_JAVA= yes JAVA_VERSION= 1.6+ NO_WRKSUBDIR= yes NO_BUILD= yes +NO_ARCH= yes CONFLICTS= saxon-devel-8.* -OPTIONS_DEFINE= DOCS EXAMPLES - JARFILES= saxon-jdom.jar saxon.jar -PLIST_FILES+= ${JARFILES:S,^,%%JAVAJARDIR%%/,} bin/saxon +PLIST_FILES= ${JARFILES:S,^,%%JAVAJARDIR%%/,} bin/saxon PORTDOCS= api api-guide.html changes.html conditions.html \ conformance.html dtdgen.html expressions.html \ extensibility.html extensions.html index.html \ @@ -33,25 +32,18 @@ PORTDOCS= api api-guide.html changes.html conditions.html \ SUB_LIST= SAXON_JARS="${JARFILES:S,^,${JAVAJARDIR}/,}" SUB_FILES= saxon.sh +OPTIONS_DEFINE= DOCS EXAMPLES + do-install: - @${ECHO_MSG} -n ">> Installing JARs in ${JAVAJARDIR}..." .for JARFILE in ${JARFILES} - @${ECHO_MSG} -n " ${JARFILE}" ${INSTALL_DATA} ${WRKSRC}/${JARFILE} ${STAGEDIR}${JAVAJARDIR}/ .endfor - @${ECHO_MSG} " [ DONE ]" - @${ECHO_MSG} -n ">> Installing samples in ${EXAMPLESDIR}..." - (cd ${WRKSRC}/samples/ && \ - ${FIND} . -type d -exec ${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/{} \; && \ - ${FIND} . -type f -exec ${INSTALL_DATA} {} ${STAGEDIR}${EXAMPLESDIR}/{} \;) - @${ECHO_MSG} " [ DONE ]" - @${ECHO_MSG} -n ">> Installing documentation in ${DOCSDIR}..." - (cd ${WRKSRC}/doc/ && \ - ${FIND} ${PORTDOCS} -type d -exec ${MKDIR} ${STAGEDIR}${DOCSDIR}/{} \; && \ - ${FIND} ${PORTDOCS} -type f -exec ${INSTALL_DATA} {} ${STAGEDIR}${DOCSDIR}/{} \;) - @${ECHO_MSG} " [ DONE ]" - @${ECHO_MSG} -n ">> Installing script in ${PREFIX}/bin..." ${INSTALL_SCRIPT} ${WRKDIR}/saxon.sh ${STAGEDIR}${PREFIX}/bin/saxon - @${ECHO_MSG} " [ DONE ]" + +do-install-DOCS-on: + @cd ${WRKSRC}/doc && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR} + +do-install-EXAMPLES-on: + @cd ${WRKSRC}/samples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR} .include <bsd.port.mk> |