libvidstab: Use static OpenMP

This commit is contained in:
Tee KOBAYASHI 2022-03-21 18:34:56 +09:00 committed by xtkoba
parent 7cbba21e3c
commit f00ed55bf0
2 changed files with 5 additions and 4 deletions

View File

@ -3,7 +3,7 @@ TERMUX_PKG_DESCRIPTION="video stabilization library"
TERMUX_PKG_LICENSE="GPL-2.0"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=1.1.0
TERMUX_PKG_REVISION=1
TERMUX_PKG_REVISION=2
TERMUX_PKG_SRCURL=https://github.com/georgmartius/vid.stab/archive/v${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=14d2a053e56edad4f397be0cb3ef8eb1ec3150404ce99a426c4eb641861dc0bb
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="-DSSE2_FOUND=OFF"

View File

@ -1,13 +1,14 @@
--- ../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 @@
@@ -73,8 +73,9 @@
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")
+#target_link_libraries(vidstab omp)
+#set(PKG_EXTRA_LIBS "${PKG_EXTRA_LIBS} -lomp")
+set(PKG_EXTRA_LIBS "${PKG_EXTRA_LIBS} -fopenmp -static-openmp")
endif()