mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 22:47:44 +00:00
Ports: Build shared libraries for ffmpeg
This commit is contained in:
parent
be724f184b
commit
fc2ddd5843
1 changed files with 9 additions and 0 deletions
|
@ -2,6 +2,7 @@
|
||||||
port=ffmpeg
|
port=ffmpeg
|
||||||
version=4.4
|
version=4.4
|
||||||
useconfigure=true
|
useconfigure=true
|
||||||
|
depends="libiconv libtiff xz bzip"
|
||||||
files="https://ffmpeg.org/releases/ffmpeg-${version}.tar.gz ffmpeg-${version}.tar.gz a4abede145de22eaf233baa1726e38e137f5698d9edd61b5763cd02b883f3c7c"
|
files="https://ffmpeg.org/releases/ffmpeg-${version}.tar.gz ffmpeg-${version}.tar.gz a4abede145de22eaf233baa1726e38e137f5698d9edd61b5763cd02b883f3c7c"
|
||||||
auth_type="sha256"
|
auth_type="sha256"
|
||||||
installopts="INSTALL_TOP=${SERENITY_INSTALL_ROOT}/usr/local"
|
installopts="INSTALL_TOP=${SERENITY_INSTALL_ROOT}/usr/local"
|
||||||
|
@ -15,3 +16,11 @@ configure() {
|
||||||
--disable-network \
|
--disable-network \
|
||||||
--enable-cross-compile
|
--enable-cross-compile
|
||||||
}
|
}
|
||||||
|
|
||||||
|
install() {
|
||||||
|
run make DESTDIR=${SERENITY_INSTALL_ROOT} $installopts install
|
||||||
|
for lib in libavcodec libavdevice libavfilter libavformat libavutil; do
|
||||||
|
${CC} -shared -o ${SERENITY_INSTALL_ROOT}/usr/local/lib/${lib}.so -Wl,-soname,${lib} -Wl,--whole-archive ${SERENITY_INSTALL_ROOT}/usr/local/lib/${lib}.a -Wl,--no-whole-archive -liconv -ltiff -llzma -lbz2
|
||||||
|
rm -f ${SERENITY_INSTALL_ROOT}/usr/local/lib/$lib.la
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue