validate: Add .pc files so applications can link against us
authorThibault Saunier <thibault.saunier@collabora.com>
Fri, 13 Sep 2013 18:48:56 +0000 (15:48 -0300)
committerThibault Saunier <thibault.saunier@collabora.com>
Mon, 16 Sep 2013 21:49:31 +0000 (18:49 -0300)
validate/Makefile.am
validate/configure.ac
validate/pkgconfig/Makefile.am [new file with mode: 0644]
validate/pkgconfig/gst-validate-uninstalled.pc.in [new file with mode: 0644]
validate/pkgconfig/gst-validate.pc.in [new file with mode: 0644]

index 20101640dd34b502344d86d7c68da02c3401c8af..7edf6dc1300419fd6e501c6dcd350720ca241561 100644 (file)
@@ -5,6 +5,7 @@ SUBDIRS =       \
        data    \
        gst     \
        tools   \
+       pkgconfig       \
        po
 
 DIST_SUBDIRS = $(SUBDIRS)
index e307187d971b68144263c865e111578eaebf1fce..b3209879a61dd8890ccf9af0b31d7cdd4e1a41f3 100644 (file)
@@ -246,6 +246,9 @@ gst/Makefile
 gst/validate/Makefile
 tools/Makefile
 data/Makefile
+pkgconfig/Makefile
+pkgconfig/gst-validate-uninstalled.pc
+pkgconfig/gst-validate.pc
 po/Makefile.in
 ])
 AC_OUTPUT
diff --git a/validate/pkgconfig/Makefile.am b/validate/pkgconfig/Makefile.am
new file mode 100644 (file)
index 0000000..b93b5c9
--- /dev/null
@@ -0,0 +1,21 @@
+pcfiles = \
+       gst-validate-@GST_API_VERSION@.pc
+
+pcfiles_uninstalled = \
+       gst-validate-@GST_API_VERSION@-uninstalled.pc
+
+all-local: $(pcfiles) $(pcfiles_uninstalled)
+
+### how to generate pc files
+%-@GST_API_VERSION@.pc: %.pc
+       cp $< $@
+%-@GST_API_VERSION@-uninstalled.pc: %-uninstalled.pc
+       cp $< $@
+
+pkgconfigdir = $(libdir)/pkgconfig
+pkgconfig_DATA = $(pcfiles)
+
+EXTRA_DIST = \
+       gst-validate.pc.in \
+       gst-validate-uninstalled.pc.in
+CLEANFILES = $(pcfiles) $(pcfiles_uninstalled)
diff --git a/validate/pkgconfig/gst-validate-uninstalled.pc.in b/validate/pkgconfig/gst-validate-uninstalled.pc.in
new file mode 100644 (file)
index 0000000..7f77d22
--- /dev/null
@@ -0,0 +1,12 @@
+# the standard variables don't make sense for an uninstalled copy
+prefix=
+exec_prefix=
+libdir=@abs_top_builddir@/ges
+includedir=@abs_top_builddir@
+
+Name: gst-validate
+Description: GStreamer Validate
+Version: @VERSION@
+Requires: gstreamer-@GST_API_VERSION@
+Libs: @abs_top_builddir@/gst/validate/libgstvalidate-@GST_API_VERSION@.la
+Cflags: -I@abs_top_srcdir@ -I@abs_top_builddir@
diff --git a/validate/pkgconfig/gst-validate.pc.in b/validate/pkgconfig/gst-validate.pc.in
new file mode 100644 (file)
index 0000000..4923dd1
--- /dev/null
@@ -0,0 +1,11 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@/gstreamer-@GST_API_VERSION@
+
+Name: gst-validate
+Description: Gstreamer Validate
+Version: @VERSION@
+Requires: gstreamer-@GST_API_VERSION@
+Libs: -L${libdir} -lgstvalidate@GST_API_VERSION@
+Cflags: -I${includedir}