summaryrefslogtreecommitdiff
path: root/print
diff options
context:
space:
mode:
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