summaryrefslogtreecommitdiff
path: root/print
diff options
context:
space:
mode:
authorminskim <minskim>2012-04-24 20:27:18 +0000
committerminskim <minskim>2012-04-24 20:27:18 +0000
commit0308d12056ed47d2b32a6cdce8c50853fc6f7a26 (patch)
treebc64a97303b50b3d4ad00da33f9838c0297b2b50 /print
parentdd9875c087dc1cc8015ff86485c8a103847042fc (diff)
downloadpkgsrc-0308d12056ed47d2b32a6cdce8c50853fc6f7a26.tar.gz
Let tex-pdftools honor the x11 option.
Based on patches from Volkmar Seifert.
Diffstat (limited to 'print')
-rw-r--r--print/tex-pdftools/Makefile4
-rw-r--r--print/tex-pdftools/options.mk11
2 files changed, 13 insertions, 2 deletions
diff --git a/print/tex-pdftools/Makefile b/print/tex-pdftools/Makefile
index a4158ccba8e..db535650ff6 100644
--- a/print/tex-pdftools/Makefile
+++ b/print/tex-pdftools/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1.1.1 2011/10/27 19:03:24 minskim Exp $
+# $NetBSD: Makefile,v 1.2 2012/04/24 20:27:18 minskim Exp $
DISTNAME= pdftools
PKGNAME= tex-${DISTNAME}-0.82
@@ -13,7 +13,6 @@ 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
-DEPENDS+= xpdfopen-[0-9]*:../../print/xpdfopen
EVAL_PREFIX+= EPSTOPDF_PREFIX=tex-epstopdf
USE_TOOLS+= perl:run
@@ -29,6 +28,7 @@ SUBST_SED.paths+= -e 's,@EPSTOPDF@,${EPSTODPF_PREFIX}/bin/epstopdf,g'
INSTALLATION_DIRS+= bin
TEX_TEXMF_DIRS= # empty
+.include "options.mk"
.include "../../print/texlive/package.mk"
post-extract:
diff --git a/print/tex-pdftools/options.mk b/print/tex-pdftools/options.mk
new file mode 100644
index 00000000000..addfb0e8b1c
--- /dev/null
+++ b/print/tex-pdftools/options.mk
@@ -0,0 +1,11 @@
+# $NetBSD: options.mk,v 1.1 2012/04/24 20:27:18 minskim Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.tex-pdftools
+PKG_SUPPORTED_OPTIONS+= x11
+PKG_SUGGESTED_OPTIONS+= x11
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mx11)
+DEPENDS+= xpdfopen-[0-9]*:../../print/xpdfopen
+.endif