aboutsummaryrefslogtreecommitdiffstats
path: root/meta-multimedia/classes/juce.bbclass
diff options
context:
space:
mode:
authoreu@felipetonello.com <eu@felipetonello.com>2016-07-18 20:46:31 +0100
committerMartin Jansa <Martin.Jansa@gmail.com>2016-07-29 11:00:59 +0200
commit3bbc28d7c76cf0a8aab18096420d0b52209103c7 (patch)
tree3c4bca3b8582a7de164585595e11b89f1f8116ee /meta-multimedia/classes/juce.bbclass
parentca6edca71a54cdfc91453d3e648d80a98ad1a963 (diff)
downloadmeta-openembedded-contrib-3bbc28d7c76cf0a8aab18096420d0b52209103c7.tar.gz
juce: Added support for JUCE framework
See below for the official README from JUCE. For TL;DRs: JUCE is a well known and widely used C++ Framework for audio applications. It has good support for Linux and ARM. A typical JUCE application recipe will only contain this skeleton: inherit juce SRC_URI = "..." JUCE_JUCERS = "${B}/cool-project.jucer" do_compile() { CONFIG=Release oe_runmake } do_install() { install ... } ====== OBS: This recipe requires a patch[1] on oe-core which is been tested right now. [1] http://lists.openembedded.org/pipermail/openembedded-core/2016-July/123972.html ====== >From the README: JUCE (Jules' Utility Class Extensions) is an all-encompassing C++ framework for developing cross-platform software. It contains pretty much everything you're likely to need to create most applications, and is particularly well-suited for building highly-customised GUIs, and for handling graphics and sound. Most JUCE modules are shared under the GNU Public Licence (GPLv2, v3, and the AGPLv3). This means that the code can be freely copied and distributed, and costs nothing to use in other GPL applications. One module (the juce_core module) is permissively licensed under the ISC. For more information, visit the website: http://www.juce.com Signed-off-by: Felipe F. Tonello <eu@felipetonello.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-multimedia/classes/juce.bbclass')
-rw-r--r--meta-multimedia/classes/juce.bbclass37
1 files changed, 37 insertions, 0 deletions
diff --git a/meta-multimedia/classes/juce.bbclass b/meta-multimedia/classes/juce.bbclass
new file mode 100644
index 0000000000..ac97ca348c
--- /dev/null
+++ b/meta-multimedia/classes/juce.bbclass
@@ -0,0 +1,37 @@
+inherit pkgconfig
+
+JUCE_X11_DEPS = "libx11 libxext libxinerama libxinerama libxrandr libxcursor freetype"
+JUCE_DEPS = " \
+ ${@bb.utils.contains('DISTRO_FEATURES', 'x11', '${JUCE_X11_DEPS}', '', d)} \
+ alsa-lib \
+ curl \
+"
+DEPENDS_prepend = "projucer-native ${JUCE_DEPS} "
+
+export OE_JUCE_PROJUCER = "${STAGING_BINDIR_NATIVE}/Projucer"
+
+juce_do_configure() {
+ if [ -z "${JUCE_JUCERS}" ]; then
+ JUCERS=`find . -type f -iname "*.jucer"` && IFS=$'\n'
+ else
+ JUCERS="${JUCE_JUCERS}"
+ fi
+
+ if [ -z "$JUCERS" ]; then
+ die "JUCE_JUCERS not set and no profiles found in $PWD"
+ fi
+
+ # XXX: Hack for Projucer, since it requires a X Display even when running in
+ # console mode. This will be fixed in future. Most cases DISPLAY=:0 will just work,
+ # the only case why we have JUCE_DISPLAY variable, is in case of a build system,
+ # such as jenkins, that can have multiple virtual X server running for each build.
+ test -z "${JUCE_DISPLAY}" && export DISPLAY=:0 || export DISPLAY=${JUCE_DISPLAY}
+
+ for i in $JUCERS; do
+ ${OE_JUCE_PROJUCER} --resave $i
+ done
+}
+
+EXPORT_FUNCTIONS do_configure
+
+addtask configure after do_unpack do_patch before do_compile