Add patch to fix underlinking against libjpeg and libpng
authorIOhannes m zmölnig (Debian/GNU) <umlaeute@debian.org>
Mon, 20 Dec 2021 15:09:35 +0000 (16:09 +0100)
committerIOhannes m zmölnig (Debian/GNU) <umlaeute@debian.org>
Mon, 20 Dec 2021 15:09:35 +0000 (16:09 +0100)
debian/patches/06-system-jpg+png.patch [new file with mode: 0644]
debian/patches/series

diff --git a/debian/patches/06-system-jpg+png.patch b/debian/patches/06-system-jpg+png.patch
new file mode 100644 (file)
index 0000000..094d0ee
--- /dev/null
@@ -0,0 +1,20 @@
+Description: link against system libpng/libjpeg
+Author: IOhannes m zmölnig <umlaeute@debian.org>
+Forwarded: not-needed
+Last-Update: 2021-12-20
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+Index: giada-0.19.1+ds1/CMakeLists.txt
+===================================================================
+--- giada-0.19.1+ds1.orig/CMakeLists.txt
++++ giada-0.19.1+ds1/CMakeLists.txt
+@@ -385,6 +385,9 @@ else()
+       message("Libsamplerate library found in " ${LIBRARY_SAMPLERATE})
+ endif()
++pkg_check_modules(JpegPng IMPORTED_TARGET libjpeg libpng)
++list(APPEND LIBRARIES PkgConfig::JpegPng)
++
+ # Catch (if tests enabled)
+ if (WITH_TESTS)
index f31c8b47d7bc656a867ceefbad236206e79d681e..1570baf2c49e8681675ccbda0ad4d4775772eba4 100644 (file)
@@ -2,3 +2,4 @@
 03-system-rtaudio.patch
 04-system-json.patch
 RtAudio52.patch
+06-system-jpg+png.patch