[Pkg-gstreamer-commits] [SCM] GStreamer Ugly Plugins 0.10 Packaging branch, master, updated. debian/0.10.19-1-2-g5e90e58

Sebastian Dröge sebastian.droege at collabora.co.uk
Mon Apr 23 06:57:42 UTC 2012


The following commit has been merged in the master branch:
commit f9b0c17740d8a1c30436316ed98a89d70e578bc8
Author: Sebastian Dröge <sebastian.droege at collabora.co.uk>
Date:   Mon Apr 23 08:53:17 2012 +0200

    debian/patches/01_opencore-amr-0.1.3.patch: Fix build with opencore-amrnb 0.1.3 (Closes: #668011)

diff --git a/debian/changelog b/debian/changelog
index 799f6b8..102548c 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+gst-plugins-ugly0.10 (0.10.19-2) unstable; urgency=low
+
+  * debian/patches/01_opencore-amr-0.1.3.patch:
+    + Fix build with opencore-amrnb 0.1.3 (Closes: #668011).
+
+ -- Sebastian Dröge <slomo at debian.org>  Mon, 23 Apr 2012 08:52:35 +0200
+
 gst-plugins-ugly0.10 (0.10.19-1) unstable; urgency=low
 
   * New upstream stable release, "Stronger":
diff --git a/debian/patches/01_opencore-amr-0.1.3.patch b/debian/patches/01_opencore-amr-0.1.3.patch
new file mode 100644
index 0000000..6d13bd2
--- /dev/null
+++ b/debian/patches/01_opencore-amr-0.1.3.patch
@@ -0,0 +1,103 @@
+From 425e6e395f6bcaff77d0393126e1253066ddcd8a Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= <tim.muller at collabora.co.uk>
+Date: Sat, 3 Mar 2012 17:17:31 +0000
+Subject: [PATCH] amrnb, amrwbdec: fix build with opencore-amr >= 0.1.3
+
+In previous versions, the opencore-amr include sub-directory
+would be specified in the include path in the CFLAGS, but this
+is no longer the case in newer versions, so we need to add those
+to our include directives.
+
+Based on patch by: Christian Morales Vega
+
+https://bugzilla.gnome.org/show_bug.cgi?id=671123
+---
+ configure.ac            |    6 ++++++
+ ext/amrnb/amrnbdec.h    |    5 +++++
+ ext/amrnb/amrnbenc.h    |    7 ++++++-
+ ext/amrwbdec/amrwbdec.h |    6 ++++++
+ 4 files changed, 23 insertions(+), 1 deletion(-)
+
+diff --git a/configure.ac b/configure.ac
+index 3c2e341..18f2904 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -251,6 +251,9 @@ dnl *** amr-nb ***
+ translit(dnm, m, l) AM_CONDITIONAL(USE_AMRNB, true)
+ AG_GST_CHECK_FEATURE(AMRNB, [amrnb library], amrnb, [
+   PKG_CHECK_MODULES(AMRNB, opencore-amrnb, [
++    if $PKG_CONFIG --atleast-version=0.1.3 opencore-amrnb; then
++      AC_DEFINE(HAVE_OPENCORE_AMRNB_0_1_3_OR_LATER, 1, [Defined for newer opencore-amrnb])
++    fi
+     HAVE_AMRNB="yes"
+   ], [
+     HAVE_AMRNB="no"
+@@ -263,6 +266,9 @@ dnl *** amr-wb dec ***
+ translit(dnm, m, l) AM_CONDITIONAL(USE_AMRWB, true)
+ AG_GST_CHECK_FEATURE(AMRWB, [amrwb library], amrwbdec, [
+   PKG_CHECK_MODULES(AMRWB, opencore-amrwb, [
++    if $PKG_CONFIG --atleast-version=0.1.3 opencore-amrwb; then
++      AC_DEFINE(HAVE_OPENCORE_AMRWB_0_1_3_OR_LATER, 1, [Defined for newer opencore-amrwb])
++    fi
+     HAVE_AMRWB="yes"
+   ], [
+     HAVE_AMRWB="no"
+diff --git a/ext/amrnb/amrnbdec.h b/ext/amrnb/amrnbdec.h
+index 1e81839..5fe6982 100644
+--- a/ext/amrnb/amrnbdec.h
++++ b/ext/amrnb/amrnbdec.h
+@@ -22,7 +22,12 @@
+ 
+ #include <gst/gst.h>
+ #include <gst/audio/gstaudiodecoder.h>
++
++#ifdef HAVE_OPENCORE_AMRNB_0_1_3_OR_LATER
++#include <opencore-amrnb/interf_dec.h>
++#else
+ #include <interf_dec.h>
++#endif
+ 
+ G_BEGIN_DECLS
+ 
+diff --git a/ext/amrnb/amrnbenc.h b/ext/amrnb/amrnbenc.h
+index 7f673ac..48a8fe8 100644
+--- a/ext/amrnb/amrnbenc.h
++++ b/ext/amrnb/amrnbenc.h
+@@ -21,9 +21,14 @@
+ #define __GST_AMRNBENC_H__
+ 
+ #include <gst/gst.h>
+-#include <interf_enc.h>
+ #include <gst/audio/gstaudioencoder.h>
+ 
++#ifdef HAVE_OPENCORE_AMRNB_0_1_3_OR_LATER
++#include <opencore-amrnb/interf_enc.h>
++#else
++#include <interf_enc.h>
++#endif
++
+ G_BEGIN_DECLS
+ 
+ #define GST_TYPE_AMRNBENC \
+diff --git a/ext/amrwbdec/amrwbdec.h b/ext/amrwbdec/amrwbdec.h
+index c3528fc..6b82ae9 100644
+--- a/ext/amrwbdec/amrwbdec.h
++++ b/ext/amrwbdec/amrwbdec.h
+@@ -22,8 +22,14 @@
+ 
+ #include <gst/gst.h>
+ #include <gst/audio/gstaudiodecoder.h>
++
++#ifdef HAVE_OPENCORE_AMRWB_0_1_3_OR_LATER
++#include <opencore-amrwb/dec_if.h>
++#include <opencore-amrwb/if_rom.h>
++#else
+ #include <dec_if.h>
+ #include <if_rom.h>
++#endif
+ 
+ G_BEGIN_DECLS
+ 
+-- 
+1.7.10
+
diff --git a/debian/patches/series b/debian/patches/series
index 2497acb..537249a 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
+01_opencore-amr-0.1.3.patch
 99_ltmain_as-needed.patch

-- 
GStreamer Ugly Plugins 0.10 Packaging



More information about the Pkg-gstreamer-commits mailing list