summaryrefslogtreecommitdiff
path: root/print/tex-pdftools/Makefile
blob: 8c3b1b6e8a7e7e5c5b956c1845a351b7a731d81b (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
# $NetBSD: Makefile,v 1.5 2013/05/31 12:41:49 wiz Exp $

DISTNAME=	pdftools
PKGNAME=	tex-${DISTNAME}-0.82
PKGREVISION=	2
TEXLIVE_REV=	23089

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

EVAL_PREFIX+=	EPSTOPDF_PREFIX=tex-epstopdf
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@,${EPSTODPF_PREFIX}/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/scripts/tetex/e2pall.pl ${WRKSRC}/bin/e2pall

.include "../../mk/bsd.pkg.mk"