| @@ -1,33 +1,35 @@ | | | @@ -1,33 +1,35 @@ |
1 | # $NetBSD: Makefile,v 1.2 2013/03/16 22:53:52 dholland Exp $ | | 1 | # $NetBSD: Makefile,v 1.3 2013/04/24 10:16:08 sbd Exp $ |
2 | | | 2 | |
3 | DISTNAME= pst-pdf | | 3 | DISTNAME= pst-pdf |
4 | PKGNAME= tex-${DISTNAME}-1.1v | | 4 | PKGNAME= tex-${DISTNAME}-1.1v |
5 | TEXLIVE_REV= 15878 | | 5 | TEXLIVE_REV= 15878 |
6 | PKGREVISION= 1 | | 6 | PKGREVISION= 2 |
7 | | | 7 | |
8 | MAINTAINER= minskim@NetBSD.org | | 8 | MAINTAINER= minskim@NetBSD.org |
9 | COMMENT= Make PDF versions of graphics by processing between runs | | 9 | COMMENT= Make PDF versions of graphics by processing between runs |
10 | | | 10 | |
11 | CONFLICTS= texlive-pdftools<2011 | | 11 | CONFLICTS= texlive-pdftools<2011 |
12 | DEPENDS+= dvipsk-[0-9]*:../../print/dvipsk | | 12 | DEPENDS+= dvipsk-[0-9]*:../../print/dvipsk |
13 | DEPENDS+= tex-environ-[0-9]*:../../print/tex-environ | | 13 | DEPENDS+= tex-environ-[0-9]*:../../print/tex-environ |
14 | DEPENDS+= tex-graphics-[0-9]*:../../print/tex-graphics | | 14 | DEPENDS+= tex-graphics-[0-9]*:../../print/tex-graphics |
15 | DEPENDS+= tex-latex-bin-[0-9]*:../../print/tex-latex-bin | | 15 | DEPENDS+= tex-latex-bin-[0-9]*:../../print/tex-latex-bin |
16 | DEPENDS+= tex-pdfcrop-[0-9]*:../../graphics/tex-pdfcrop | | 16 | DEPENDS+= tex-pdfcrop-[0-9]*:../../graphics/tex-pdfcrop |
17 | DEPENDS+= tex-pdftex-def-[0-9]*:../../print/tex-pdftex-def | | 17 | DEPENDS+= tex-pdftex-def-[0-9]*:../../print/tex-pdftex-def |
18 | DEPENDS+= tex-preview-[0-9]*:../../print/tex-preview | | 18 | DEPENDS+= tex-preview-[0-9]*:../../print/tex-preview |
19 | DEPENDS+= tex-pstricks-[0-9]*:../../graphics/tex-pstricks | | 19 | DEPENDS+= tex-pstricks-[0-9]*:../../graphics/tex-pstricks |
20 | | | 20 | |
| | | 21 | USE_TOOLS+= gs:run |
| | | 22 | |
21 | EVAL_PREFIX+= DVIPS_PREFIX=dvipsk | | 23 | EVAL_PREFIX+= DVIPS_PREFIX=dvipsk |
22 | EVAL_PREFIX+= PS2PDF_PREFIX=ghostscript | | 24 | EVAL_PREFIX+= PS2PDF_PREFIX=ghostscript |
23 | EVAL_PREFIX+= LATEX_PREFIX=tex-latex-bin | | 25 | EVAL_PREFIX+= LATEX_PREFIX=tex-latex-bin |
24 | EVAL_PREFIX+= PDFCROP_PREFIX=tex-pdfcrop | | 26 | EVAL_PREFIX+= PDFCROP_PREFIX=tex-pdfcrop |
25 | USE_TOOLS+= sed:run sh:run | | 27 | USE_TOOLS+= sed:run sh:run |
26 | | | 28 | |
27 | REPLACE_SH= bin/ps4pdf | | 29 | REPLACE_SH= bin/ps4pdf |
28 | | | 30 | |
29 | SUBST_CLASSES+= paths | | 31 | SUBST_CLASSES+= paths |
30 | SUBST_MESSAGE.paths= Setting paths to commands. | | 32 | SUBST_MESSAGE.paths= Setting paths to commands. |
31 | SUBST_STAGE.paths= pre-configure | | 33 | SUBST_STAGE.paths= pre-configure |
32 | SUBST_FILES.paths= bin/ps4pdf | | 34 | SUBST_FILES.paths= bin/ps4pdf |
33 | SUBST_SED.paths+= -e 's,@DVIPS@,${DVIPS_PREFIX}/bin/dvips,g' | | 35 | SUBST_SED.paths+= -e 's,@DVIPS@,${DVIPS_PREFIX}/bin/dvips,g' |
| @@ -37,15 +39,14 @@ SUBST_SED.paths+= -e 's,@PDFLATEX@,${LAT | | | @@ -37,15 +39,14 @@ SUBST_SED.paths+= -e 's,@PDFLATEX@,${LAT |
37 | SUBST_SED.paths+= -e 's,@PS2PDF@,${PS2PDF_PREFIX}/bin/ps2pdf,g' | | 39 | SUBST_SED.paths+= -e 's,@PS2PDF@,${PS2PDF_PREFIX}/bin/ps2pdf,g' |
38 | SUBST_SED.paths+= -e 's,@SED@,${TOOLS_PATH.sed},g' | | 40 | SUBST_SED.paths+= -e 's,@SED@,${TOOLS_PATH.sed},g' |
39 | | | 41 | |
40 | INSTALLATION_DIRS+= bin | | 42 | INSTALLATION_DIRS+= bin |
41 | | | 43 | |
42 | TEXLIVE_IGNORE_PATTERNS= scripts/pst-pdf/ps4pdf.bat* | | 44 | TEXLIVE_IGNORE_PATTERNS= scripts/pst-pdf/ps4pdf.bat* |
43 | | | 45 | |
44 | .include "../../print/texlive/package.mk" | | 46 | .include "../../print/texlive/package.mk" |
45 | | | 47 | |
46 | post-extract: | | 48 | post-extract: |
47 | ${MKDIR} ${WRKSRC}/bin | | 49 | ${MKDIR} ${WRKSRC}/bin |
48 | ${MV} ${WRKSRC}/scripts/pst-pdf/ps4pdf ${WRKSRC}/bin/ | | 50 | ${MV} ${WRKSRC}/scripts/pst-pdf/ps4pdf ${WRKSRC}/bin/ |
49 | | | 51 | |
50 | .include "../../print/ghostscript/ghostscript.mk" | | | |
51 | .include "../../mk/bsd.pkg.mk" | | 52 | .include "../../mk/bsd.pkg.mk" |