pkgsrc/print/tex-pdftools/Makefile
jperkin e335c8910c Remove mk/find-prefix.mk usage from the print category.
The find-prefix infrastructure was required in a pkgviews world where
packages installed from pkgsrc could have different installation
prefixes, and this was a way for a dependency prefix to be determined.

Now that pkgviews has been removed there is no longer any need for the
overhead of this infrastructure.  Instead we use BUILDLINK_PREFIX.pkg
for dependencies pulled in via buildlink, or LOCALBASE/PREFIX where the
dependency is coming from pkgsrc.

Provides a reasonable performance win due to the reduction of `pkg_info
-qp` calls, some of which were redundant anyway as they were duplicating
the same information provided by BUILDLINK_PREFIX.pkg.
2015-11-25 12:53:09 +00:00

38 lines
1,012 B
Makefile

# $NetBSD: Makefile,v 1.10 2015/11/25 12:53:09 jperkin Exp $
DISTNAME= pdftools
PKGNAME= tex-${DISTNAME}-0.86
TEXLIVE_REV= 37078
MAINTAINER= minskim@NetBSD.org
COMMENT= PDF-related utilities, including PostScript-to-PDF conversion
LICENSE= public-domain
CONFLICTS= texlive-pdftools<2011
DEPENDS+= tex-epstopdf-[0-9]*:../../graphics/tex-epstopdf
DEPENDS+= tex-oberdiek>=2011:../../print/tex-oberdiek
DEPENDS+= tex-pst-pdf-[0-9]*:../../graphics/tex-pst-pdf
DEPENDS+= web2c-[0-9]*:../../print/web2c
USE_TOOLS+= perl:run
REPLACE_PERL+= bin/e2pall
SUBST_CLASSES+= paths
SUBST_MESSAGE.paths= Setting paths to commands.
SUBST_STAGE.paths= pre-configure
SUBST_FILES.paths= bin/e2pall
SUBST_SED.paths+= -e 's,@EPSTOPDF@,${LOCALBASE}/bin/epstopdf,g'
INSTALLATION_DIRS+= bin
TEX_TEXMF_DIRS= # empty
.include "../../print/texlive/package.mk"
.include "options.mk"
post-extract:
${MKDIR} ${WRKSRC}/bin
${MV} ${WRKSRC}/texmf-dist/scripts/texlive/e2pall.pl \
${WRKSRC}/bin/e2pall
.include "../../mk/bsd.pkg.mk"