pcfiles = \
gst-rtsp-server-@GST_MAJORMINOR@.pc
-all-local: $(pcfiles)
+pcfiles_uninstalled = \
+ gst-rtsp-server-@GST_MAJORMINOR@-uninstalled.pc
+
+all-local: $(pcfiles) $(pcfiles_uninstalled)
### how to generate pc files
%-@GST_MAJORMINOR@.pc: %.pc
cp $< $@
+%-@GST_MAJORMINOR@-uninstalled.pc: %-uninstalled.pc
+ cp $< $@
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = $(pcfiles)
-EXTRA_DIST = gst-rtsp-server.pc.in
-CLEANFILES = $(pcfiles)
+EXTRA_DIST = \
+ gst-rtsp-server.pc.in \
+ gst-rtsp-server-uninstalled.pc.in
+CLEANFILES = $(pcfiles) $(pcfiles_uninstalled)
--- /dev/null
+# the standard variables don't make sense for an uninstalled copy
+prefix=
+exec_prefix=
+libdir=${pcfiledir}/../gst/rtsp-server
+includedir=${pcfiledir}/..
+
+Name: gst-rtsp-server
+Description: GStreamer based RTSP server
+Version: @VERSION@
+Requires: gstreamer-@GST_MAJORMINOR@ gstreamer-plugins-base-@GST_MAJORMINOR@
+Libs: ${libdir}/libgstrtspserver-@GST_MAJORMINOR@.la
+Cflags: -I${includedir} -I@srcdir@/..