blob: 6f218bf43338b8f2b3335e006e76c12afdf81a2d (
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
# $NetBSD: Makefile,v 1.35 2017/08/01 14:59:06 wiz Exp $
#
# Note: we currently use the pre-built (-bin) distribution of FOP,
#
DISTNAME= fop-${VERSION}-bin
PKGNAME= fop-${VERSION}
VERSION= 1.1
CATEGORIES= textproc www
MASTER_SITES= ${MASTER_SITE_APACHE:=xmlgraphics/fop/binaries/}
MAINTAINER= ftigeot@users.sourceforge.net
HOMEPAGE= https://xmlgraphics.apache.org/fop/
COMMENT= Print formatter driven by XSL Formatting Objects (XSL-FO)
LICENSE= apache-2.0
USE_JAVA= run
USE_TOOLS+= pax
NO_CONFIGURE= yes
NO_BUILD= yes
INSTALLATION_DIRS= bin share/java/fop
WRKSRC= ${WRKDIR}/${PKGNAME_NOREV}
PLIST_SRC= ${PKGDIR}/PLIST
SUBST_CLASSES+= java_home
SUBST_STAGE.java_home= post-patch
SUBST_MESSAGE.java_home= Setting JAVA_HOME to a sane value.
SUBST_FILES.java_home= fop
SUBST_FILES.java_home+= fop-ttfreader.sh
SUBST_VARS.java_home= PKG_JAVA_HOME PREFIX SH
.include "options.mk"
fop-ttfreader:
${CP} ${FILESDIR}/fop-ttfreader.sh \
${WRKSRC}/fop-ttfreader.sh
do-install:
cd ${WRKSRC} && ${PAX} -rw . ${DESTDIR}${PREFIX}/share/java/fop
${LN} -sf ../share/java/fop/fop ${DESTDIR}${PREFIX}/bin
${RM} -f ${DESTDIR}${PREFIX}/share/java/fop/fop.orig
${RM} -f ${DESTDIR}${PREFIX}/share/java/fop/fop-ttfreader.sh
${INSTALL_SCRIPT} ${WRKSRC}/fop-ttfreader.sh \
${DESTDIR}${PREFIX}/bin/fop-ttfreader
.include "../../mk/java-vm.mk"
.include "../../mk/bsd.pkg.mk"
|