blob: 3fda7527dc49b4f323485e69eabdab1b0a447eda (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
# $NetBSD: Makefile,v 1.1.1.1 2009/11/07 09:04:19 wiz Exp $
#
DISTNAME= epubpreflight-0.1.0
CATEGORIES= textproc
MASTER_SITES= http://epubcheck.googlecode.com/files/
EXTRACT_SUFX= .zip
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://epubcheck.googlecode.com/
COMMENT= TODO: Short description of the package
LICENSE= modified-bsd AND mit
PKG_DESTDIR_SUPPORT= user-destdir
WRKSRC= ${WRKDIR}
USE_JAVA= run
INSTALLATION_DIRS= bin libexec/epubpreflight/lib share/doc/epubpreflight
do-build:
${ECHO} "#!/bin/sh" > ${WRKSRC}/epubpreflight
${ECHO} "${PKG_JAVA_HOME}/bin/java -jar ${PREFIX}/libexec/epubpreflight/epubpreflight-0.1.0.jar"' "$$@"' >> ${WRKSRC}/epubpreflight
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/epubpreflight ${DESTDIR}${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/epubpreflight-0.1.0.jar ${DESTDIR}${PREFIX}/libexec/epubpreflight
# XXX: depend on saxon instead?
${INSTALL_DATA} ${WRKSRC}/lib/saxon.jar ${DESTDIR}${PREFIX}/libexec/epubpreflight/lib
${INSTALL_DATA} ${WRKSRC}/COPYING.txt ${DESTDIR}${PREFIX}/share/doc/epubpreflight
${INSTALL_DATA} ${WRKSRC}/README.txt ${DESTDIR}${PREFIX}/share/doc/epubpreflight
${INSTALL_DATA} ${WRKSRC}/jing_license.txt ${DESTDIR}${PREFIX}/share/doc/epubpreflight
.include "../../mk/java-vm.mk"
.include "../../mk/bsd.pkg.mk"
|