From f15f5f6e9833fc149fdfb629f92a56c2ea0ceb4a Mon Sep 17 00:00:00 2001 From: gb Date: Tue, 16 Mar 2010 09:57:25 +0000 Subject: [PATCH] Add pkgconfig files. --- Makefile.am | 2 +- configure.ac | 6 ++++++ pkgconfig/Makefile.am | 18 ++++++++++++++++++ pkgconfig/gstreamer-vaapi-x11.pc.in | 12 ++++++++++++ pkgconfig/gstreamer-vaapi.pc.in | 12 ++++++++++++ 5 files changed, 49 insertions(+), 1 deletion(-) create mode 100644 pkgconfig/Makefile.am create mode 100644 pkgconfig/gstreamer-vaapi-x11.pc.in create mode 100644 pkgconfig/gstreamer-vaapi.pc.in diff --git a/Makefile.am b/Makefile.am index e457ea3134..6f737299c2 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,6 +1,6 @@ AUTOMAKE_OPTIONS = foreign -SUBDIRS = gst-libs sys tests +SUBDIRS = gst-libs pkgconfig sys tests # Extra clean files so that maintainer-clean removes *everything* MAINTAINERCLEANFILES = \ diff --git a/configure.ac b/configure.ac index e6a300d799..e4651efb44 100644 --- a/configure.ac +++ b/configure.ac @@ -148,11 +148,17 @@ else AC_MSG_ERROR([Your VA-API SDK does not include SDS extensions]) fi +pkgconfigdir=${libdir}/pkgconfig +AC_SUBST(pkgconfigdir) + AC_OUTPUT([ Makefile gst-libs/Makefile gst-libs/gst/Makefile gst-libs/gst/vaapi/Makefile + pkgconfig/Makefile + pkgconfig/gstreamer-vaapi.pc + pkgconfig/gstreamer-vaapi-x11.pc sys/Makefile sys/vaapiconvert/Makefile sys/vaapisink/Makefile diff --git a/pkgconfig/Makefile.am b/pkgconfig/Makefile.am new file mode 100644 index 0000000000..049d816a4d --- /dev/null +++ b/pkgconfig/Makefile.am @@ -0,0 +1,18 @@ +pcfiles = gstreamer-vaapi-@GST_MAJORMINOR@.pc +pcfiles += gstreamer-vaapi-x11-@GST_MAJORMINOR@.pc + +pkgconfigdir = @pkgconfigdir@ +pkgconfig_DATA = $(pcfiles) + +EXTRA_DIST = \ + gstreamer-vaapi.pc.in \ + gstreamer-vaapi-x11.pc.in \ + $(NULL) + +CLEANFILES = $(pcfiles) + +%-@GST_MAJORMINOR@.pc: %.pc + cp $< $@ + +# Extra clean files so that maintainer-clean removes *everything* +MAINTAINERCLEANFILES = Makefile.in diff --git a/pkgconfig/gstreamer-vaapi-x11.pc.in b/pkgconfig/gstreamer-vaapi-x11.pc.in new file mode 100644 index 0000000000..d3b358d19e --- /dev/null +++ b/pkgconfig/gstreamer-vaapi-x11.pc.in @@ -0,0 +1,12 @@ +prefix=@prefix@ +exec_prefix=@exec_prefix@ +libdir=@libdir@ +includedir=@includedir@/gstreamer-@GST_MAJORMINOR@ +pluginsdir=@libdir@/gstreamer-@GST_MAJORMINOR@ + +Name: GStreamer VA-API (x11) Plugins Libraries +Description: Streaming media framework, VA-API (x11) plugins libraries +Requires: gstreamer-vaapi-@GST_MAJORMINOR@ libva-x11 +Version: @VERSION@ +Libs: -L${libdir} -lgstvaapi-x11-@GST_MAJORMINOR@ +Cflags: -I${includedir} diff --git a/pkgconfig/gstreamer-vaapi.pc.in b/pkgconfig/gstreamer-vaapi.pc.in new file mode 100644 index 0000000000..e7d2ec636d --- /dev/null +++ b/pkgconfig/gstreamer-vaapi.pc.in @@ -0,0 +1,12 @@ +prefix=@prefix@ +exec_prefix=@exec_prefix@ +libdir=@libdir@ +includedir=@includedir@/gstreamer-@GST_MAJORMINOR@ +pluginsdir=@libdir@/gstreamer-@GST_MAJORMINOR@ + +Name: GStreamer VA-API Plugins Libraries +Description: Streaming media framework, VA-API plugins libraries +Requires: gstreamer-@GST_MAJORMINOR@ gstreamer-base-@GST_MAJORMINOR@ libva +Version: @VERSION@ +Libs: -L${libdir} -lgstvaapi-@GST_MAJORMINOR@ +Cflags: -I${includedir}