ports: Add ffmpeg port

This allows basic video and audio playback on banan-os!
This commit is contained in:
Bananymous 2025-12-27 23:49:51 +02:00
parent 6fbf1469aa
commit 8e00b3d110
1 changed files with 20 additions and 0 deletions

20
ports/ffmpeg/build.sh Executable file
View File

@ -0,0 +1,20 @@
#!/bin/bash ../install.sh
NAME='ffmpeg'
VERSION='8.0.1'
DOWNLOAD_URL="https://ffmpeg.org/releases/ffmpeg-$VERSION.tar.xz#05ee0b03119b45c0bdb4df654b96802e909e0a752f72e4fe3794f487229e5a41"
DEPENDENCIES=('SDL2')
CONFIGURE_OPTIONS=(
'--prefix=/usr'
'--target-os=none'
"--arch=$BANAN_ARCH"
"--cc=$CC"
"--cxx=$CXX"
'--enable-cross-compile'
'--enable-shared'
'--enable-gpl'
)
configure() {
./configure "${CONFIGURE_OPTIONS[@]}"
}