summaryrefslogtreecommitdiff
path: root/x11/gtk3/options.mk
diff options
context:
space:
mode:
authordrochner <drochner@pkgsrc.org>2011-03-18 17:06:08 +0000
committerdrochner <drochner@pkgsrc.org>2011-03-18 17:06:08 +0000
commitc731e31ca748f3911f0d3eff6ba9c01a72b2f79e (patch)
treed8133fb60853ad116d7388a92922fd012ca19656 /x11/gtk3/options.mk
parente59f6f51094f93ca7537d489cafc2d1f28c788e7 (diff)
downloadpkgsrc-c731e31ca748f3911f0d3eff6ba9c01a72b2f79e.tar.gz
first cut on a pkg for gtk3, the successor of the gtk2 toolkit:
add gtk3-3.0.3
Diffstat (limited to 'x11/gtk3/options.mk')
-rw-r--r--x11/gtk3/options.mk55
1 files changed, 55 insertions, 0 deletions
diff --git a/x11/gtk3/options.mk b/x11/gtk3/options.mk
new file mode 100644
index 00000000000..4d1a9ef70f0
--- /dev/null
+++ b/x11/gtk3/options.mk
@@ -0,0 +1,55 @@
+# $NetBSD: options.mk,v 1.1.1.1 2011/03/18 17:06:10 drochner Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.gtk3
+PKG_SUPPORTED_OPTIONS= cups debug
+PKG_OPTIONS_REQUIRED_GROUPS= gdk-target
+PKG_OPTIONS_GROUP.gdk-target= x11
+.if exists(/System/Library/Frameworks/Quartz.framework)
+PKG_OPTIONS_GROUP.gdk-target+= quartz
+.endif
+PKG_SUGGESTED_OPTIONS= x11
+
+.include "../../mk/bsd.options.mk"
+
+PLIST_VARS+= cups
+.if !empty(PKG_OPTIONS:Mcups)
+.include "../../print/cups/buildlink3.mk"
+PLIST.cups= yes
+.else
+CONFIGURE_ENV+= ac_cv_path_CUPS_CONFIG=no
+.endif
+
+.if !empty(PKG_OPTIONS:Mdebug)
+CONFIGURE_ARGS+= --enable-debug=yes
+.endif
+
+###
+### GDK target
+###
+PLIST_VARS+= quartz x11
+.if !empty(PKG_OPTIONS:Mquartz)
+CONFIGURE_ARGS+= --without-x
+CONFIGURE_ARGS+= --with-gdktarget=quartz
+PLIST.quartz= yes
+.else
+CONFIGURE_ARGS+= --with-xinput=xfree
+CONFIGURE_ENV+= ac_cv_header_X11_extensions_Xinerama_h=no
+CONFIGURE_ENV+= ac_cv_lib_Xinerama_XineramaQueryExtension=no
+PLIST.x11= yes
+
+BUILDLINK_API_DEPENDS.Xft2+= Xft2>=2.1.2nb2
+
+.include "../../x11/libX11/buildlink3.mk"
+.include "../../x11/libXcursor/buildlink3.mk"
+.include "../../x11/libXft/buildlink3.mk"
+.include "../../x11/libXfixes/buildlink3.mk"
+.include "../../x11/libXinerama/buildlink3.mk"
+.include "../../x11/libXi/buildlink3.mk"
+.include "../../x11/libXrandr/buildlink3.mk"
+.include "../../x11/libXrender/buildlink3.mk"
+.include "../../x11/libXt/buildlink3.mk"
+.include "../../x11/xextproto/buildlink3.mk"
+.include "../../x11/libXext/buildlink3.mk"
+.include "../../x11/libXcomposite/buildlink3.mk"
+
+.endif