From: IOhannes m zmölnig (Debian/GNU) Date: Mon, 20 Dec 2021 15:09:35 +0000 (+0100) Subject: Add patch to fix underlinking against libjpeg and libpng X-Git-Tag: archive/raspbian/0.20.1+ds1-1+rpi1~1^2~30 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=06a1aa62f1825fc47379d4a0a77ed5fe3482e2ea;p=giada.git Add patch to fix underlinking against libjpeg and libpng --- diff --git a/debian/patches/06-system-jpg+png.patch b/debian/patches/06-system-jpg+png.patch new file mode 100644 index 0000000..094d0ee --- /dev/null +++ b/debian/patches/06-system-jpg+png.patch @@ -0,0 +1,20 @@ +Description: link against system libpng/libjpeg +Author: IOhannes m zmölnig +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) diff --git a/debian/patches/series b/debian/patches/series index f31c8b4..1570baf 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -2,3 +2,4 @@ 03-system-rtaudio.patch 04-system-json.patch RtAudio52.patch +06-system-jpg+png.patch