[Pkg-gstreamer-commits] [gst-plugins-bad1.0] 04/04: Fix linking of opencv plugin by working around yet again broken opencv pkg-config file

Sebastian Dröge slomo at moszumanska.debian.org
Sun Feb 9 11:55:24 UTC 2014


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

slomo pushed a commit to branch master
in repository gst-plugins-bad1.0.

commit f91f8fd452be2f9f926ed06a8e9f4b5a77ea9ef5
Author: Sebastian Dröge <sebastian at centricular.com>
Date:   Sun Feb 9 12:49:43 2014 +0100

    Fix linking of opencv plugin by working around yet again broken opencv pkg-config file
---
 debian/build-deps                      |  1 -
 debian/build-deps.in                   |  1 -
 debian/changelog                       |  6 +++---
 debian/control                         |  1 -
 debian/patches/02_opencv-linking.patch | 15 +++++++++++++++
 debian/patches/series                  |  1 +
 6 files changed, 19 insertions(+), 6 deletions(-)

diff --git a/debian/build-deps b/debian/build-deps
index fbfd9e9..9a4176f 100644
--- a/debian/build-deps
+++ b/debian/build-deps
@@ -46,7 +46,6 @@ libmpg123-dev (>= 1.13)
 libofa0-dev (>= 0.9.3)
 libopenal-dev (>= 1:1.14)
 libopencv-dev (>= 2.0.0)
-libopencv-ocl2.4
 libopenjpeg-dev
 libopus-dev (>= 0.9.4)
 liborc-0.4-dev (>= 1:0.4.17)
diff --git a/debian/build-deps.in b/debian/build-deps.in
index 8bd1a2c..d97ab71 100644
--- a/debian/build-deps.in
+++ b/debian/build-deps.in
@@ -66,7 +66,6 @@ libxml2-dev (>= 2.4)
 libfluidsynth-dev (>= 1.0)
 libsrtp0-dev
 libopencv-dev (>= 2.0.0)
-libopencv-ocl2.4
 libopenjpeg-dev
 libgnutls-dev (>= 2.11.3)
 libchromaprint-dev
diff --git a/debian/changelog b/debian/changelog
index d618e6f..236e4c9 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -7,9 +7,9 @@ gst-plugins-bad1.0 (1.2.3-1) unstable; urgency=medium
 
   [ Sebastian Dröge ]
   * New upstream bugfix release.
-  * debian/build-deps.in:
-    + Build-depend on libopencv-ocl2.4 until the dependencies of
-      libopencv-dev are fixed once again.
+  * debian/patches/02_opencv-linking.patch:
+    + Fix linking of opencv plugin by working around yet again broken
+      opencv pkg-config file.
 
  -- Sebastian Dröge <slomo at debian.org>  Sun, 09 Feb 2014 11:37:09 +0100
 
diff --git a/debian/control b/debian/control
index 992715f..356a1ec 100644
--- a/debian/control
+++ b/debian/control
@@ -58,7 +58,6 @@ Build-Depends: autoconf (>= 2.62),
                libofa0-dev (>= 0.9.3),
                libopenal-dev (>= 1:1.14),
                libopencv-dev (>= 2.0.0),
-               libopencv-ocl2.4,
                libopenjpeg-dev,
                libopus-dev (>= 0.9.4),
                liborc-0.4-dev (>= 1:0.4.17),
diff --git a/debian/patches/02_opencv-linking.patch b/debian/patches/02_opencv-linking.patch
new file mode 100644
index 0000000..a199f6f
--- /dev/null
+++ b/debian/patches/02_opencv-linking.patch
@@ -0,0 +1,15 @@
+diff --git a/ext/opencv/Makefile.am b/ext/opencv/Makefile.am
+index 3ba1c34..2bda4e3 100644
+--- a/ext/opencv/Makefile.am
++++ b/ext/opencv/Makefile.am
+@@ -40,7 +40,9 @@ libgstopencv_la_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_BASE_CFLAGS) \
+ 	-DCV_INLINE="static inline" \
+ 	-DCV_NO_BACKWARD_COMPATIBILITY
+ 
+-libgstopencv_la_LIBADD = $(GST_LIBS) $(GST_BASE_LIBS) $(OPENCV_LIBS) \
++# workaround for broken pkg-config file
++OPENCV_LIBS_FIXED = $(subst ocl,ml,$(OPENCV_LIBS))
++libgstopencv_la_LIBADD = $(GST_LIBS) $(GST_BASE_LIBS) $(OPENCV_LIBS_FIXED) \
+ 			$(GSTPB_BASE_LIBS) -lgstvideo-$(GST_API_VERSION)
+ 
+ libgstopencv_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
diff --git a/debian/patches/series b/debian/patches/series
index 6d1fff2..6d98219 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 01_fix-modplug-linking.patch
+02_opencv-linking.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gstreamer/gst-plugins-bad1.0.git



More information about the Pkg-gstreamer-commits mailing list