adofai-ffmpeg-builder/scripts/build-openh264.sh

32 lines
750 B
Bash
Raw Normal View History

2023-05-02 19:35:56 +09:00
set -x
export OPENH264_VERSION=2.3.1
# TODO: detect platform
# export CISCO_BINARY_PLATFORM=mac
# export CISCO_BINARY_ARCH=x64
# export CISCO_BINARY_SUFFIX=dylib.bz2
# export CISCO_BINARY_NAME=libopenh264
# export OPENH264_CISCO_BINARY_URL=http://ciscobinary.openh264.org/$CISCO_BINARY_NAME-$OPENH264_VERSION-$CISCO_BINARY_PLATFORM-${CISCO_BINARY_ARCH}.${CISCO_BINARY_SUFFIX}
export projectDir=$workDir/openh264
2023-05-02 22:54:59 +09:00
git clone https://github.com/cisco/openh264 $projectDir --depth 1
2023-05-02 19:35:56 +09:00
cd $projectDir
git checkout tags/v$OPENH264_VERSION -b v$OPENH264_VERSION
args="PREFIX=$PREFIX ARCH=$ARCH"
make clean
2023-05-02 19:35:56 +09:00
make -j $args
make install-static $args
2023-05-02 19:35:56 +09:00
# rm -rf $PREFIX/lib/libopenh264*
# wget -O $PREFIX/lib/libopenh264.dylib $OPENH264_CISCO_BINARY_URL