From 2bef3f740ef2d9891ca1b878650b40d7362b18a2 Mon Sep 17 00:00:00 2001 From: Jan Schmidt Date: Fri, 29 Jan 2016 04:50:42 +1100 Subject: [PATCH] pkg-config: Don't generate and install pkg-config with relative paths Don't put relative paths in pkg-config files, including uninstalled ones. For those, use @abs_topbuilddir@ and @abs_topsrcdir@ as we do elsewhere. Remove libraries= directives, which doesn't seem to be a pkg-config variable that actually exists, but has been in all our pkg-config files for as long as they've existed. --- pkgconfig/gstreamer-gl-uninstalled.pc.in | 15 +++++++-------- pkgconfig/gstreamer-gl.pc.in | 6 +++--- 2 files changed, 10 insertions(+), 11 deletions(-) diff --git a/pkgconfig/gstreamer-gl-uninstalled.pc.in b/pkgconfig/gstreamer-gl-uninstalled.pc.in index 76eefb9707..5049f4e85c 100644 --- a/pkgconfig/gstreamer-gl-uninstalled.pc.in +++ b/pkgconfig/gstreamer-gl-uninstalled.pc.in @@ -1,15 +1,14 @@ prefix= exec_prefix= -libdir=${pcfiledir}/../gst-libs/gst/gl -includedir=${pcfiledir}/../gst-libs -pluginsdir=${pcfiledir}/.. +libdir= +includedir=@abs_top_builddir@/gst-libs +girdir=@abs_top_builddir@/gst-libs/gst/base +typelibdir=@abs_top_builddir@/gst-libs/gst/base Name: GStreamer OpenGL Plugins Libraries, Uninstalled Description: Streaming media framework, OpenGL plugins libraries, uninstalled Version: @VERSION@ -Requires: gstreamer-@GST_API_VERSION@ +Requires: gstreamer-base-@GST_API_VERSION@ gstreamer-@GST_API_VERSION@ -Libs: -L${libdir} ${libdir}/libgstgl-@GST_API_VERSION@.la @GL_LIBS@ -Cflags: -I${includedir} -I@srcdir@/.. @GL_CFLAGS@ - -libraries=gl +Libs: @abs_top_builddir@/gst-libs/gst/gl/libgstgl-@GST_API_VERSION@.la +Cflags: -I@abs_top_srcdir@/gst-libs -I@abs_top_builddir@/gst-libs diff --git a/pkgconfig/gstreamer-gl.pc.in b/pkgconfig/gstreamer-gl.pc.in index 1b98762e10..5589e2a47f 100644 --- a/pkgconfig/gstreamer-gl.pc.in +++ b/pkgconfig/gstreamer-gl.pc.in @@ -6,8 +6,8 @@ pluginsdir=@libdir@/gstreamer-@GST_API_VERSION@ Name: GStreamer OpenGL Plugins Libraries Description: Streaming media framework, OpenGL plugins libraries -Requires: gstreamer-@GST_API_VERSION@ gstreamer-base-@GST_API_VERSION@ Version: @VERSION@ -Libs: -L${libdir} -lgstgl-@GST_API_VERSION@ @GL_LIBS@ -Cflags: -I${includedir} -I${libdir}/gstreamer-@GST_API_VERSION@/include @GL_CFLAGS@ +Requires: gstreamer-base-@GST_API_VERSION@ gstreamer-@GST_API_VERSION@ +Libs: -L${libdir} -lgstgl-@GST_API_VERSION@ @GL_LIBS@ +Cflags: -I${includedir} @GL_CFLAGS@