aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/smartdoc/Makefile
diff options
context:
space:
mode:
authorhq <hq@FreeBSD.org>2005-02-05 11:45:32 +0800
committerhq <hq@FreeBSD.org>2005-02-05 11:45:32 +0800
commitb591cd6180eda62ef56e67301e6086c5edc0c359 (patch)
treee418b4a3bfc92a02a0de87a6ba0c9fc877058155 /textproc/smartdoc/Makefile
parentbfeb0af6acb13be9dc1a465c2568732bdd52935a (diff)
downloadfreebsd-ports-gnome-b591cd6180eda62ef56e67301e6086c5edc0c359.tar.gz
freebsd-ports-gnome-b591cd6180eda62ef56e67301e6086c5edc0c359.tar.zst
freebsd-ports-gnome-b591cd6180eda62ef56e67301e6086c5edc0c359.zip
- Update to bsd.java.mk 2.0
- Use JAVAJARDIR - Use PORTDOCS (and calm portlint) - CP -> INSTALL_DATA - Improve the launcher shell script: use javavmwrapper 2.0 rather than testing manually the JDK version - Use SUB_FILES to configure launcher rather than a perl script
Diffstat (limited to 'textproc/smartdoc/Makefile')
-rw-r--r--textproc/smartdoc/Makefile40
1 files changed, 19 insertions, 21 deletions
diff --git a/textproc/smartdoc/Makefile b/textproc/smartdoc/Makefile
index 972f29646c4f..1fb0a308663f 100644
--- a/textproc/smartdoc/Makefile
+++ b/textproc/smartdoc/Makefile
@@ -17,50 +17,48 @@ COMMENT= XML utility to create various documents
BUILD_DEPENDS= ${MKCATALOG}:${PORTSDIR}/textproc/mkcatalog
RUN_DEPENDS= ${MKCATALOG}:${PORTSDIR}/textproc/mkcatalog \
- javavm:${PORTSDIR}/java/javavmwrapper
+ java:${PORTSDIR}/java/javavmwrapper
-SCRIPTS_ENV= JAVALIBDIR=${JAVALIBDIR}
WRKSRC= ${WRKDIR}/sdoc
NO_BUILD= yes
USE_ZIP= yes
-USE_PERL5_BUILD=yes
-USE_JAVA= 1.2+
-JAVA_EXTRACT= yes
+USE_JAVA= yes
+JAVA_VERSION= 1.2+
+JAVA_EXTRACT= jre
+JAVA_RUN= jre
EXTRACT_CMD= ${JAVA}
EXTRACT_BEFORE_ARGS= -jar ${DISTDIR}/${DIST_SUBDIR}/${DISTFILES} \
-batch -bindir:${WRKSRC}/bin -installbasedir:${WRKSRC}
EXTRACT_AFTER_ARGS= #
-JAVALIBDIR= ${PREFIX}/share/java
XMLDIR= ${PREFIX}/share/xml
EMACSLISPDIR= ${LOCALBASE}/share/emacs/site-lisp
XEMACSLISPDIR= ${LOCALBASE}/lib/xemacs/site-lisp
DTDDIR= ${XMLDIR}/${PORTNAME}
MKCATALOG= ${LOCALBASE}/sbin/mkcatalog
-DOCS= COPYING.txt OroLICENSE.txt README README.sdoc \
+.if !defined(NOPORTDOCS)
+PORTDOCS= COPYING.txt OroLICENSE.txt README README.sdoc \
README_en.html README_ja.html \
- XalanLICENSE.txt XercesLICENSE.txt
+ XalanLICENSE.txt XercesLICENSE.txt doc
+.endif
JARS= SmartDoc.jar
ELISPS= sdoc-helper.el sdoc-mode.el
-post-extract:
- ${MKDIR} ${WRKSRC}/bin
- ${CP} ${FILESDIR}/sdoc.in ${WRKSRC}/bin/sdoc
+SUB_FILES= sdoc.sh
do-install:
- ${INSTALL_SCRIPT} ${WRKSRC}/bin/sdoc ${PREFIX}/bin
- ${MKDIR} ${JAVALIBDIR}/classes
+ ${INSTALL_SCRIPT} ${WRKDIR}/sdoc.sh ${PREFIX}/bin/sdoc
+ ${MKDIR} ${JAVAJARDIR}
.for jar in ${JARS}
- ${INSTALL_DATA} ${WRKSRC}/${jar} ${JAVALIBDIR}/classes
+ ${INSTALL_DATA} ${WRKSRC}/${jar} ${JAVAJARDIR}
.endfor
- ${MKDIR} ${EXAMPLESDIR}
- ${CP} -R ${WRKSRC}/etc/* ${EXAMPLESDIR}
+ cd ${WRKSRC}/etc \
+ && ${FIND} . -type d -exec ${MKDIR} ${EXAMPLESDIR}/{} \; \
+ && ${FIND} . -type f -exec ${INSTALL_DATA} {} ${EXAMPLESDIR}/{} \;
.if !defined(NOPORTDOCS)
- ${MKDIR} ${DOCSDIR}
-.for doc in ${DOCS}
- ${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR}
-.endfor
- ${CP} -R ${WRKSRC}/doc ${DOCSDIR}
+ cd ${WRKSRC} \
+ && ${FIND} ${PORTDOCS} -type d -exec ${MKDIR} ${DOCSDIR}/{} \; \
+ && ${FIND} ${PORTDOCS} -type f -exec ${INSTALL_DATA} {} ${DOCSDIR}/{} \;
.endif
${MKDIR} ${DTDDIR} ${EMACSLISPDIR} ${XEMACSLISPDIR}
${INSTALL_DATA} ${FILESDIR}/catalog ${DTDDIR}