forked from BtbN/FFmpeg-Builds
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This will work fine after issue is solved. - Martin Eesmaa
- Loading branch information
1 parent
5b7505f
commit f8cbea7
Showing
1 changed file
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
#!/bin/bash | ||
|
||
SCRIPT_REPO="https://github.com/MartinEesmaa/libgsm" | ||
|
||
ffbuild_enabled() { | ||
return 0 | ||
} | ||
|
||
ffbuild_dockerbuild() { | ||
|
||
export CCFLAGS="-DNeedFunctionPrototypes=1 -c -DSASR -DWAV49 -Wno-comment" | ||
export INSTALL_ROOT="$FFBUILD_PREFIX" | ||
export CC="${FFBUILD_TOOLCHAIN}-gcc" | ||
|
||
make libgsm -j$(nproc) | ||
|
||
mkdir -p "$FFBUILD_PREFIX/include/gsm" | ||
cp lib/libgsm.a "$FFBUILD_PREFIX/lib/" | ||
cp include/gsm/*.h "$FFBUILD_PREFIX/include/gsm" | ||
cp include/gsm/gsm.h "$FFBUILD_PREFIX/include/" | ||
} | ||
|
||
ffbuild_configure() { | ||
echo --enable-libgsm | ||
} | ||
|
||
ffbuild_unconfigure() { | ||
echo --disable-libgsm | ||
} | ||
|
||
ffbuild_cflags() { | ||
return 0 | ||
} | ||
|
||
ffbuild_ldflags() { | ||
return 0 | ||
} |