mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-13 07:34:50 +00:00
devel/juce: use system png
This fixes build on powerpc64le since the builtin png does not detect VSX availaibility. PR: 254726 Approved by: yuri (maintainer)
This commit is contained in:
parent
21173a4561
commit
451d0c283a
@ -18,7 +18,8 @@ LIB_DEPENDS= libasound.so:audio/alsa-lib \
|
||||
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 @@ GH_TAGNAME= f37e9a1
|
||||
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
|
||||
|
14
devel/juce/files/patch-modules_juce__core_juce__core.h
Normal file
14
devel/juce/files/patch-modules_juce__core_juce__core.h
Normal file
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user