[libdmapsharing] In .pc file, do not require GStreamer if libgstapp not available at ./configure time Signed-off-by:



commit f6edcad028757eccb79f42a4c42d27cd0cad6530
Author: W. Michael Petullo <mike flyn org>
Date:   Mon Jan 31 22:34:19 2011 -0600

    In .pc file, do not require GStreamer if libgstapp not available at ./configure time
    Signed-off-by: W. Michael Petullo <mike flyn org>

 configure.ac             |    2 ++
 libdmapsharing-3.0.pc.in |    2 +-
 2 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 7ed80d3..fef4307 100644
--- a/configure.ac
+++ b/configure.ac
@@ -322,6 +322,8 @@ PKG_CHECK_MODULES(GSTREAMERAPP,
 
 if test x"$HAVE_GSTREAMERAPP" = "xyes"; then
   AC_DEFINE(HAVE_GSTREAMERAPP, 1, [Define if GStreamer App support is enabled])
+  GSTLIB=gstreamer-0.10
+  AC_SUBST(GSTLIB) # For libdmapsharing-3.0.pc.in.
 else
   AC_WARN(GStreamer app element not present, transcoding will not be supported.)
 fi
diff --git a/libdmapsharing-3.0.pc.in b/libdmapsharing-3.0.pc.in
index 59b0807..0aa1e33 100644
--- a/libdmapsharing-3.0.pc.in
+++ b/libdmapsharing-3.0.pc.in
@@ -6,6 +6,6 @@ includedir= includedir@
 Name: libdmapsharing
 Description: libdmapsharing
 Version: @VERSION@
-Requires: glib-2.0 libsoup-2.4 gstreamer-0.10
+Requires: glib-2.0 libsoup-2.4 @GSTLIB@
 Libs: -L${libdir} -ldmapsharing- API_VERSION@
 Cflags: -I${includedir}/libdmapsharing- API_VERSION@



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]