pkg-config: Add orc-0.4 to Requires.private of gstreamer-audio and gstreamer-video
authorSebastian Dröge <sebastian@centricular.com>
Tue, 13 Mar 2018 21:09:58 +0000 (23:09 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Wed, 14 Mar 2018 07:34:39 +0000 (09:34 +0200)
https://bugzilla.gnome.org/show_bug.cgi?id=794307

configure.ac
pkgconfig/gstreamer-audio-uninstalled.pc.in
pkgconfig/gstreamer-audio.pc.in
pkgconfig/gstreamer-video-uninstalled.pc.in
pkgconfig/gstreamer-video.pc.in
pkgconfig/meson.build

index 452c6cf..39ea1da 100644 (file)
@@ -280,6 +280,13 @@ AG_GST_GLIB_CHECK([$GLIB_REQ])
 
 ORC_CHECK([0.4.24])
 
+dnl For Requires.private in pkg-config files
+ORC_PC=
+if test x"$HAVE_ORC" = "xyes"; then
+    ORC_PC="orc-0.4"
+fi
+AC_SUBST(ORC_PC)
+
 dnl checks for gstreamer
 dnl uninstalled is selected preferentially -- see pkg-config(1)
 AG_GST_CHECK_GST($GST_API_VERSION, [$GST_REQ], yes)
index b6528bb..badcc07 100644 (file)
@@ -11,6 +11,7 @@ Name: GStreamer Audio Library, Uninstalled
 Description: Audio helper functions and base classes, uninstalled
 Version: @VERSION@
 Requires: gstreamer-@GST_API_VERSION@ gstreamer-base-@GST_API_VERSION@
+Requires.private: @ORC_PC@
 Libs: -L${libdir} -lgstaudio-@GST_API_VERSION@
 Cflags: -I@abs_top_srcdir@/gst-libs -I@abs_top_builddir@/gst-libs
 
index 28b0662..efb8372 100644 (file)
@@ -10,6 +10,7 @@ typelibdir=${libdir}/girepository-1.0
 Name: GStreamer Audio library
 Description: Audio helper functions and base classes
 Requires: gstreamer-@GST_API_VERSION@ gstreamer-base-@GST_API_VERSION@
+Requires.private: @ORC_PC@
 Version: @VERSION@
 Libs: -L${libdir} -lgstaudio-@GST_API_VERSION@
 Cflags: -I${includedir}
index 59140a1..4dd1d09 100644 (file)
@@ -11,6 +11,7 @@ Name: GStreamer Video Library, Uninstalled
 Description: Video base classes and helper functions, uninstalled
 Version: @VERSION@
 Requires: gstreamer-@GST_API_VERSION@ gstreamer-base-@GST_API_VERSION@
+Requires.private: @ORC_PC@
 Libs: -L${libdir} -lgstvideo-@GST_API_VERSION@
 Cflags: -I@abs_top_srcdir@/gst-libs -I@abs_top_builddir@/gst-libs
 
index 84e7484..af96773 100644 (file)
@@ -10,6 +10,7 @@ typelibdir=${libdir}/girepository-1.0
 Name: GStreamer Video Library
 Description: Video base classes and helper functions
 Requires: gstreamer-@GST_API_VERSION@ gstreamer-base-@GST_API_VERSION@
+Requires.private: @ORC_PC@
 Version: @VERSION@
 Libs: -L${libdir} -lgstvideo-@GST_API_VERSION@
 Cflags: -I${includedir}
index f167729..04abfbe 100644 (file)
@@ -7,6 +7,7 @@ pkgconf.set('includedir', '${prefix}/@0@'.format(get_option('includedir')))
 pkgconf.set('GST_API_VERSION', api_version)
 pkgconf.set('VERSION', gst_version)
 pkgconf.set('LIBM', libm.found() ? '-lm' : '')
+pkgconf.set('ORC_PC', have_orcc ? 'orc-0.4' : '')
 
 # needed for generating -uninstalled.pc files
 pkgconf.set('abs_top_builddir', join_paths(meson.current_build_dir(), '..'))