summaryrefslogtreecommitdiff
path: root/Ports
diff options
context:
space:
mode:
authorGunnar Beutner <gbeutner@serenityos.org>2021-05-08 05:52:40 +0200
committerAndreas Kling <kling@serenityos.org>2021-05-08 19:14:09 +0200
commitfc2ddd5843def2417919a95ae14a3ee1af2c3038 (patch)
tree4ef7c9f9be030a67e7822d9710d973f6e5f7e7dd /Ports
parentbe724f184bd12e198fdda915601c22944a76e3b1 (diff)
downloadserenity-fc2ddd5843def2417919a95ae14a3ee1af2c3038.zip
Ports: Build shared libraries for ffmpeg
Diffstat (limited to 'Ports')
-rwxr-xr-xPorts/ffmpeg/package.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/Ports/ffmpeg/package.sh b/Ports/ffmpeg/package.sh
index 8403c02640..7f9107359a 100755
--- a/Ports/ffmpeg/package.sh
+++ b/Ports/ffmpeg/package.sh
@@ -2,6 +2,7 @@
port=ffmpeg
version=4.4
useconfigure=true
+depends="libiconv libtiff xz bzip"
files="https://ffmpeg.org/releases/ffmpeg-${version}.tar.gz ffmpeg-${version}.tar.gz a4abede145de22eaf233baa1726e38e137f5698d9edd61b5763cd02b883f3c7c"
auth_type="sha256"
installopts="INSTALL_TOP=${SERENITY_INSTALL_ROOT}/usr/local"
@@ -15,3 +16,11 @@ configure() {
--disable-network \
--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
+}