summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorminskim <minskim@pkgsrc.org>2012-04-24 20:27:18 +0000
committerminskim <minskim@pkgsrc.org>2012-04-24 20:27:18 +0000
commit751cd4aae39d9d9b3c287a479dee0cb5391e9ead (patch)
treebc64a97303b50b3d4ad00da33f9838c0297b2b50
parentbc1bb6aca2c19385400b18741f6f0482ad53192c (diff)
downloadpkgsrc-751cd4aae39d9d9b3c287a479dee0cb5391e9ead.tar.gz
Let tex-pdftools honor the x11 option.
Based on patches from Volkmar Seifert.
-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