From: IOhannes m zmölnig Date: Wed, 21 Aug 2019 13:03:47 +0000 (+0200) Subject: Patch to have Projucer-exported Makefiles link against standard system-libraries... X-Git-Tag: archive/raspbian/5.4.5_ds0-1+rpi1~1^2~16 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=35eb55816bf4454af6787648f6fa9ea7e8048c32;p=juce.git Patch to have Projucer-exported Makefiles link against standard system-libraries if required --- diff --git a/debian/patches/debian_link_systemlibs.patch b/debian/patches/debian_link_systemlibs.patch new file mode 100644 index 00000000..5f69537c --- /dev/null +++ b/debian/patches/debian_link_systemlibs.patch @@ -0,0 +1,51 @@ +Description: have Projucer link against the system libraries + since the Debian package has removed 3rd-party libraries (jpeg, png, flag, + ogg/vorbis), we must use against the system libraries. +Author: IOhannes m zmölnig +Origin: Debian +Forwarded: no +Last-Update: 2019-08-21 +--- +This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ +--- juce.orig/extras/Projucer/Source/ProjectSaving/jucer_ProjectExport_Make.h ++++ juce/extras/Projucer/Source/ProjectSaving/jucer_ProjectExport_Make.h +@@ -464,6 +464,39 @@ + if (isCurlEnabled() && ! isLoadCurlSymbolsLazilyEnabled()) + packages.add ("libcurl"); + ++ // on Debian, a number of 3rd-party libs have been stripped away, ++ // so we need to link to the system libraries ++ if (project.getEnabledModules().isModuleEnabled ("juce_core")) ++ { ++ packages.add ("zlib"); ++ } ++ if (project.getEnabledModules().isModuleEnabled ("juce_graphics")) ++ { ++ packages.add ("libjpeg"); ++ packages.add ("libpng"); ++ } ++ if (project.getEnabledModules().isModuleEnabled ("juce_audio_formats")) ++ { ++ if(project.isConfigFlagEnabled ("JUCE_USE_FLAC", true)) ++ { ++ packages.add ("flac"); ++ } ++ ++ if(project.isConfigFlagEnabled ("JUCE_USE_OGGVORBIS", true)) ++ { ++ packages.add ("vorbis"); ++ packages.add ("vorbisfile"); ++ packages.add ("vorbisenc"); ++ packages.add ("ogg"); ++ } ++ } ++ if (project.getEnabledModules().isModuleEnabled ("juce_audio_devices")) ++ { ++ if(project.isConfigFlagEnabled ("JUCE_JACK", true)) ++ { ++ packages.add ("jack"); ++ } ++ } + packages.removeDuplicates (false); + + return packages; diff --git a/debian/patches/series b/debian/patches/series index 5fe9f069..78e70087 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -8,4 +8,5 @@ debian_system_modules.patch debian_python3.patch debian_unittests_globalpaths.patch debian_vst.patch +debian_link_systemlibs.patch spelling.patch