summaryrefslogtreecommitdiffstats
path: root/src/vidstab-1-lib-type.patch
diff options
context:
space:
mode:
authorTimothy Gu <timothygu99@gmail.com>2014-08-16 01:06:36 (GMT)
committerTimothy Gu <timothygu99@gmail.com>2014-08-16 02:58:23 (GMT)
commit71fbb5425000dde563bf9e5f3bae7b9816e938a2 (patch)
tree17df83c5eb60a88a25403a5a53e5b010406a23df /src/vidstab-1-lib-type.patch
parent626b5ac24c725204c5d2a795e42a8e1408e231b5 (diff)
downloadmxe-71fbb5425000dde563bf9e5f3bae7b9816e938a2.zip
mxe-71fbb5425000dde563bf9e5f3bae7b9816e938a2.tar.gz
mxe-71fbb5425000dde563bf9e5f3bae7b9816e938a2.tar.bz2
Add package vidstab
Signed-off-by: Timothy Gu <timothygu99@gmail.com>
Diffstat (limited to 'src/vidstab-1-lib-type.patch')
-rw-r--r--src/vidstab-1-lib-type.patch42
1 files changed, 42 insertions, 0 deletions
diff --git a/src/vidstab-1-lib-type.patch b/src/vidstab-1-lib-type.patch
new file mode 100644
index 0000000..6fbf225
--- /dev/null
+++ b/src/vidstab-1-lib-type.patch
@@ -0,0 +1,42 @@
+This file is part of MXE.
+See index.html for further information.
+
+This patch has been taken from:
+https://github.com/georgmartius/vid.stab/pull/19
+
+From 1b6d48225e6c0c2c04598782582c9a0f1ea1d8e4 Mon Sep 17 00:00:00 2001
+From: Timothy Gu <timothygu99@gmail.com>
+Date: Fri, 8 Aug 2014 14:56:19 -0700
+Subject: [PATCH] Support changing lib type through BUILD_SHARED_LIBS
+
+---
+ CMakeLists.txt | 6 ++++--
+ 1 file changed, 4 insertions(+), 2 deletions(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index f310e4d..e9a2af4 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -12,6 +12,9 @@ set(MINOR_VERSION 0)
+ set(PATCH_VERSION 0)
+ set(VIDSTAB_VERSION ${MAJOR_VERSION}.${MINOR_VERSION}${PATCH_VERSION})
+
++option(BUILD_SHARED_LIBS "build shared libraries instead of static libraries"
++ ON)
++
+ add_definitions( -Wall -O3 -g -Wno-pointer-sign -fPIC -std=gnu99)
+ # add_definitions( -Wall -O0 -g -Wno-pointer-sign )
+
+@@ -43,8 +46,7 @@ set(HEADERS src/frameinfo.h src/transformtype.h src/libvidstab.h
+
+
+ # Create the vidstab library
+-# add_library (vidstab STATIC ${SOURCES})
+-add_library (vidstab SHARED ${SOURCES})
++add_library (vidstab ${SOURCES})
+
+ #set version of lib
+ set_target_properties(vidstab PROPERTIES SOVERSION ${MAJOR_VERSION}.${MINOR_VERSION})
+--
+2.0.3
+