pkgsrc/textproc/trang/Makefile
2009-07-07 20:36:32 +00:00

33 lines
1,020 B
Makefile

# $NetBSD: Makefile,v 1.2 2009/07/07 20:36:32 joerg Exp $
#
DISTNAME= trang-20030619
CATEGORIES= textproc
MASTER_SITES= http://www.thaiopensource.com/download/
EXTRACT_SUFX= .zip
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.thaiopensource.com/relaxng/trang.html
COMMENT= Multi-format schema converter based on RELAX NG
PKG_DESTDIR_SUPPORT= user-destdir
DEPENDS+= jing-[0-9]*:../../textproc/jing
USE_JAVA= run
USE_JAVA2= 1.4
do-build:
${ECHO} "#!/bin/sh" > ${WRKSRC}/trang
${ECHO} "${PKG_JAVA_HOME}/bin/java -jar ${PREFIX}/libexec/trang/trang.jar"' "$$@"' >> ${WRKSRC}/trang
INSTALLATION_DIRS= bin libexec/trang share/doc/trang
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/trang ${DESTDIR}${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/trang.jar ${DESTDIR}${PREFIX}/libexec/trang
${INSTALL_DATA} ${WRKSRC}/copying.txt ${DESTDIR}${PREFIX}/share/doc/trang
${INSTALL_DATA} ${WRKSRC}/trang-manual.html ${DESTDIR}${PREFIX}/share/doc/trang
.include "../../mk/java-vm.mk"
.include "../../mk/bsd.pkg.mk"