[SCM] libebur128/master: Add upstream patch for pkgconfig file

sramacher at users.alioth.debian.org sramacher at users.alioth.debian.org
Tue Feb 21 14:33:50 UTC 2017


The following commit has been merged in the master branch:
commit 7b6a015cefe19ff112cd12e42eae5d706f18a2b9
Author: Sebastian Ramacher <sramacher at debian.org>
Date:   Tue Feb 21 15:05:37 2017 +0100

    Add upstream patch for pkgconfig file

diff --git a/debian/patches/Add-a-pkg-config-file-fixes-61.patch b/debian/patches/Add-a-pkg-config-file-fixes-61.patch
new file mode 100644
index 0000000..5005d9d
--- /dev/null
+++ b/debian/patches/Add-a-pkg-config-file-fixes-61.patch
@@ -0,0 +1,46 @@
+From 13d70019c6d0e94b1ab71d0d2cf80023cc793071 Mon Sep 17 00:00:00 2001
+From: Sebastian Ramacher <sramacher at debian.org>
+Date: Sat, 18 Feb 2017 01:13:03 +0100
+Subject: [PATCH] Add a pkg-config file (fixes #61)
+
+Signed-off-by: Sebastian Ramacher <sramacher at debian.org>
+---
+ ebur128/CMakeLists.txt      |  6 ++++++
+ ebur128/libebur128.pc.cmake | 11 +++++++++++
+ 2 files changed, 17 insertions(+)
+ create mode 100644 ebur128/libebur128.pc.cmake
+
+diff --git a/ebur128/CMakeLists.txt b/ebur128/CMakeLists.txt
+index af09ebb..f9a8017 100644
+--- a/ebur128/CMakeLists.txt
++++ b/ebur128/CMakeLists.txt
+@@ -59,3 +59,9 @@ if(BUILD_STATIC_LIBS)
+ else()
+   install(TARGETS ebur128 DESTINATION ${CMAKE_INSTALL_LIBDIR})
+ endif()
++
++#### pkg-config
++configure_file(${CMAKE_CURRENT_SOURCE_DIR}/libebur128.pc.cmake
++               ${CMAKE_CURRENT_BINARY_DIR}/libebur128.pc @ONLY)
++install(FILES "${CMAKE_CURRENT_BINARY_DIR}/libebur128.pc"
++        DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig)
+diff --git a/ebur128/libebur128.pc.cmake b/ebur128/libebur128.pc.cmake
+new file mode 100644
+index 0000000..017fdeb
+--- /dev/null
++++ b/ebur128/libebur128.pc.cmake
+@@ -0,0 +1,11 @@
++prefix=@CMAKE_INSTALL_PREFIX@
++includedir=${prefix}/include
++libdir=${prefix}/@CMAKE_INSTALL_LIBDIR@
++
++Name: libebur128
++Description: EBU R 128 standard for loudness normalisation
++Version: @EBUR128_VERSION@
++URL: https://github.com/jiixyj/libebur128
++Libs: -L${libdir} -lebur128
++Libs.private: -lm
++Cflags: -I${includedir}
+-- 
+2.11.0
+
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..1c2b6fa
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+Add-a-pkg-config-file-fixes-61.patch

-- 
libebur128 packaging



More information about the pkg-multimedia-commits mailing list