gstreamer-1.0.pc: move gmodule-no-export-2.0 dependency to Requires.private
authorTim-Philipp Müller <tim@centricular.net>
Sun, 25 Nov 2012 23:42:57 +0000 (23:42 +0000)
committerTim-Philipp Müller <tim@centricular.net>
Sun, 25 Nov 2012 23:44:26 +0000 (23:44 +0000)
Users of GStreamer are not generally expected to use the GModule API
directly. so don't force them all to link against it.

While we're at it, no need to define this via configure.ac really, just
put the dependencies directly into the .pc.in file.

configure.ac
pkgconfig/gstreamer-uninstalled.pc.in
pkgconfig/gstreamer.pc.in

index f0e3bbe..b92112c 100644 (file)
@@ -615,9 +615,6 @@ AC_DEFINE_UNQUOTED(GST_DATADIR, "$DATADIR", [data dir])
 dnl set location of plugin directory
 AG_GST_SET_PLUGINDIR
 
-GST_PKG_DEPS="glib-2.0, gobject-2.0, gmodule-no-export-2.0, gthread-2.0"
-AC_SUBST(GST_PKG_DEPS)
-
 dnl make sure it doesn't complain about unused variables if debugging is disabled
 NO_WARNINGS=""
 if test "x${GST_DISABLE_GST_DEBUG}" = "xyes"; then
index 9e5602b..8f2f96e 100644 (file)
@@ -12,7 +12,8 @@ typelibdir=@abs_top_builddir@/gst
 Name: GStreamer Uninstalled
 Description: Streaming media framework, Not Installed
 Version: @VERSION@
-Requires: @GST_PKG_DEPS@
+Requires: glib-2.0, gobject-2.0, gthread-2.0
+Requires.private: gmodule-no-export-2.0
 Libs: @abs_top_builddir@/gst/libgstreamer-@GST_API_VERSION@.la
 # FIXME: the libs dir doesn't really belong here
 Cflags: -I@abs_top_srcdir@ -I@abs_top_srcdir@/libs -I@abs_top_builddir@ -I@abs_top_builddir@/libs
index 914e186..cde70de 100644 (file)
@@ -11,7 +11,8 @@ typelibdir=${libdir}/girepository-1.0
 
 Name: GStreamer
 Description: Streaming media framework
-Requires: @GST_PKG_DEPS@
 Version: @VERSION@
+Requires: glib-2.0, gobject-2.0, gthread-2.0
+Requires.private: gmodule-no-export-2.0
 Libs: -L${libdir} -lgstreamer-@GST_API_VERSION@
 Cflags: -I${includedir}