diff options
author | davidovski <david@davidovski.xyz> | 2022-05-31 11:05:19 +0100 |
---|---|---|
committer | davidovski <david@davidovski.xyz> | 2022-05-31 11:05:19 +0100 |
commit | 48ca75555522716f0f686dcae3dd6cf3d8ad714d (patch) | |
tree | 00c0f58550ba4661e87376f2f02c8001c69bae44 /repo/libcanberra | |
parent | 871b2b573f01c1b3176a0f65458b3d281b41c437 (diff) |
removed idea of repos
Diffstat (limited to 'repo/libcanberra')
-rw-r--r-- | repo/libcanberra/dont-assume-all-GdkDisplays-are-GdkX11Displays.patch | 72 | ||||
-rw-r--r-- | repo/libcanberra/fix-build-with-no-lynx-installed.patch | 63 | ||||
-rw-r--r-- | repo/libcanberra/libcanberra-gtk3.xibuild | 13 | ||||
-rw-r--r-- | repo/libcanberra/libcanberra.xibuild | 33 |
4 files changed, 181 insertions, 0 deletions
diff --git a/repo/libcanberra/dont-assume-all-GdkDisplays-are-GdkX11Displays.patch b/repo/libcanberra/dont-assume-all-GdkDisplays-are-GdkX11Displays.patch new file mode 100644 index 0000000..79ced10 --- /dev/null +++ b/repo/libcanberra/dont-assume-all-GdkDisplays-are-GdkX11Displays.patch @@ -0,0 +1,72 @@ +From c0620e432650e81062c1967cc669829dbd29b310 Mon Sep 17 00:00:00 2001 +From: Michael Meeks <michael.meeks@suse.com> +Date: Fri, 9 Nov 2012 16:16:40 +0000 +Subject: gtk: Don't assume all GdkDisplays are GdkX11Displays: + broadway/wayland + +--- + src/canberra-gtk-module.c | 15 +++++++++++++++ + src/canberra-gtk.c | 5 +++++ + 2 files changed, 20 insertions(+) + +Patch-Source: http://git.0pointer.net/libcanberra.git/commit/?id=c0620e432650e81062c1967cc669829dbd29b310 + +diff --git a/src/canberra-gtk-module.c b/src/canberra-gtk-module.c +index 67791f0..c1532ab 100644 +--- a/src/canberra-gtk-module.c ++++ b/src/canberra-gtk-module.c +@@ -307,6 +307,11 @@ static gint window_get_desktop(GdkDisplay *d, GdkWindow *w) { + guchar *data = NULL; + gint ret = -1; + ++#ifdef GDK_IS_X11_DISPLAY ++ if (!GDK_IS_X11_DISPLAY(d)) ++ return 0; ++#endif ++ + if (XGetWindowProperty(GDK_DISPLAY_XDISPLAY(d), GDK_WINDOW_XID(w), + gdk_x11_get_xatom_by_name_for_display(d, "_NET_WM_DESKTOP"), + 0, G_MAXLONG, False, XA_CARDINAL, &type_return, +@@ -335,6 +340,11 @@ static gint display_get_desktop(GdkDisplay *d) { + guchar *data = NULL; + gint ret = -1; + ++#ifdef GDK_IS_X11_DISPLAY ++ if (!GDK_IS_X11_DISPLAY(d)) ++ return 0; ++#endif ++ + if (XGetWindowProperty(GDK_DISPLAY_XDISPLAY(d), DefaultRootWindow(GDK_DISPLAY_XDISPLAY(d)), + gdk_x11_get_xatom_by_name_for_display(d, "_NET_CURRENT_DESKTOP"), + 0, G_MAXLONG, False, XA_CARDINAL, &type_return, +@@ -365,6 +375,11 @@ static gboolean window_is_xembed(GdkDisplay *d, GdkWindow *w) { + gboolean ret = FALSE; + Atom xembed; + ++#ifdef GDK_IS_X11_DISPLAY ++ if (!GDK_IS_X11_DISPLAY(d)) ++ return FALSE; ++#endif ++ + /* Gnome Panel applets are XEMBED windows. We need to make sure we + * ignore them */ + +diff --git a/src/canberra-gtk.c b/src/canberra-gtk.c +index 34446f5..08cb668 100644 +--- a/src/canberra-gtk.c ++++ b/src/canberra-gtk.c +@@ -185,6 +185,11 @@ static gint window_get_desktop(GdkDisplay *d, GdkWindow *w) { + guchar *data = NULL; + gint ret = -1; + ++#ifdef GDK_IS_X11_DISPLAY ++ if (!GDK_IS_X11_DISPLAY(d)) ++ return 0; ++#endif ++ + if (XGetWindowProperty(GDK_DISPLAY_XDISPLAY(d), GDK_WINDOW_XID(w), + gdk_x11_get_xatom_by_name_for_display(d, "_NET_WM_DESKTOP"), + 0, G_MAXLONG, False, XA_CARDINAL, &type_return, +-- +cgit v1.2.3 + diff --git a/repo/libcanberra/fix-build-with-no-lynx-installed.patch b/repo/libcanberra/fix-build-with-no-lynx-installed.patch new file mode 100644 index 0000000..1d6f46b --- /dev/null +++ b/repo/libcanberra/fix-build-with-no-lynx-installed.patch @@ -0,0 +1,63 @@ +From 5a71fffd3da981127d0a012dda1a1412acaee7d8 Mon Sep 17 00:00:00 2001 +From: Colin Walters <walters@verbum.org> +Date: Sun, 15 Jan 2012 16:35:43 -0500 +Subject: build-sys: Fix build with no lynx installed + +--- + Makefile.am | 8 +++++++- + doc/Makefile.am | 3 ++- + 2 files changed, 9 insertions(+), 2 deletions(-) + +Patch-Source: http://git.0pointer.net/libcanberra.git/commit/?id=5a71fffd3da981127d0a012dda1a1412acaee7d8 + +diff --git a/Makefile.am b/Makefile.am +index af36805..42a56e5 100644 +--- a/Makefile.am ++++ b/Makefile.am +@@ -16,7 +16,11 @@ + # License along with libcanberra. If not, see + # <http://www.gnu.org/licenses/>. + +-dist_doc_DATA = README ++dist_doc_DATA = ++ ++if USE_LYNX ++dist_doc_DATA += README ++endif + + EXTRA_DIST = \ + autogen.sh \ +@@ -27,7 +31,9 @@ EXTRA_DIST = \ + SUBDIRS = src gtkdoc doc + + MAINTAINERCLEANFILES = README ++if USE_LYNX + noinst_DATA = README ++endif + + pkgconfigdir = $(libdir)/pkgconfig + pkgconfig_DATA = libcanberra.pc +diff --git a/doc/Makefile.am b/doc/Makefile.am +index fae9958..cb27f22 100644 +--- a/doc/Makefile.am ++++ b/doc/Makefile.am +@@ -16,7 +16,7 @@ + # License along with libcanberra. If not, see + # <http://www.gnu.org/licenses/>. + +-noinst_DATA = README.html README ++noinst_DATA = README.html + EXTRA_DIST = $(noinst_DATA) style.css README.html.in + + MAINTAINERCLEANFILES = README.html +@@ -26,6 +26,7 @@ if USE_LYNX + README: README.html + $(AM_V_GEN)lynx --dump $^ | sed 's,file://localhost/.*/doc/README.html,README,' > $@ + ++noinst_DATA += README + CLEANFILES += README + endif + +-- +cgit v1.2.3 + diff --git a/repo/libcanberra/libcanberra-gtk3.xibuild b/repo/libcanberra/libcanberra-gtk3.xibuild new file mode 100644 index 0000000..c597390 --- /dev/null +++ b/repo/libcanberra/libcanberra-gtk3.xibuild @@ -0,0 +1,13 @@ +#!/bin/sh + +DESC="GTK+3.0 bindings for libcanberra" +DEPS="glib gtk3 libcanberra libx11 musl" + +package () { + add_from_main usr/bin/canberra-gtk-play + add_from_main usr/lib/gtk-3.0/* + add_from_main usr/lib/gnome-settings-daemon-3.0/* + add_from_main usr/lib/libcanberra-gtk3.so.* + add_from_main usr/share/gdm/* + add_from_main usr/share/gnome/* +} diff --git a/repo/libcanberra/libcanberra.xibuild b/repo/libcanberra/libcanberra.xibuild new file mode 100644 index 0000000..7ae4a6b --- /dev/null +++ b/repo/libcanberra/libcanberra.xibuild @@ -0,0 +1,33 @@ +#!/bin/sh + +NAME="libcanberra" +DESC="Simple audio library for GTK applications" + +MAKEDEPS="make " +DEPS="eudev libvorbis musl libtool " + +PKG_VER=0.30 +SOURCE="https://dev.alpinelinux.org/archive/libcanberra/libcanberra-$PKG_VER.tar.xz" +ADDITIONAL="fix-build-with-no-lynx-installed.patch dont-assume-all-GdkDisplays-are-GdkX11Displays.patch " + +prepare () { + apply_patches + autoreconf -if +} + +build () { + ./configure \ + --prefix=/usr \ + --bindir=/usr/bin \ + --sysconfdir=/etc \ + --enable-alsa \ + --enable-null \ + --disable-lynx \ + --disable-oss \ + --with-builtin=dso + make +} + +package () { + make DESTDIR=$PKG_DEST install +} |