Skip to content

Commit 2cc0968

Browse files
committed
Merge pull request kivy#370 from b3b/midistream
Recipe for MIDI streaming
2 parents a36dc6e + cefd181 commit 2cc0968

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

recipes/midistream/recipe.sh

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
#!/bin/bash
2+
3+
VERSION_midistream=${VERSION_midistream:-master}
4+
URL_midistream=https://github.com/b3b/midistream/archive/${VERSION_midistream}.zip
5+
DEPS_midistream=(python pyjnius audiostream)
6+
MD5_midistream=
7+
BUILD_midistream=$BUILD_PATH/midistream/$(get_directory $URL_midistream)
8+
RECIPE_midistream=$RECIPES_PATH/midistream
9+
10+
function prebuild_midistream() {
11+
cd $BUILD_PATH/midistream
12+
}
13+
14+
function shouldbuild_midistream() {
15+
if [ -d "$SITEPACKAGES_PATH/midistream" ]; then
16+
DO_BUILD=0
17+
fi
18+
}
19+
20+
function build_midistream() {
21+
cd $BUILD_midistream
22+
23+
push_arm
24+
25+
# create fake (empty) shared library libsonivox.so
26+
echo | $CC -shared -o "$BUILD_PATH/libsonivox.so" -fPIC -xc - || exit -1
27+
28+
export LDFLAGS="$LDFLAGS -lsonivox -L$BUILD_PATH"
29+
try find . -iname '*.pyx' -exec cython {} \;
30+
try $HOSTPYTHON setup.py build_ext -v
31+
try $HOSTPYTHON setup.py install
32+
33+
pop_arm
34+
}
35+
36+
function postbuild_midistream() {
37+
true
38+
}

0 commit comments

Comments
 (0)