diff options
author | nia <nia@pkgsrc.org> | 2019-08-18 16:47:38 +0000 |
---|---|---|
committer | nia <nia@pkgsrc.org> | 2019-08-18 16:47:38 +0000 |
commit | 089f195fb8847b9e8ad8d3be09f52061083d8726 (patch) | |
tree | 764c859c76f94352e46fe6734cec0ee42dbcc9dd /x11/gtk3/options.mk | |
parent | 5c6a742a8b6af889be93a688baf7097779d99e85 (diff) | |
download | pkgsrc-089f195fb8847b9e8ad8d3be09f52061083d8726.tar.gz |
gtk3: Add Wayland support to options.mk.
This patch also allows multiple GDK backends to be selected (e.g. for
compiling with both X11 and Wayland support).
Previously only one backend could be enabled at a time, but the only
configuration where using multiple would be possible would be Quartz+X11
on macOS. I haven't tested this configuration on a macOS system, but it
would be interesting to know whether it works.
Builds with Wayland support on NetBSD...
Diffstat (limited to 'x11/gtk3/options.mk')
-rw-r--r-- | x11/gtk3/options.mk | 37 |
1 files changed, 25 insertions, 12 deletions
diff --git a/x11/gtk3/options.mk b/x11/gtk3/options.mk index 63350858aa1..402943eff55 100644 --- a/x11/gtk3/options.mk +++ b/x11/gtk3/options.mk @@ -1,13 +1,12 @@ -# $NetBSD: options.mk,v 1.13 2018/07/02 17:10:29 gdt Exp $ +# $NetBSD: options.mk,v 1.14 2019/08/18 16:47:38 nia Exp $ PKG_OPTIONS_VAR= PKG_OPTIONS.gtk3 -PKG_SUPPORTED_OPTIONS= gtk3-atk-bridge cups debug -PKG_OPTIONS_REQUIRED_GROUPS= gdk-target -PKG_OPTIONS_GROUP.gdk-target= x11 +PKG_SUPPORTED_OPTIONS+= gtk3-atk-bridge cups debug +PKG_SUPPORTED_OPTIONS+= wayland x11 .if exists(/System/Library/Frameworks/Quartz.framework) -PKG_OPTIONS_GROUP.gdk-target+= quartz +PKG_SUPPORTED_OPTIONS+= quartz .endif -PKG_SUGGESTED_OPTIONS= gtk3-atk-bridge x11 +PKG_SUGGESTED_OPTIONS= gtk3-atk-bridge x11 .include "../../mk/bsd.options.mk" @@ -23,15 +22,28 @@ CONFIGURE_ENV+= ac_cv_path_CUPS_CONFIG=no CONFIGURE_ARGS+= --enable-debug=yes .endif -### -### GDK target -### -PLIST_VARS+= quartz x11 +PLIST_VARS+= quartz .if !empty(PKG_OPTIONS:Mquartz) -CONFIGURE_ARGS+= --without-x CONFIGURE_ARGS+= --enable-quartz-backend PLIST.quartz= yes .else +CONFIGURE_ARGS+= --disable-quartz-backend +.endif + +PLIST_VARS+= wayland +.if !empty(PKG_OPTIONS:Mwayland) +PLIST.wayland= yes +.include "../../devel/wayland/buildlink3.mk" +.include "../../devel/wayland-protocols/buildlink3.mk" +.include "../../x11/libxkbcommon/buildlink3.mk" +CONFIGURE_ARGS+= --enable-wayland-backend +.else +CONFIGURE_ARGS+= --disable-wayland-backend +.endif + +PLIST_VARS+= x11 +.if !empty(PKG_OPTIONS:Mx11) +CONFIGURE_ARGS+= --enable-x11-backend CONFIGURE_ENV+= ac_cv_header_X11_extensions_Xinerama_h=no CONFIGURE_ENV+= ac_cv_lib_Xinerama_XineramaQueryExtension=no PLIST.x11= yes @@ -57,5 +69,6 @@ BUILDLINK_API_DEPENDS.Xft2+= Xft2>=2.1.2nb2 .include "../../x11/libXt/buildlink3.mk" .include "../../x11/libXext/buildlink3.mk" .include "../../x11/libXcomposite/buildlink3.mk" - +.else +CONFIGURE_ARGS+= --disable-x11-backend .endif |