[tracker/gstreamer-with-dlna-0.10: 11/12] build: require gstreamer-pbutils when using Discoverer backend
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/gstreamer-with-dlna-0.10: 11/12] build: require gstreamer-pbutils when using Discoverer backend
- Date: Wed, 31 Aug 2011 11:36:49 +0000 (UTC)
commit ad414e36a738ed04f2045415c431e7aa503cb6ce
Author: Aleksander Morgado <aleksander lanedo com>
Date: Wed Jul 13 14:17:54 2011 +0200
build: require gstreamer-pbutils when using Discoverer backend
configure.ac | 14 +++++++++++++-
src/tracker-extract/Makefile.am | 8 ++++++++
2 files changed, 21 insertions(+), 1 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 64e48bd..6ed0cad 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1629,6 +1629,17 @@ else
AC_DEFINE(GSTREAMER_BACKEND_TAGREADBIN, [], [Define that GStreamer Tagreadbin should be used])
;;
"xdiscoverer")
+ PKG_CHECK_MODULES(GSTREAMER_PBUTILS,
+ [gstreamer-pbutils-0.10 >= $GSTREAMER_REQUIRED],
+ [have_gstreamer_pbutils=yes],
+ [have_gstreamer_pbutils=no])
+ AC_SUBST(GSTREAMER_PBUTILS_CFLAGS)
+ AC_SUBST(GSTREAMER_PBUTILS_LIBS)
+
+ if test "x$have_gstreamer_pbutils" != "xyes"; then
+ AC_MSG_ERROR([Couldn't find GStreamer pbutils])
+ fi
+
gstreamer_backend="Discoverer"
AC_DEFINE(GSTREAMER_BACKEND_DISCOVERER, [], [Define that GStreamer Discoverer should be used])
;;
@@ -1652,7 +1663,8 @@ else
esac
fi
-AM_CONDITIONAL(HAVE_GUPNP_DLNA, test "x$gstreamer_backend" = "xGUPnP-DLNA")
+AM_CONDITIONAL(HAVE_GUPNP_DLNA, test "x$gstreamer_backend" = "xGUPnP-DLNA")
+AM_CONDITIONAL(HAVE_GSTREAMER_PBUTILS, test "x$gstreamer_backend" = "xDiscoverer")
####################################################################
# Check for tracker-extract: support .ps.gz files
diff --git a/src/tracker-extract/Makefile.am b/src/tracker-extract/Makefile.am
index 23b67ac..2764aea 100644
--- a/src/tracker-extract/Makefile.am
+++ b/src/tracker-extract/Makefile.am
@@ -246,11 +246,19 @@ libextract_gstreamer_la_LIBADD = \
$(BUILD_LIBS) \
$(TRACKER_EXTRACT_MODULES_LIBS) \
$(GSTREAMER_LIBS)
+
+# GStreamer with GUPnP-DLNA backend?
if HAVE_GUPNP_DLNA
libextract_gstreamer_la_CFLAGS += $(GUPNP_DLNA_CFLAGS)
libextract_gstreamer_la_LIBADD += $(GUPNP_DLNA_LIBS)
endif
+# GStreamer with Discoverer backend?
+if HAVE_GSTREAMER_PBUTILS
+libextract_gstreamer_la_CFLAGS += $(GSTREAMER_PBUTILS_CFLAGS)
+libextract_gstreamer_la_LIBADD += $(GSTREAMER_PBUTILS_LIBS)
+endif
+
# Xine
libextract_xine_la_SOURCES = tracker-extract-libxine.c
libextract_xine_la_CFLAGS = \
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]