--- Makefile (revision 569465) +++ Makefile (working copy) @@ -18,7 +18,8 @@ libfreetype.so:print/freetype2 \ libsysinfo.so:devel/libsysinfo -USES= cmake compiler:c++11-lang gl localbase:ldflags pkgconfig xorg +USES= cmake compiler:c++11-lang dos2unix gl localbase:ldflags pkgconfig xorg +DOS2UNIX_FILES= modules/juce_core/juce_core.h USE_GL= gl USE_XORG= x11 xcomposite xcursor xext xinerama xorgproto xrandr @@ -30,7 +31,7 @@ CMAKE_ON= JUCE_BUILD_EXTRAS CXXFLAGS+= -I${LOCALBASE}/include/freetype2 -LDFLAGS+= -pthread -lfreetype +LDFLAGS+= -pthread -lfreetype -lpng16 LDFLAGS+= -lGL # while building NetworkGraphicsDemo ld: error: undefined symbol: glXGetCurrentContext referenced by ld-temp.o LDFLAGS+= -lasound # while building AudioPerformanceTest ld: error: undefined symbol: snd_seq_system_info_sizeof LDFLAGS+= -lsysinfo # while building Projucer ld: error: undefined symbol: sysinfo --- files/patch-modules_juce__core_juce__core.h (nonexistent) +++ files/patch-modules_juce__core_juce__core.h (working copy) @@ -0,0 +1,14 @@ +--- modules/juce_core/juce_core.h.orig 2021-04-02 18:08:09 UTC ++++ modules/juce_core/juce_core.h +@@ -64,6 +64,11 @@ + + #include "system/juce_TargetPlatform.h" + ++#ifdef JUCE_INCLUDE_PNGLIB_CODE ++# undef JUCE_INCLUDE_PNGLIB_CODE ++#endif ++#define JUCE_INCLUDE_PNGLIB_CODE 0 ++ + //============================================================================== + /** Config: JUCE_FORCE_DEBUG +