0
0
mirror of https://github.com/termux/termux-packages.git synced 2025-09-28 03:12:38 +00:00
Files
termux-packages/x11-packages/ffplay/build.sh
Robert Kirkman c7585599a9 bump({main/ffmpeg,x11/ffplay}): 7.1.1
- The SOVERSION guard did not fail, so I believe that means recompiling reverse dependencies is not required (except for mpv)

- All of the Debian patches have been upstreamed and are present as commits in the release except for the 15th one, which we do not really need but it was there as a result of `sync-debian-patches.sh`. I guess that `sync-debian-patches.sh` will become useful again when Debian begins making more patches and putting them into their Salsa (Debian GitLab) repository.

- `audacity-ffmpeg` also bumped

- revbump `mpv` and `mpv-x`: https://github.com/termux/termux-packages/pull/23628#issuecomment-2704881480
2025-03-08 10:19:42 -06:00

62 lines
1.7 KiB
Bash

TERMUX_PKG_HOMEPAGE=https://ffmpeg.org
TERMUX_PKG_DESCRIPTION="FFplay media player"
TERMUX_PKG_LICENSE="GPL-3.0"
TERMUX_PKG_MAINTAINER="@termux"
# Please align the version with `ffmpeg` package.
TERMUX_PKG_VERSION="7.1.1"
TERMUX_PKG_SRCURL=https://www.ffmpeg.org/releases/ffmpeg-${TERMUX_PKG_VERSION}.tar.xz
TERMUX_PKG_SHA256=733984395e0dbbe5c046abda2dc49a5544e7e0e1e2366bba849222ae9e3a03b1
TERMUX_PKG_DEPENDS="ffmpeg, libandroid-shmem, libx11, libxcb, libxext, libxv, pulseaudio, sdl2 | sdl2-compat"
TERMUX_PKG_ANTI_BUILD_DEPENDS="sdl2-compat"
termux_step_pre_configure() {
_FFPLAY_PREFIX="$TERMUX_PREFIX/opt/$TERMUX_PKG_NAME"
LDFLAGS="-Wl,-rpath=${_FFPLAY_PREFIX}/lib $LDFLAGS -landroid-shmem"
}
termux_step_configure() {
local _ARCH
case "$TERMUX_ARCH" in
arm ) _ARCH=armeabi-v7a ;;
i686 ) _ARCH=x86 ;;
* ) _ARCH="$TERMUX_ARCH" ;;
esac
$TERMUX_PKG_SRCDIR/configure \
--prefix="${_FFPLAY_PREFIX}" \
--cc="$CC" \
--pkg-config="$PKG_CONFIG" \
--arch="${_ARCH}" \
--cross-prefix=llvm- \
--enable-cross-compile \
--target-os=android \
--disable-version3 \
--disable-static \
--enable-shared \
--disable-autodetect \
--disable-doc \
--disable-asm \
--enable-libpulse \
--enable-libxcb \
--enable-libxcb-shm \
--enable-libxcb-xfixes \
--enable-libxcb-shape \
--enable-sdl \
--enable-xlib \
--enable-ffplay
}
termux_step_post_make_install() {
mkdir -p $TERMUX_PREFIX/bin
ln -sfr "${_FFPLAY_PREFIX}/bin/ffplay" "$TERMUX_PREFIX/bin/"
}
termux_step_post_massage() {
cd "$TERMUX_PKG_MASSAGEDIR/${_FFPLAY_PREFIX}" || exit 1
find . ! -type d \
! -wholename "./bin/ffplay" \
! -wholename "./lib/libavdevice.so*" \
-exec rm -f '{}' \;
find . -type d -empty -delete
}