[SCM] libgroove/master: add patch for linking against math library

andrewrk-guest at users.alioth.debian.org andrewrk-guest at users.alioth.debian.org
Wed May 14 03:50:23 UTC 2014


The following commit has been merged in the master branch:
commit c915623fa12f6bcb2bc0e61610f8ebe4d4c5566a
Author: Andrew Kelley <superjoe30 at gmail.com>
Date:   Wed May 14 03:42:02 2014 +0000

    add patch for linking against math library

diff --git a/debian/patches/link-with-math.patch b/debian/patches/link-with-math.patch
new file mode 100644
index 0000000..dee321d
--- /dev/null
+++ b/debian/patches/link-with-math.patch
@@ -0,0 +1,26 @@
+From: Andrew Kelley <superjoe30 at gmail.com>
+Subject: Link against math library
+ GNUInstallDirs is available as of cmake 2.8.5.
+Origin: vendor
+--- libgroove-4.0.1+dfsg.orig/CMakeLists.txt
++++ libgroove-4.0.1+dfsg/CMakeLists.txt
+@@ -261,6 +261,9 @@ if(LIBAV_IS_BUNDLED)
+     ${LIBAV_INSTALL}/lib/libavutil.a
+     ${BZIP2_LIBRARIES}
+     ${ZLIB_LIBRARIES})
++  if(UNIX)
++    target_link_libraries(groove m)
++  endif(UNIX)
+   if(MP3LAME_FOUND)
+     target_link_libraries(groove ${MP3LAME_LIBRARY})
+   endif()
+@@ -272,6 +275,9 @@ else()
+     ${LIBAV_AVFILTER_LIBRARIES}
+     ${LIBAV_AVFORMAT_LIBRARIES})
+   target_link_libraries(groove LINK_PUBLIC ${LIBAV_AVUTIL_LIBRARIES})
++  if(UNIX)
++    target_link_libraries(groove LINK_PUBLIC m)
++  endif(UNIX)
+   include_directories(${LIBAV_INCLUDE_DIRS})
+ endif()
+ target_link_libraries(groove LINK_PUBLIC ${CMAKE_THREAD_LIBS_INIT})
diff --git a/debian/patches/series b/debian/patches/series
index 815548a..5a34f1b 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 gnu-install-dirs.patch
+link-with-math.patch

-- 
libgroove packaging



More information about the pkg-multimedia-commits mailing list