Browse Source

add libvidstab to ffmpeg

master
its-pointless 5 years ago
committed by Leonid Plyushch
parent
commit
230a6aae28
  1. 5
      packages/ffmpeg/build.sh
  2. 7
      packages/libvidstab/build.sh
  3. 13
      packages/libvidstab/cmakelist.patch

5
packages/ffmpeg/build.sh

@ -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" \

7
packages/libvidstab/build.sh

@ -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"

13
packages/libvidstab/cmakelist.patch

@ -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()
Loading…
Cancel
Save