summaryrefslogtreecommitdiff
path: root/graphics/graphviz/options.mk
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/graphviz/options.mk')
-rw-r--r--graphics/graphviz/options.mk98
1 files changed, 68 insertions, 30 deletions
diff --git a/graphics/graphviz/options.mk b/graphics/graphviz/options.mk
index 040372c221f..b0857187ab7 100644
--- a/graphics/graphviz/options.mk
+++ b/graphics/graphviz/options.mk
@@ -1,30 +1,72 @@
-# $NetBSD: options.mk,v 1.5 2009/02/26 19:45:14 sno Exp $
+# $NetBSD: options.mk,v 1.6 2009/05/17 12:55:52 sno Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.graphviz
-PKG_SUPPORTED_OPTIONS= x11 pangocairo guile lua ocaml swig tcl gtk gd
-PKG_SUGGESTED_OPTIONS= x11 pangocairo lua swig tcl
+PKG_SUPPORTED_OPTIONS= gd x11 pangocairo gtk rsvg swig guile lua ocaml tcl perl
+PKG_SUGGESTED_OPTIONS= gd x11 pangocairo gtk rsvg swig lua tcl perl
.include "../../mk/bsd.options.mk"
-PLIST_VARS+= guile gtk lua ocaml tcl pangocairo x11 gd
+PLIST_VARS+= gd x11 pangocairo rsvg gtk guile lua ocaml tcl perl
.if !empty(PKG_OPTIONS:Mx11)
.include "../../x11/libXp/buildlink3.mk"
.include "../../mk/xaw.buildlink3.mk"
CONFIGURE_ENV+= X11PREFIX=${X11PREFIX} X11BASE=${X11BASE}
PLIST.x11= yes
+
+.if !empty(PKG_OPTIONS:Mpangocairo)
+.include "../../devel/pango/buildlink3.mk"
+.include "../../graphics/cairo/buildlink3.mk"
+PLIST.pangocairo= yes
+
+.if !empty(PKG_OPTIONS:Mgtk)
+.include "../../x11/gtk2/buildlink3.mk"
+PLIST.gtk= yes
+.else
+CONFIGURE_ARGS+= --without-gdk-pixbuf
+CONFIGURE_ARGS+= --without-gtk
+CONFIGURE_ARGS+= --without-gnomeui
+.endif
+
+.if !empty(PKG_OPTIONS:Mrsvg)
+.include "../../graphics/librsvg/buildlink3.mk"
+PLIST.rsvg= yes
+.else
+CONFIGURE_ARGS+= --without-rsvg
+.endif
+
+.else
+CONFIGURE_ARGS+= --without-pangocairo
+
+CONFIGURE_ARGS+= --without-gdk-pixbuf
+CONFIGURE_ARGS+= --without-gtk
+CONFIGURE_ARGS+= --without-gnomeui
+
+CONFIGURE_ARGS+= --without-rsvg
+.endif
+
.else
CONFIGURE_ARGS+= --without-x
+
+CONFIGURE_ARGS+= --without-pangocairo
+
+CONFIGURE_ARGS+= --without-gdk-pixbuf
+CONFIGURE_ARGS+= --without-gtk
+CONFIGURE_ARGS+= --without-gnomeui
+
+CONFIGURE_ARGS+= --without-rsvg
.endif
-.if !empty(PKG_OPTIONS:Mx11) && !empty(PKG_OPTIONS:Mguile)
-.include "../../lang/guile/buildlink3.mk"
-CONFIGURE_ARGS+= --enable-guile
-PLIST.guile= yes
+.if !empty(PKG_OPTIONS:Mgd)
+.include "../../graphics/gd/buildlink3.mk"
+PLIST.gd= yes
.else
-CONFIGURE_ARGS+= --disable-guile
+CONFIGURE_ARGS+= --without-libgd
.endif
+.if !empty(PKG_OPTIONS:Mswig)
+.include "../../devel/swig/buildlink3.mk"
+
.if !empty(PKG_OPTIONS:Mlua)
.include "../../lang/lua/buildlink3.mk"
PLIST.lua= yes
@@ -39,12 +81,6 @@ PLIST.ocaml= yes
CONFIGURE_ARGS+= --disable-ocaml
.endif
-.if !empty(PKG_OPTIONS:Mswig)
-.include "../../devel/swig/buildlink3.mk"
-.else
-CONFIGURE_ARGS+= --disable-swig
-.endif
-
.if !empty(PKG_OPTIONS:Mtcl)
.include "../../x11/tk/buildlink3.mk"
CONFIGURE_ENV+= TCLCONFIG=${TCLCONFIG_SH:Q}
@@ -54,26 +90,28 @@ PLIST.tcl= yes
CONFIGURE_ARGS+= --disable-tcl
.endif
-.if !empty(PKG_OPTIONS:Mx11) && !empty(PKG_OPTIONS:Mgtk)
-.include "../../x11/gtk2/buildlink3.mk"
-PLIST.gtk= yes
+.if !empty(PKG_OPTIONS:Mguile)
+.include "../../lang/guile/buildlink3.mk"
+CONFIGURE_ARGS+= --enable-guile
+PLIST.guile= yes
.else
-CONFIGURE_ARGS+= --without-gdk-pixbuf
-CONFIGURE_ARGS+= --without-gtk
-CONFIGURE_ARGS+= --without-gnomeui
+CONFIGURE_ARGS+= --disable-guile
.endif
-.if !empty(PKG_OPTIONS:Mgd)
-.include "../../graphics/gd/buildlink3.mk"
-PLIST.gd= yes
+.if !empty(PKG_OPTIONS:Mperl)
+.include "../../lang/perl5/buildlink3.mk"
+CONFIGURE_ARGS+= --enable-perl
+PLIST.perl= yes
+USE_TOOLS+=perl
.else
-CONFIGURE_ARGS+= --without-libgd
+CONFIGURE_ARGS+= --disable-perl
.endif
-.if !empty(PKG_OPTIONS:Mx11) && !empty(PKG_OPTIONS:Mpangocairo)
-.include "../../devel/pango/buildlink3.mk"
-.include "../../graphics/cairo/buildlink3.mk"
-PLIST.pangocairo= yes
.else
-CONFIGURE_ARGS+= --without-pangocairo
+CONFIGURE_ARGS+= --disable-swig
+CONFIGURE_ARGS+= --disable-tcl
+CONFIGURE_ARGS+= --disable-ocaml
+CONFIGURE_ARGS+= --disable-lua
+CONFIGURE_ARGS+= --disable-guile
+CONFIGURE_ARGS+= --disable-perl
.endif