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.
Add libgsm support by making sure CFLAGS is on
Last time for Linux(arm)64 builds failed except Windows. So this time, I'll try again to add support of libgsm feature. - Martin Eesmaa
- Loading branch information
1 parent
5f43ce2
commit 149d6ef
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="$CFLAGS -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 | ||
} |