summaryrefslogtreecommitdiff
path: root/repo/media
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-05-18 09:54:26 +0100
committerdavidovski <david@davidovski.xyz>2022-05-18 09:54:26 +0100
commitda500224f138f6d4800d248c24228987a0a149de (patch)
tree5671402171908b5b8c54982d9e553cea83fa8178 /repo/media
parente3327c3fee233a042db91270c18ef1d7f217dc89 (diff)
added c++ bindings for glib, cairo, pango, gtk3 and atk
addded pavucontrol
Diffstat (limited to 'repo/media')
-rw-r--r--repo/media/libcanberra/dont-assume-all-GdkDisplays-are-GdkX11Displays.patch72
-rw-r--r--repo/media/libcanberra/fix-build-with-no-lynx-installed.patch63
-rw-r--r--repo/media/libcanberra/libcanberra.xibuild29
3 files changed, 164 insertions, 0 deletions
diff --git a/repo/media/libcanberra/dont-assume-all-GdkDisplays-are-GdkX11Displays.patch b/repo/media/libcanberra/dont-assume-all-GdkDisplays-are-GdkX11Displays.patch
new file mode 100644
index 0000000..79ced10
--- /dev/null
+++ b/repo/media/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/media/libcanberra/fix-build-with-no-lynx-installed.patch b/repo/media/libcanberra/fix-build-with-no-lynx-installed.patch
new file mode 100644
index 0000000..1d6f46b
--- /dev/null
+++ b/repo/media/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/media/libcanberra/libcanberra.xibuild b/repo/media/libcanberra/libcanberra.xibuild
new file mode 100644
index 0000000..de9ec80
--- /dev/null
+++ b/repo/media/libcanberra/libcanberra.xibuild
@@ -0,0 +1,29 @@
+#!/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
+}
+
+build () {
+ ./configure \
+ --prefix=/usr \
+ --bindir=/usr/bin \
+ --sysconfdir=/etc \
+ --disable-static \
+ --disable-oss
+ make
+}
+
+package () {
+ make DESTDIR=$PKG_DEST install
+}