blob: b60cba1dd6864e882d055fde29bb5fed94148f6b [file] [log] [blame]
Patrick Williamsddad1a12017-02-23 20:36:32 -06001SUMMARY = "JUCE's Projucer"
2DESCRIPTION = "Projucer is used to build and generate support files and build infrastructure for all \
3JUCE supported platforms, including Linux and Embedded Linux."
4SECTION = "utils"
5HOMEPAGE = "http://juce.com/"
Andrew Geissler9aee5002022-03-30 16:27:02 +00006LICENSE = "GPL-3.0-only"
7LIC_FILES_CHKSUM = "file://LICENSE.md;md5=eff9da77cdb81a803f8cbca6c16801d8"
8
9LICENSE_FLAGS = "commercial"
Patrick Williamsddad1a12017-02-23 20:36:32 -060010
Brad Bishope42b3e32020-01-15 22:08:42 -050011inherit pkgconfig features_check
Patrick Williamsddad1a12017-02-23 20:36:32 -060012
Brad Bishope42b3e32020-01-15 22:08:42 -050013REQUIRED_DISTRO_FEATURES = "x11"
Patrick Williamsddad1a12017-02-23 20:36:32 -060014
Brad Bishope42b3e32020-01-15 22:08:42 -050015DEPENDS = "libx11 libxext libxinerama libxrandr libxcursor freetype alsa-lib curl bzip2 libpng harfbuzz glib-2.0 libpcre"
Patrick Williams213cb262021-08-07 19:21:33 -050016DEPENDS:append:libc-musl = " libexecinfo"
Brad Bishope42b3e32020-01-15 22:08:42 -050017
Andrew Geissler9aee5002022-03-30 16:27:02 +000018SRCREV = "2f980209cc4091a4490bb1bafc5d530f16834e58"
Brad Bishopd7bf8c12018-02-25 22:55:05 -050019BRANCH = "master"
Brad Bishope42b3e32020-01-15 22:08:42 -050020SRC_URI = "git://github.com/WeAreROLI/JUCE.git;protocol=https;branch=${BRANCH} \
Patrick Williamsac13d5f2023-11-24 18:59:46 -060021 file://0001-StandardHeader-Include-utility-for-GCC-12-compatibil.patch \
22 "
Patrick Williamsddad1a12017-02-23 20:36:32 -060023
24S = "${WORKDIR}/git"
Andrew Geissler9aee5002022-03-30 16:27:02 +000025PV = "6.1.6"
Patrick Williamsddad1a12017-02-23 20:36:32 -060026
27JUCE_PROJUCER_BUILD_PATH = "${B}/extras/Projucer/Builds"
28JUCE_PROJUCER_MAKEFILE_PATH = "${JUCE_PROJUCER_BUILD_PATH}/LinuxMakefile"
29JUCE_PROJUCER = "${JUCE_PROJUCER_MAKEFILE_PATH}/build/Projucer"
30
Brad Bishope42b3e32020-01-15 22:08:42 -050031# export dummy TARGET_ARCH that doesn't do much,
32# but disables "-march=native" optimization which does
33# not work on cross builds
34EXTRA_OEMAKE = "V=1 JUCE_ARCH_LABEL=${TARGET_ARCH} TARGET_ARCH='-g'"
35
Patrick Williams213cb262021-08-07 19:21:33 -050036LDFLAGS:append:mipsarcho32 = " -latomic"
37LDFLAGS:append:powerpc = " -latomic"
38LDFLAGS:append:riscv64 = " -latomic"
39LDFLAGS:append:riscv32 = " -latomic"
40LDFLAGS:append:armv5 = " -latomic"
Brad Bishope42b3e32020-01-15 22:08:42 -050041
Patrick Williamsddad1a12017-02-23 20:36:32 -060042do_configure() {
43 cd ${JUCE_PROJUCER_MAKEFILE_PATH}
44 CONFIG=Release oe_runmake clean
45}
46
47do_compile() {
48 cd ${JUCE_PROJUCER_MAKEFILE_PATH}
49 CONFIG=Release oe_runmake
50}
51
52do_install() {
53 install -d ${D}${bindir}
54 install -m 0755 ${JUCE_PROJUCER} ${D}${bindir}
55}
Brad Bishope42b3e32020-01-15 22:08:42 -050056# error: '_NL_IDENTIFICATION_LANGUAGE' was not declared in this scope
Patrick Williams213cb262021-08-07 19:21:33 -050057COMPATIBLE_HOST:libc-musl = "null"