x11-toolkits/gtk30: Remove port
Leaf libraries not relevant to server environment
This commit is contained in:
@@ -7967,6 +7967,7 @@ x11-toolkits/gtk-session-lock
|
||||
x11-toolkits/gtk-sharp-beans
|
||||
x11-toolkits/gtk-sharp20
|
||||
x11-toolkits/gtk-sharp30
|
||||
x11-toolkits/gtk30
|
||||
x11-toolkits/gtk4-layer-shell
|
||||
x11-toolkits/gtk40
|
||||
x11-toolkits/gtkd
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
COMMENT = X11 toolkits
|
||||
|
||||
SUBDIR += gtk20
|
||||
SUBDIR += gtk30
|
||||
SUBDIR += libXaw
|
||||
SUBDIR += libXaw3d
|
||||
SUBDIR += libXmu
|
||||
|
||||
@@ -1,96 +0,0 @@
|
||||
PORTNAME= gtk
|
||||
DISTVERSION= 3.24.49 # sync with x11-themes: adwaita-icon-theme, gnome-themes-standard and mate-themes
|
||||
CATEGORIES= x11-toolkits
|
||||
MASTER_SITES= GNOME/sources/gtk/${DISTVERSION:R}
|
||||
PKGNAMESUFFIX= 3
|
||||
DIST_SUBDIR= gnome
|
||||
|
||||
MAINTAINER= desktop@FreeBSD.org
|
||||
COMMENT= Graphical UI toolkit (GTK3 library)
|
||||
WWW= https://www.gtk.org/
|
||||
|
||||
LICENSE= LGPL21+
|
||||
|
||||
LIB_DEPENDS= libepoxy.so:graphics/libepoxy \
|
||||
libfontconfig.so:x11-fonts/fontconfig \
|
||||
libfribidi.so:converters/fribidi \
|
||||
libharfbuzz.so:print/harfbuzz
|
||||
RUN_DEPENDS= adwaita-icon-theme>=0:x11-themes/adwaita-icon-theme \
|
||||
hicolor-icon-theme>=0:misc/hicolor-icon-theme
|
||||
|
||||
USES= compiler:c11 cpe gettext gnome localbase:ldflags meson ninja \
|
||||
pathfix perl5 pkgconfig python shebangfix tar:xz
|
||||
CPE_VENDOR= gnome
|
||||
USE_GNOME= atk cairo gdkpixbuf gtk-update-icon-cache pango \
|
||||
introspection:build librsvg2:run
|
||||
GLIB_SCHEMAS= org.gtk.Demo.gschema.xml \
|
||||
org.gtk.Settings.ColorChooser.gschema.xml \
|
||||
org.gtk.Settings.Debug.gschema.xml \
|
||||
org.gtk.Settings.EmojiChooser.gschema.xml \
|
||||
org.gtk.Settings.FileChooser.gschema.xml
|
||||
USE_LDCONFIG= yes
|
||||
USE_PERL5= build
|
||||
SHEBANG_GLOB= *.py
|
||||
|
||||
MESON_ARGS= -Dtests=false
|
||||
|
||||
PORTSCOUT= limit:1,even
|
||||
|
||||
LIBVERSION= 0.2417.32
|
||||
PLIST_SUB+= LIBVERSION=${LIBVERSION}
|
||||
|
||||
OPTIONS_DEFINE= ATK_BRIDGE COLORD CUPS DEBUG DOCS
|
||||
OPTIONS_DEFAULT= ATK_BRIDGE BROADWAY COLORD CUPS WAYLAND X11
|
||||
OPTIONS_MULTI= BACKENDS
|
||||
OPTIONS_MULTI_BACKENDS= BROADWAY WAYLAND X11
|
||||
OPTIONS_SUB= yes
|
||||
|
||||
ATK_BRIDGE_DESC= AT-SPI ATK bridge support
|
||||
BROADWAY_DESC= Enable GDK Broadway backend for showing GTK in the webbrowser using HTML5 and web sockets.
|
||||
COLORD_DESC= Color profile support
|
||||
WAYLAND_DESC= GDK Wayland backend
|
||||
X11_DESC= GDK X11 backend
|
||||
|
||||
ATK_BRIDGE_IMPLIES= X11
|
||||
ATK_BRIDGE_LIB_DEPENDS= libatk-bridge-2.0.so:accessibility/at-spi2-core
|
||||
ATK_BRIDGE_MESON_TRUE= atk_bridge
|
||||
|
||||
BROADWAY_MESON_TRUE= broadway_backend
|
||||
|
||||
COLORD_LIB_DEPENDS= libcolord.so:graphics/colord
|
||||
COLORD_MESON_YES= colord
|
||||
|
||||
CUPS_LIB_DEPENDS= libcups.so:print/cups
|
||||
CUPS_MESON_ON= -Dprint_backends=cups,file,lpr
|
||||
CUPS_MESON_OFF= -Dprint_backends=file,lpr
|
||||
|
||||
DEBUG_MESON_ON= --buildtype=debug
|
||||
|
||||
DOCS_BUILD_DEPENDS= gtk-doc>0:textproc/gtk-doc
|
||||
DOCS_MESON_TRUE= gtk_doc man
|
||||
|
||||
WAYLAND_BUILD_DEPENDS= wayland-protocols>=0:graphics/wayland-protocols
|
||||
WAYLAND_LIB_DEPENDS= libwayland-egl.so:graphics/wayland \
|
||||
libxkbcommon.so:x11/libxkbcommon
|
||||
WAYLAND_RUN_DEPENDS= gsettings-desktop-schemas>=0:devel/gsettings-desktop-schemas
|
||||
WAYLAND_MESON_TRUE= wayland_backend
|
||||
|
||||
X11_USES= xorg
|
||||
X11_USE= XORG=x11,xcomposite,xcursor,xdamage,xext,xfixes,xi,xinerama,xrandr,xrender
|
||||
X11_MESON_TRUE= x11_backend
|
||||
|
||||
TESTING_UNSAFE= ld: error: unable to find library -lintl
|
||||
|
||||
pre-build:
|
||||
@${RM} -r ${WRKSRC}/docs/gtk.info*
|
||||
|
||||
post-install:
|
||||
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/gtk-3.0/modules
|
||||
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/gtk-3.0/${GTK3_VERSION}/engines
|
||||
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/gtk-3.0/${GTK3_VERSION}/loaders
|
||||
|
||||
pre-test:
|
||||
${RM} ${CONFIGURE_COOKIE} ${BUILD_COOKIE}
|
||||
${MAKE} -C${.CURDIR} build MESON_ARGS="${MESON_ARGS} --reconfigure -Dtests=true"
|
||||
|
||||
.include <bsd.port.mk>
|
||||
@@ -1,3 +0,0 @@
|
||||
TIMESTAMP = 1741533815
|
||||
SHA256 (gnome/gtk-3.24.49.tar.xz) = 5ea52c6a28f0e5ecf2e9a3c2facbb30d040b73871fcd5f33cd1317e9018a146e
|
||||
SIZE (gnome/gtk-3.24.49.tar.xz) = 13450556
|
||||
@@ -1,68 +0,0 @@
|
||||
Revert https://gitlab.gnome.org/GNOME/gtk/-/commit/ed8203e700aa
|
||||
NetBSD pkgsrc patch
|
||||
|
||||
--- gtk/a11y/gtkaccessibility.c.orig 2023-05-22 02:22:08 UTC
|
||||
+++ gtk/a11y/gtkaccessibility.c
|
||||
@@ -38,8 +38,10 @@
|
||||
#include <gtk/gtkaccessible.h>
|
||||
|
||||
#ifdef GDK_WINDOWING_X11
|
||||
+#ifdef HAVE_ATK_BRIDGE
|
||||
#include <atk-bridge.h>
|
||||
#endif
|
||||
+#endif
|
||||
|
||||
static gboolean gail_focus_watcher (GSignalInvocationHint *ihint,
|
||||
guint n_param_values,
|
||||
@@ -989,7 +991,9 @@ _gtk_accessibility_init (void)
|
||||
do_window_event_initialization ();
|
||||
|
||||
#ifdef GDK_WINDOWING_X11
|
||||
+#ifdef HAVE_ATK_BRIDGE
|
||||
atk_bridge_adaptor_init (NULL, NULL);
|
||||
+#endif
|
||||
#endif
|
||||
|
||||
atk_misc_instance = g_object_new (GTK_TYPE_MISC_IMPL, NULL);
|
||||
--- meson.build.orig 2023-05-22 02:22:08 UTC
|
||||
+++ meson.build
|
||||
@@ -137,6 +137,7 @@ win32_enabled = get_option('win32_backend')
|
||||
broadway_enabled = get_option('broadway_backend')
|
||||
quartz_enabled = get_option('quartz_backend')
|
||||
win32_enabled = get_option('win32_backend')
|
||||
+atkbridge_enabled = get_option('atk_bridge')
|
||||
|
||||
os_unix = false
|
||||
os_linux = false
|
||||
@@ -564,7 +565,10 @@ if x11_enabled
|
||||
xfixes_dep = dependency('xfixes', required: false)
|
||||
xcomposite_dep = dependency('xcomposite', required: false)
|
||||
fontconfig_dep = dependency('fontconfig', fallback: ['fontconfig', 'fontconfig_dep'])
|
||||
+ if atkbridge_enabled
|
||||
atkbridge_dep = dependency('atk-bridge-2.0', version: at_spi2_atk_req)
|
||||
+ cdata.set('HAVE_ATK_BRIDGE', 1)
|
||||
+ endif
|
||||
|
||||
backend_immodules += ['xim']
|
||||
|
||||
@@ -583,7 +587,9 @@ if x11_enabled
|
||||
x11_pkgs += ['xdamage']
|
||||
endif
|
||||
|
||||
+ if atkbridge_enabled
|
||||
atk_pkgs += ['atk-bridge-2.0']
|
||||
+ endif
|
||||
|
||||
cdata.set('HAVE_XDAMAGE', xdamage_dep.found() ? 1 : false)
|
||||
cdata.set('HAVE_XCURSOR', xcursor_dep.found() ? 1 : false)
|
||||
--- meson_options.txt.orig 2023-05-22 02:22:08 UTC
|
||||
+++ meson_options.txt
|
||||
@@ -9,6 +9,8 @@ option('quartz_backend', type: 'boolean', value: true,
|
||||
description : 'Enable the Windows gdk backend (only when building on Windows)')
|
||||
option('quartz_backend', type: 'boolean', value: true,
|
||||
description : 'Enable the macOS gdk backend (only when building on macOS)')
|
||||
+option('atk_bridge', type: 'boolean', value: true,
|
||||
+ description : 'Enable Atk bridge')
|
||||
|
||||
# Optional dependencies
|
||||
option('xinerama', type: 'combo', choices : ['yes', 'no', 'auto'], value : 'auto',
|
||||
@@ -1,10 +0,0 @@
|
||||
--- docs/reference/gtk/meson.build.orig 2023-12-11 10:53:44 UTC
|
||||
+++ docs/reference/gtk/meson.build
|
||||
@@ -500,7 +500,6 @@ if get_option('man') and xsltproc.found()
|
||||
|
||||
man_files = [
|
||||
[ 'gtk-query-immodules-3.0', '1', ],
|
||||
- [ 'gtk-update-icon-cache', '1', ],
|
||||
[ 'gtk-encode-symbolic-svg', '1', ],
|
||||
[ 'gtk-launch', '1', ],
|
||||
[ 'gtk-builder-tool', '1', ],
|
||||
@@ -1,20 +0,0 @@
|
||||
--- gtk/gtkbuilderparser.c.orig 2023-05-22 02:22:08 UTC
|
||||
+++ gtk/gtkbuilderparser.c
|
||||
@@ -1149,7 +1149,7 @@ static void
|
||||
/* Called for character data */
|
||||
/* text is not nul-terminated */
|
||||
static void
|
||||
-text (GMarkupParseContext *context,
|
||||
+XXXtext (GMarkupParseContext *context,
|
||||
const gchar *text,
|
||||
gsize text_len,
|
||||
gpointer user_data,
|
||||
@@ -1207,7 +1207,7 @@ static const GMarkupParser parser = {
|
||||
static const GMarkupParser parser = {
|
||||
start_element,
|
||||
end_element,
|
||||
- text,
|
||||
+ XXXtext,
|
||||
NULL,
|
||||
};
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
--- gtk/updateiconcache.c.orig 2023-05-22 02:22:08 UTC
|
||||
+++ gtk/updateiconcache.c
|
||||
@@ -1556,7 +1556,7 @@ opentmp:
|
||||
if (!validate_file (tmp_cache_path))
|
||||
{
|
||||
g_printerr (_("The generated cache was invalid.\n"));
|
||||
- /*g_unlink (tmp_cache_path);*/
|
||||
+ g_unlink (tmp_cache_path);
|
||||
exit (1);
|
||||
}
|
||||
|
||||
@@ -1,8 +0,0 @@
|
||||
The GIMP ToolKit (GTK+) is a collection of GUI widgets. GTK+
|
||||
essentially provides the building blocks from which GUIs can be
|
||||
built. It is highly themable, and its functionality is highly
|
||||
extensible.
|
||||
|
||||
GTK+-3 is a very stable release, similar only in design to GTK+-2.
|
||||
GTK+-3 can coexist happily alongside GTK+-2, but applications are
|
||||
written for one version or the other.
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user