diff --git a/recipes-gtk/libgnome-volume-control/libgnome-volume-control/0001-build-as-package.patch b/recipes-gtk/libgnome-volume-control/libgnome-volume-control/0001-build-as-package.patch new file mode 100644 index 0000000..935765a --- /dev/null +++ b/recipes-gtk/libgnome-volume-control/libgnome-volume-control/0001-build-as-package.patch @@ -0,0 +1,39 @@ +From db03d3455c9db082c373318c08f2377c03a62e99 Mon Sep 17 00:00:00 2001 +From: Markus Volk +Date: Tue, 20 Aug 2024 12:22:55 +0200 +Subject: [PATCH] meson.build: allow shared build + +Signed-off-by: Markus Volk +--- + meson.build | 6 +++++- + 1 file changed, 5 insertions(+), 1 deletion(-) + +diff --git a/meson.build b/meson.build +index a1a2af5..97f43c1 100644 +--- a/meson.build ++++ b/meson.build +@@ -3,12 +3,14 @@ project('gvc', 'c', + default_options: ['static=true'] + ) + +-assert(meson.is_subproject(), 'This project is only intended to be used as a subproject!') ++#assert(meson.is_subproject(), 'This project is only intended to be used as a subproject!') + + gnome = import('gnome') + + pkglibdir = get_option('pkglibdir') + pkgdatadir = get_option('pkgdatadir') ++pkgconfig = import ('pkgconfig') ++ + + cdata = configuration_data() + cdata.set_quoted('GETTEXT_PACKAGE', get_option('package_name')) +@@ -135,3 +137,5 @@ configure_file( + output: 'config.h', + configuration: cdata + ) ++ ++pkgconfig.generate(libgvc) +-- +2.45.2 + diff --git a/recipes-gtk/libgnome-volume-control/libgnome-volume-control_git.bb b/recipes-gtk/libgnome-volume-control/libgnome-volume-control_git.bb new file mode 100644 index 0000000..363aebc --- /dev/null +++ b/recipes-gtk/libgnome-volume-control/libgnome-volume-control_git.bb @@ -0,0 +1,30 @@ +SUMMARY = "libgnome-volume-control is a copy library" +HOMEPAGE = "http://www.gimp.org" +SECTION = "graphics" +LICENSE = "GPL-2.0-only" +LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/GPL-2.0-only;md5=801f80980d171dd6425610833a22dbe6" + +DEPENDS = " \ + glib-2.0 \ + pulseaudio \ +" + +inherit meson pkgconfig + +SRC_URI = " \ + git://gitlab.gnome.org/GNOME/libgnome-volume-control.git;protocol=https;branch=master \ + file://0001-build-as-package.patch \ +" + +S = "${WORKDIR}/git" +SRCREV = "5f9768a2eac29c1ed56f1fbb449a77a3523683b6" + +do_install:append() { + install -d ${D}${includedir} + install -m 0644 ${B}/libgvc.a ${D}${libdir} + cp -rf ${B}/libgvc.a.p ${D}${libdir} + install -m 0644 ${S}/*.h ${D}${includedir} + install -m 0644 ${B}/*.h ${D}${includedir} +} + +FILES:${PN} += "${libdir}/libgvc.a.p"