From 0308d12056ed47d2b32a6cdce8c50853fc6f7a26 Mon Sep 17 00:00:00 2001 From: minskim Date: Tue, 24 Apr 2012 20:27:18 +0000 Subject: Let tex-pdftools honor the x11 option. Based on patches from Volkmar Seifert. --- print/tex-pdftools/Makefile | 4 ++-- print/tex-pdftools/options.mk | 11 +++++++++++ 2 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 print/tex-pdftools/options.mk (limited to 'print') 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 -- cgit v1.2.3