pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/graphics/graphviz Make "quartz" an option on Darwin. B...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/654c75972071
branches:  trunk
changeset: 377953:654c75972071
user:      schmonz <schmonz%pkgsrc.org@localhost>
date:      Sat Mar 24 17:15:39 2018 +0000

description:
Make "quartz" an option on Darwin. Bump PKGREVISION.

diffstat:

 graphics/graphviz/Makefile   |  13 ++-----------
 graphics/graphviz/options.mk |  14 ++++++++++++--
 2 files changed, 14 insertions(+), 13 deletions(-)

diffs (67 lines):

diff -r 96e8f4a7177f -r 654c75972071 graphics/graphviz/Makefile
--- a/graphics/graphviz/Makefile        Sat Mar 24 17:11:57 2018 +0000
+++ b/graphics/graphviz/Makefile        Sat Mar 24 17:15:39 2018 +0000
@@ -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 @@
                        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 -r 96e8f4a7177f -r 654c75972071 graphics/graphviz/options.mk
--- a/graphics/graphviz/options.mk      Sat Mar 24 17:11:57 2018 +0000
+++ b/graphics/graphviz/options.mk      Sat Mar 24 17:15:39 2018 +0000
@@ -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 @@
 
 .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 @@
 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



Home | Main Index | Thread Index | Old Index