add libvidstab to ffmpeg

This commit is contained in:
its-pointless 2020-04-03 08:47:58 +11:00 committed by Leonid Pliushch
parent faf325b6d0
commit f1206f1533
3 changed files with 23 additions and 2 deletions

View File

@ -3,10 +3,10 @@ TERMUX_PKG_DESCRIPTION="Tools and libraries to manipulate a wide range of multim
TERMUX_PKG_LICENSE="GPL-3.0"
# NOTE: mpv has to be rebuilt and version bumped after updating ffmpeg.
TERMUX_PKG_VERSION=4.2.2
TERMUX_PKG_REVISION=3
TERMUX_PKG_REVISION=4
TERMUX_PKG_SRCURL=https://www.ffmpeg.org/releases/ffmpeg-${TERMUX_PKG_VERSION}.tar.xz
TERMUX_PKG_SHA256=cb754255ab0ee2ea5f66f8850e1bd6ad5cac1cd855d0a2f4990fb8c668b0d29c
TERMUX_PKG_DEPENDS="libass, libbz2, libdav1d, libiconv, libsoxr, libx264, libx265, xvidcore, libvorbis, libmp3lame, libopus, libvpx, libgnutls, libandroid-glob, freetype, zlib, liblzma"
TERMUX_PKG_DEPENDS="libass, libbz2, libdav1d, libiconv, libsoxr, libx264, libx265, xvidcore, libvorbis, libmp3lame, libopus, libvpx, libgnutls, libandroid-glob, freetype, zlib, liblzma, libvidstab"
TERMUX_PKG_CONFLICTS="libav"
TERMUX_PKG_BREAKS="ffmpeg-dev"
TERMUX_PKG_REPLACES="ffmpeg-dev"
@ -60,6 +60,7 @@ termux_step_configure() {
--enable-libvpx \
--enable-shared \
--enable-libsoxr \
--enable-libvidstab \
--prefix=$TERMUX_PREFIX \
--target-os=android \
--extra-libs="-landroid-glob" \

View File

@ -0,0 +1,7 @@
TERMUX_PKG_HOMEPAGE=https://github.com/georgmartius/vid.stab
TERMUX_PKG_DESCRIPTION="video stabilization library"
TERMUX_PKG_VERSION=1.1.0
TERMUX_PKG_SRCURL=https://github.com/georgmartius/vid.stab/archive/v1.1.0.tar.gz
TERMUX_PKG_SHA256=14d2a053e56edad4f397be0cb3ef8eb1ec3150404ce99a426c4eb641861dc0bb
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="-DSSE2_FOUND=OFF"
TERMUX_PKG_LICENSE="GPL-2.0"

View File

@ -0,0 +1,13 @@
--- ../cache/vid.stab-1.1.0/CMakeLists.txt 2017-05-30 08:23:59.000000000 +0000
+++ ./CMakeLists.txt 2018-11-30 02:08:08.838885695 +0000
@@ -73,8 +73,8 @@
set(PKG_EXTRA_LIBS "${PKG_EXTRA_LIBS} ${ORC_LIBRARIES}")
endif()
if(USE_OMP)
-target_link_libraries(vidstab gomp)
-set(PKG_EXTRA_LIBS "${PKG_EXTRA_LIBS} -lgomp")
+target_link_libraries(vidstab omp)
+set(PKG_EXTRA_LIBS "${PKG_EXTRA_LIBS} -lomp")
endif()