summaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authorschmonz <schmonz@pkgsrc.org>2018-03-24 17:15:39 +0000
committerschmonz <schmonz@pkgsrc.org>2018-03-24 17:15:39 +0000
commit85cbd3fc2410af962cb1646e1d640a074609425d (patch)
treed0b2f49f7d8189161fb5924f29490c609debd599 /graphics
parentcb4ab115e7aae6a9ada41203f71643ccc1882205 (diff)
downloadpkgsrc-85cbd3fc2410af962cb1646e1d640a074609425d.tar.gz
Make "quartz" an option on Darwin. Bump PKGREVISION.
Diffstat (limited to 'graphics')
-rw-r--r--graphics/graphviz/Makefile13
-rw-r--r--graphics/graphviz/options.mk14
2 files changed, 14 insertions, 13 deletions
diff --git a/graphics/graphviz/Makefile b/graphics/graphviz/Makefile
index 0a4e237e0d0..7502ef2be8a 100644
--- a/graphics/graphviz/Makefile
+++ b/graphics/graphviz/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.178 2018/03/12 11:15:35 wiz Exp $
+# $NetBSD: Makefile,v 1.179 2018/03/24 17:15:39 schmonz Exp $
DISTNAME= graphviz-2.40.1
-PKGREVISION= 13
+PKGREVISION= 14
CATEGORIES= graphics
MASTER_SITES= http://www.graphviz.org/pub/graphviz/stable/SOURCES/
@@ -54,15 +54,6 @@ REPLACE_PERL+= config/config_perl.pl \
tclpkg/gv/demo/modgraph.pl contrib/dotmcl.pl \
contrib/dirgraph/dirgraph.pl
-.include "../../mk/bsd.prefs.mk"
-
-PLIST_VARS+= quartz
-
-.if ${OPSYS} == "Darwin"
-CONFIGURE_ARGS+= --with-quartz
-PLIST.quartz= yes
-.endif
-
.include "../../mk/compiler.mk"
.if !empty(CC_VERSION:Mgcc-2*)
BUILDLINK_TRANSFORM+= rm:-Wno-unused-parameter
diff --git a/graphics/graphviz/options.mk b/graphics/graphviz/options.mk
index 96bf2a67215..efd03e6a780 100644
--- a/graphics/graphviz/options.mk
+++ b/graphics/graphviz/options.mk
@@ -1,7 +1,10 @@
-# $NetBSD: options.mk,v 1.24 2017/05/22 11:19:20 adam Exp $
+# $NetBSD: options.mk,v 1.25 2018/03/24 17:15:39 schmonz Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.graphviz
PKG_SUPPORTED_OPTIONS= gd ghostscript gtk gts lua ocaml poppler qt svg tcl x11 perl # guile does not build with guile20
+.if exists(/System/Library/Frameworks/Quartz.framework)
+PKG_SUPPORTED_OPTIONS+= quartz
+.endif
PKG_SUGGESTED_OPTIONS= gd gtk lua perl tcl x11
# Explanation of consequence of options, to help those trying to slim down:
# guile ocaml lua tcl perl: extension language support
@@ -16,7 +19,7 @@ PKG_SUGGESTED_OPTIONS= gd gtk lua perl tcl x11
.include "../../mk/bsd.options.mk"
-PLIST_VARS+= gd ghostscript gtk guile lua ocaml perl poppler qt svg tcl x11
+PLIST_VARS+= gd ghostscript gtk guile lua ocaml perl poppler qt quartz svg tcl x11
.if !empty(PKG_OPTIONS:Mgd)
. include "../../graphics/gd/buildlink3.mk"
@@ -57,6 +60,13 @@ PLIST.qt= yes
CONFIGURE_ARGS+= --without-qt
.endif
+.if !empty(PKG_OPTIONS:Mquartz)
+PLIST.quartz= yes
+CONFIGURE_ARGS+= --with-quartz
+.else
+CONFIGURE_ARGS+= --without-quartz
+.endif
+
.if !empty(PKG_OPTIONS:Msvg)
. include "../../graphics/librsvg/buildlink3.mk"
PLIST.svg= yes