pkgsrc/textproc/fop/Makefile
rillig 768cd99f7f textproc: align variable assignments
pkglint -Wall -F --only aligned --only indent -r

No manual corrections.
2019-11-04 21:43:32 +00:00

49 lines
1.3 KiB
Makefile

# $NetBSD: Makefile,v 1.38 2019/11/04 21:43:35 rillig 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= pre-install
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"