Skip to content

Commit 73fffae

Browse files
committed
temporary fork to allow volume in ffpyplayer
1 parent 67633d0 commit 73fffae

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

recipes/ffpyplayer_tito/recipe.sh

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
#!/bin/bash
2+
3+
VERSION_ffpyplayer_tito=${VERSION_ffpyplayer_tito:-master}
4+
URL_ffpyplayer_tito=http://github.com/tito/ffpyplayer/archive/$VERSION_ffpyplayer_tito.zip
5+
DEPS_ffpyplayer_tito=(python ffmpeg2)
6+
MD5_ffpyplayer_tito=
7+
BUILD_ffpyplayer_tito=$BUILD_PATH/ffpyplayer/$(get_directory $URL_ffpyplayer_tito)
8+
RECIPE_ffpyplayer_tito=$RECIPES_PATH/ffpyplayer
9+
10+
function prebuild_ffpyplayer_tito() {
11+
true
12+
}
13+
14+
function shouldbuild_ffpyplayer_tito() {
15+
if [ -d "$SITEPACKAGES_PATH/ffpyplayer" ]; then
16+
DO_BUILD=0
17+
fi
18+
}
19+
20+
function build_ffpyplayer_tito() {
21+
cd $BUILD_ffpyplayer_tito
22+
23+
push_arm
24+
25+
export FFMPEG_INCLUDE_DIR="$BUILD_ffmpeg2/build/ffmpeg/armeabi-v7a/include"
26+
export FFMPEG_LIB_DIR="$BUILD_ffmpeg2/build/ffmpeg/armeabi-v7a/lib"
27+
export SDL_INCLUDE_DIR="$SRC_PATH/jni/sdl/include"
28+
export LDFLAGS="-L$LIBS_PATH"
29+
30+
$HOSTPYTHON setup.py build_ext -v
31+
try find . -iname '*.pyx' -exec $CYTHON {} \;
32+
try $HOSTPYTHON setup.py build_ext -v
33+
export PYTHONPATH=$BUILD_hostpython/Lib/site-packages
34+
try $BUILD_hostpython/hostpython setup.py install -O2 --root=$BUILD_PATH/python-install --install-lib=lib/python2.7/site-packages
35+
36+
pop_arm
37+
}
38+
39+
function postbuild_ffpyplayer_tito() {
40+
true
41+
}

0 commit comments

Comments
 (0)