blob: feb3564633c7fba49d1e2ec1b76f7675a6530dd2 [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} \
Brad Bishope42b3e32020-01-15 22:08:42 -050021"
Patrick Williamsddad1a12017-02-23 20:36:32 -060022
23S = "${WORKDIR}/git"
Andrew Geissler9aee5002022-03-30 16:27:02 +000024PV = "6.1.6"
Patrick Williamsddad1a12017-02-23 20:36:32 -060025
26JUCE_PROJUCER_BUILD_PATH = "${B}/extras/Projucer/Builds"
27JUCE_PROJUCER_MAKEFILE_PATH = "${JUCE_PROJUCER_BUILD_PATH}/LinuxMakefile"
28JUCE_PROJUCER = "${JUCE_PROJUCER_MAKEFILE_PATH}/build/Projucer"
29
Brad Bishope42b3e32020-01-15 22:08:42 -050030# export dummy TARGET_ARCH that doesn't do much,
31# but disables "-march=native" optimization which does
32# not work on cross builds
33EXTRA_OEMAKE = "V=1 JUCE_ARCH_LABEL=${TARGET_ARCH} TARGET_ARCH='-g'"
34
Patrick Williams213cb262021-08-07 19:21:33 -050035LDFLAGS:append:mipsarcho32 = " -latomic"
36LDFLAGS:append:powerpc = " -latomic"
37LDFLAGS:append:riscv64 = " -latomic"
38LDFLAGS:append:riscv32 = " -latomic"
39LDFLAGS:append:armv5 = " -latomic"
Brad Bishope42b3e32020-01-15 22:08:42 -050040
Patrick Williamsddad1a12017-02-23 20:36:32 -060041do_configure() {
42 cd ${JUCE_PROJUCER_MAKEFILE_PATH}
43 CONFIG=Release oe_runmake clean
44}
45
46do_compile() {
47 cd ${JUCE_PROJUCER_MAKEFILE_PATH}
48 CONFIG=Release oe_runmake
49}
50
51do_install() {
52 install -d ${D}${bindir}
53 install -m 0755 ${JUCE_PROJUCER} ${D}${bindir}
54}
Brad Bishope42b3e32020-01-15 22:08:42 -050055# error: '_NL_IDENTIFICATION_LANGUAGE' was not declared in this scope
Patrick Williams213cb262021-08-07 19:21:33 -050056COMPATIBLE_HOST:libc-musl = "null"