[libfann] 18/34: Add patch cmake-Build-static-libraries.patch

Christian Kastner chrisk-guest at moszumanska.debian.org
Thu Oct 1 18:06:21 UTC 2015


This is an automated email from the git hooks/post-receive script.

chrisk-guest pushed a commit to branch master
in repository libfann.

commit 65aa258538f25a5376b3494ab5c8bbd543e34167
Author: Christian Kastner <ckk at kvr.at>
Date:   Thu Oct 1 11:33:23 2015 +0200

    Add patch cmake-Build-static-libraries.patch
---
 debian/patches/cmake-Build-static-libraries.patch | 67 +++++++++++++++++++++++
 debian/patches/series                             |  1 +
 2 files changed, 68 insertions(+)

diff --git a/debian/patches/cmake-Build-static-libraries.patch b/debian/patches/cmake-Build-static-libraries.patch
new file mode 100644
index 0000000..36fc129
--- /dev/null
+++ b/debian/patches/cmake-Build-static-libraries.patch
@@ -0,0 +1,67 @@
+From: Christian Kastner <ckk at debian.org>
+Date: Fri, 25 Sep 2015 10:40:29 +0200
+Subject: cmake: Build static libraries
+
+The previous autoconf-based build produced static libraries and we shipped
+them in the -dev package, so continue to do so.
+
+Forwarded: not-needed
+Last-Update: 2015-09-25
+---
+ src/CMakeLists.txt | 12 ++++++++++++
+ 1 file changed, 12 insertions(+)
+
+diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
+index fade00c..878d886 100644
+--- a/src/CMakeLists.txt
++++ b/src/CMakeLists.txt
+@@ -12,9 +12,12 @@ floatfann.c
+ )
+ 
+ ADD_LIBRARY(floatfann SHARED ${floatfann_LIB_SRCS})
++ADD_LIBRARY(floatfann_static STATIC ${floatfann_LIB_SRCS})
+ 
+ SET_TARGET_PROPERTIES(floatfann PROPERTIES VERSION ${VERSION} SOVERSION 2 )
++SET_TARGET_PROPERTIES(floatfann_static PROPERTIES OUTPUT_NAME floatfann)
+ INSTALL(TARGETS floatfann DESTINATION ${LIB_INSTALL_DIR} )
++INSTALL(TARGETS floatfann_static DESTINATION ${LIB_INSTALL_DIR} )
+ 
+ 
+ ########### next target ###############
+@@ -24,9 +27,12 @@ doublefann.c
+ )
+ 
+ ADD_LIBRARY(doublefann SHARED ${doublefann_LIB_SRCS})
++ADD_LIBRARY(doublefann_static STATIC ${doublefann_LIB_SRCS})
+ 
+ SET_TARGET_PROPERTIES(doublefann PROPERTIES VERSION ${VERSION} SOVERSION 2 )
++SET_TARGET_PROPERTIES(doublefann_static PROPERTIES OUTPUT_NAME doublefann)
+ INSTALL(TARGETS doublefann DESTINATION ${LIB_INSTALL_DIR} )
++INSTALL(TARGETS doublefann_static DESTINATION ${LIB_INSTALL_DIR} )
+ 
+ 
+ ########### next target ###############
+@@ -36,9 +42,12 @@ fixedfann.c
+ )
+ 
+ ADD_LIBRARY(fixedfann SHARED ${fixedfann_LIB_SRCS})
++ADD_LIBRARY(fixedfann_static STATIC ${fixedfann_LIB_SRCS})
+ 
+ SET_TARGET_PROPERTIES(fixedfann PROPERTIES VERSION ${VERSION} SOVERSION 2 )
++SET_TARGET_PROPERTIES(fixedfann_static PROPERTIES OUTPUT_NAME fixedfann)
+ INSTALL(TARGETS fixedfann DESTINATION ${LIB_INSTALL_DIR} )
++INSTALL(TARGETS fixedfann_static DESTINATION ${LIB_INSTALL_DIR} )
+ 
+ 
+ ########### next target ###############
+@@ -48,7 +57,10 @@ floatfann.c
+ )
+ 
+ ADD_LIBRARY(fann SHARED ${fann_LIB_SRCS})
++ADD_LIBRARY(fann_static STATIC ${fann_LIB_SRCS})
+ 
+ SET_TARGET_PROPERTIES(fann PROPERTIES VERSION ${VERSION} SOVERSION 2 )
++SET_TARGET_PROPERTIES(fann_static PROPERTIES OUTPUT_NAME fann)
+ INSTALL(TARGETS fann DESTINATION ${LIB_INSTALL_DIR} )
++INSTALL(TARGETS fann_static DESTINATION ${LIB_INSTALL_DIR} )
+ 
diff --git a/debian/patches/series b/debian/patches/series
index 044d969..8df1757 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,4 @@
 Portable-handling-for-va_list.patch
 cmake-Configurable-pkgconfig-install-destination.patch
+cmake-Build-static-libraries.patch
 Link-against-libm.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/libfann.git



More information about the debian-science-commits mailing list