Patch to allow building of build-helpers
authorIOhannes m zmölnig <zmoelnig@umlautS.umlaeute.mur.at>
Wed, 13 Jan 2021 10:36:10 +0000 (11:36 +0100)
committerIOhannes m zmölnig <zmoelnig@umlautS.umlaeute.mur.at>
Wed, 13 Jan 2021 11:57:35 +0000 (12:57 +0100)
debian/patches/debian_buildcmake.patch [new file with mode: 0644]
debian/patches/series

diff --git a/debian/patches/debian_buildcmake.patch b/debian/patches/debian_buildcmake.patch
new file mode 100644 (file)
index 0000000..31de9f0
--- /dev/null
@@ -0,0 +1,28 @@
+Description: link applications against libpng/libjpeg
+ since we have stripped libpng & libjpeg, we need to explicitely link against
+ the system provided libraries
+Author: IOhannes m zmölnig
+Origin: Debian
+Forwarded: not-needed
+Last-Update: 2021-01-13
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- juce.orig/extras/Build/CMake/JUCEUtils.cmake
++++ juce/extras/Build/CMake/JUCEUtils.cmake
+@@ -140,6 +140,7 @@
+ if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
+     _juce_create_pkgconfig_target(JUCE_CURL_LINUX_DEPS libcurl)
+     _juce_create_pkgconfig_target(JUCE_BROWSER_LINUX_DEPS webkit2gtk-4.0 gtk+-x11-3.0)
++    _juce_create_pkgconfig_target(JUCE_IMG_LINUX_DEPS libpng libjpeg)
+     # If you really need to override the detected arch for some reason,
+     # you can configure the build with -DJUCE_LINUX_TARGET_ARCHITECTURE=<custom arch>
+@@ -682,6 +683,8 @@
+         if(needs_browser)
+             target_link_libraries(${target} PRIVATE juce::pkgconfig_JUCE_BROWSER_LINUX_DEPS)
+         endif()
++
++        target_link_libraries(${target} PRIVATE juce::pkgconfig_JUCE_IMG_LINUX_DEPS)
+     elseif(APPLE)
+         get_target_property(needs_storekit ${target} JUCE_NEEDS_STORE_KIT)
index b59fac7b3005303542d6613f8483306e06cdf2f8..c1d3c35995c2463a00a98ad3779511e3b890a75e 100644 (file)
@@ -7,4 +7,5 @@ debian_unittests_globalpaths.patch
 debian_vst.patch
 debian_link_systemlibs.patch
 cross.patch
+debian_buildcmake.patch
 overridable_pkg-config.patch