[Nice] [nice/master] Install gst plugins in right directory

Olivier Crete olivier.crete at collabora.co.uk
Wed Nov 5 14:00:55 PST 2008


darcs-hash:20080403225336-3e2dc-c0a42f57d184e3785057e41b043d4129ccd8dc88.gz
---
 configure.ac    |    7 ++++++-
 gst/Makefile.am |    2 +-
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/configure.ac b/configure.ac
index bc74978..50dd0e4 100644
--- a/configure.ac
+++ b/configure.ac
@@ -59,7 +59,10 @@ AS_IF([test "$with_gstreamer" != no], [
 		gstreamer-0.10 >= 0.10.0
 		gstreamer-base-0.10 >= 0.10.0
 		],
-		[with_gstreamer=yes],
+		[
+		with_gstreamer=yes
+		gstplugindir=`$PKG_CONFIG --variable=pluginsdir gstreamer-0.10`
+		],
 		[
 		AS_IF([test "$with_gstreamer" = yes], [
 			AC_MSG_ERROR([GStreamer support was requested but GStreamer libraries are not available])
@@ -69,6 +72,8 @@ AS_IF([test "$with_gstreamer" != no], [
 		])
 ])
 
+AC_SUBST(gstplugindir)
+
 AM_CONDITIONAL(WITH_GSTREAMER, test "$with_gstreamer" = yes)
 
 dnl Test coverage
diff --git a/gst/Makefile.am b/gst/Makefile.am
index 0f09597..887f404 100644
--- a/gst/Makefile.am
+++ b/gst/Makefile.am
@@ -21,7 +21,7 @@ COMMON_LDADD = \
 
 # libgstnice
 
-lib_LTLIBRARIES = libgstnice.la
+gstplugin_LTLIBRARIES = libgstnice.la
 
 libgstnice_la_SOURCES = \
 	gstnicesrc.h \
-- 
1.5.6.5




More information about the Nice mailing list