summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2014-12-10 12:27:27 +0000
committerwiz <wiz@pkgsrc.org>2014-12-10 12:27:27 +0000
commit8c50c658ce574c6c2a648e85408c771617ba81d5 (patch)
treeb3d7b3c3eb9604022b23785571f9f59f29580f6d
parent04e8abd4b8a16c0e8bd4482d563b6adb9cac76fe (diff)
downloadpkgsrc-8c50c658ce574c6c2a648e85408c771617ba81d5.tar.gz
Add a default-on dblatex-fig option to make transfig dependency optional.
Requested by Mark Meyer on pkgsrc-users.
-rw-r--r--textproc/dblatex/Makefile6
-rw-r--r--textproc/dblatex/options.mk11
2 files changed, 15 insertions, 2 deletions
diff --git a/textproc/dblatex/Makefile b/textproc/dblatex/Makefile
index f1605f3be9e..a608b991031 100644
--- a/textproc/dblatex/Makefile
+++ b/textproc/dblatex/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.17 2014/05/29 08:58:24 darcy Exp $
+# $NetBSD: Makefile,v 1.18 2014/12/10 12:27:27 wiz Exp $
DISTNAME= dblatex-0.3.2
PKGREVISION= 3
@@ -13,11 +13,13 @@ LICENSE= gnu-gpl-v2
DEPENDS+= ImageMagick-[0-9]*:../../graphics/ImageMagick
DEPENDS+= teTeX-bin-[0-9]*:../../print/teTeX3-bin
-DEPENDS+= transfig-[0-9]*:../../print/transfig
DEPENDS+= libxslt-[0-9]*:../../textproc/libxslt
DEPENDS+= tex-ifxetex-[0-9]*:../../print/tex-ifxetex
USE_LANGUAGES= # none
+USE_TOOLS+= gmake
+
+.include "options.mk"
REPLACE_PYTHON+= scripts/dblatex lib/dbtexmf/dblatex/xetex/*.py
PYTHON_VERSIONS_INCOMPATIBLE= 33 34 # not yet ported as of 0.3.2
diff --git a/textproc/dblatex/options.mk b/textproc/dblatex/options.mk
new file mode 100644
index 00000000000..de2d5a562bf
--- /dev/null
+++ b/textproc/dblatex/options.mk
@@ -0,0 +1,11 @@
+# $NetBSD: options.mk,v 1.1 2014/12/10 12:27:27 wiz Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.dblatex
+PKG_SUPPORTED_OPTIONS= dblatex-fig
+PKG_SUGGESTED_OPTIONS= dblatex-fig
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mdblatex-fig)
+DEPENDS+= transfig-[0-9]*:../../print/transfig
+.endif