1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-11 02:50:24 +00:00
freebsd-ports/textproc/smartdoc/Makefile
Masafumi Max NAKANE e6a19cd1a2 Mkdir ${JAVALIBDIR}/classes instead of ${JAVALIBDIR} in do-install.
Remove PLIST_SUB which is no longer used.
2002-05-14 06:48:31 +00:00

73 lines
2.1 KiB
Makefile

# New ports collection makefile for: SmartDoc
# Date created: 19 December 2000
# Whom: KIRIYAMA Kazuhiko <kiri@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= smartdoc
PORTVERSION= 1.0.0
CATEGORIES= textproc java
MASTER_SITES= http://www.asahi-net.or.jp/~dp8t-asm/java/tools/SmartDoc/
DISTNAME= setup${PORTVERSION:S/.//g}
DIST_SUBDIR= ${PORTNAME}
MAINTAINER= kunishi@acm.org
BUILD_DEPENDS= ${MKCATALOG}:${PORTSDIR}/textproc/mkcatalog
RUN_DEPENDS= ${MKCATALOG}:${PORTSDIR}/textproc/mkcatalog \
javavm:${PORTSDIR}/java/javavmwrapper
SCRIPTS_ENV= JAVALIBDIR=${JAVALIBDIR}
WRKSRC= ${WRKDIR}/sdoc
NO_BUILD= yes
USE_ZIP= yes
USE_JAVA= 1.2+
NO_RUN_DEPENDS_JAVA= yes
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 \
README_en.html README_ja.html \
XalanLICENSE.txt XercesLICENSE.txt
JARS= SmartDoc.jar
ELISPS= sdoc-helper.el sdoc-mode.el
post-extract:
${MKDIR} ${WRKSRC}/bin
${CP} ${FILESDIR}/sdoc.in ${WRKSRC}/bin/sdoc
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/bin/sdoc ${PREFIX}/bin
${MKDIR} ${JAVALIBDIR}/classes
.for jar in ${JARS}
${INSTALL_DATA} ${WRKSRC}/${jar} ${JAVALIBDIR}/classes
.endfor
${MKDIR} ${EXAMPLESDIR}
${CP} -R ${WRKSRC}/etc/* ${EXAMPLESDIR}
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
.for doc in ${DOCS}
${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR}
.endfor
${CP} -R ${WRKSRC}/doc ${DOCSDIR}
.endif
${MKDIR} ${DTDDIR} ${EMACSLISPDIR} ${XEMACSLISPDIR}
${INSTALL_DATA} ${FILESDIR}/catalog ${DTDDIR}
${INSTALL_DATA} ${WRKSRC}/etc/pure/PureSmartDoc.dtd ${DTDDIR}
${MKCATALOG} -c ${LOCALBASE}/share/xml/catalog -q install ${PORTNAME}
.for file in ${ELISPS}
${INSTALL_DATA} ${WRKSRC}/etc/${file} ${EMACSLISPDIR}
${INSTALL_DATA} ${WRKSRC}/etc/${file} ${XEMACSLISPDIR}
.endfor
.include <bsd.port.mk>