summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pkgconfig/Makefile.am47
-rw-r--r--pkgconfig/gstreamer-libs-uninstalled.pc.in9
-rw-r--r--pkgconfig/gstreamer-libs.pc.in11
-rw-r--r--pkgconfig/gstreamer-play-uninstalled.pc.in13
-rw-r--r--pkgconfig/gstreamer-play.pc.in12
5 files changed, 92 insertions, 0 deletions
diff --git a/pkgconfig/Makefile.am b/pkgconfig/Makefile.am
new file mode 100644
index 00000000..80f11af1
--- /dev/null
+++ b/pkgconfig/Makefile.am
@@ -0,0 +1,47 @@
+if USE_GCONF
+GCONF_PC=gstreamer-gconf-@GST_MAJORMINOR@.pc
+GCONF_PC_UNINSTALLED=gstreamer-gconf-@GST_MAJORMINOR@-uninstalled.pc
+else
+GCONF_PC=
+GCONF_PC_UNINSTALLED=
+endif
+
+### all of the standard pc files we need to generate
+pcfiles = \
+ gstreamer-libs-@GST_MAJORMINOR@.pc \
+ gstreamer-play-@GST_MAJORMINOR@.pc
+pcfiles_uninstalled = \
+ gstreamer-libs-@GST_MAJORMINOR@-uninstalled.pc \
+ gstreamer-play-@GST_MAJORMINOR@-uninstalled.pc
+
+all-local: $(pcfiles) $(pcfiles_uninstalled) \
+ $(GCONF_PC) \
+ $(GCONF_PC_UNINSTALLED) \
+ gst-element-check-@GST_MAJORMINOR@.m4
+
+### how to generate pc files
+$(pcfiles): %-@GST_MAJORMINOR@.pc: %.pc
+ cp $< $@
+$(pcfiles_uninstalled): %-@GST_MAJORMINOR@-uninstalled.pc: %-uninstalled.pc
+ cp $< $@
+
+gstreamer-gconf-@GST_MAJORMINOR@.pc: \
+ $(srcdir)/../gst-libs/gst/gconf/gstreamer-gconf.pc
+ cp $< $@
+gstreamer-gconf-@GST_MAJORMINOR@-uninstalled.pc: \
+ $(srcdir)/../gst-libs/gst/gconf/gstreamer-gconf-uninstalled.pc
+ cp $< $@
+
+gst-element-check-@GST_MAJORMINOR@.m4: gst-element-check.m4
+ cp $(srcdir)/gst-element-check.m4 gst-element-check-@GST_MAJORMINOR@.m4
+
+pkgconfigdir = $(libdir)/pkgconfig
+pkgconfig_DATA = \
+ $(GCONF_PC) \
+ gstreamer-libs-@GST_MAJORMINOR@.pc \
+ gstreamer-play-@GST_MAJORMINOR@.pc
+
+EXTRA_DIST= \
+ gstreamer-libs.pc.in gstreamer-libs-uninstalled.pc.in \
+ gstreamer-play.pc.in gstreamer-play-uninstalled.pc.in \
+ gstreamer-gconf.pc.in gstreamer-gconf.pc-uninstalled.in
diff --git a/pkgconfig/gstreamer-libs-uninstalled.pc.in b/pkgconfig/gstreamer-libs-uninstalled.pc.in
new file mode 100644
index 00000000..ef0669ed
--- /dev/null
+++ b/pkgconfig/gstreamer-libs-uninstalled.pc.in
@@ -0,0 +1,9 @@
+Name: GStreamer Uninstalled Media-Specific Libraries
+Description: Streaming-media framework media-specific libraries, not installed
+Version: @VERSION@
+Requires: gstreamer = @VERSION@
+Libs: -L${pcfiledir}/gst-libs/gst/gconf \
+ -L${pcfiledir}/gst-libs/gst/audio \
+ -L${pcfiledir}/gst-libs/gst/video \
+ -L${pcfiledir}/gst-libs/gst/play
+Cflags: -I${pcfiledir}/gst-libs
diff --git a/pkgconfig/gstreamer-libs.pc.in b/pkgconfig/gstreamer-libs.pc.in
new file mode 100644
index 00000000..e4eb1597
--- /dev/null
+++ b/pkgconfig/gstreamer-libs.pc.in
@@ -0,0 +1,11 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@/gstreamer-@GST_MAJORMINOR@
+
+Name: GStreamer Media-Specific Libraries
+Description: Streaming-media framework, media-specific libraries
+Requires: gstreamer-@GST_MAJORMINOR@
+Version: @VERSION@
+Libs:
+Cflags: -I${includedir}
diff --git a/pkgconfig/gstreamer-play-uninstalled.pc.in b/pkgconfig/gstreamer-play-uninstalled.pc.in
new file mode 100644
index 00000000..9c87f886
--- /dev/null
+++ b/pkgconfig/gstreamer-play-uninstalled.pc.in
@@ -0,0 +1,13 @@
+# the standard variables don't make sense for an uninstalled copy
+prefix=
+exec_prefix=
+libdir=${pcfiledir}
+includedir=${pcfiledir}
+
+Name: GStreamer Play Library, uninstalled
+Description: Streaming-media framework, play libraries, not installed
+Requires: gstreamer >= @VERSION@
+Version: @VERSION@
+
+Libs: ${pcfiledir}/gst-libs/gst/play/libgstplay-@GST_MAJORMINOR@.la -lgstcontrol-@GST_MAJORMINOR@
+Cflags: -I${pcfiledir}/libs
diff --git a/pkgconfig/gstreamer-play.pc.in b/pkgconfig/gstreamer-play.pc.in
new file mode 100644
index 00000000..99dc6e7d
--- /dev/null
+++ b/pkgconfig/gstreamer-play.pc.in
@@ -0,0 +1,12 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@/gstreamer-@GST_MAJORMINOR@
+
+Name: GStreamer Play Library
+Description: Streaming-media framework, play libraries
+Requires: gstreamer-@GST_MAJORMINOR@
+Version: @VERSION@
+
+Libs: -L${libdir} -lgstplay-@GST_MAJORMINOR@ -lgstcontrol-@GST_MAJORMINOR@
+Cflags: -I${includedir}