Blame pkgconfig/Makefile.am

Packit 971217
### all of the standard pc files we need to generate
Packit 971217
pcverfiles =  \
Packit 971217
	gstreamer-allocators-@GST_API_VERSION@.pc \
Packit 971217
	gstreamer-audio-@GST_API_VERSION@.pc \
Packit 971217
	gstreamer-app-@GST_API_VERSION@.pc \
Packit 971217
	gstreamer-fft-@GST_API_VERSION@.pc \
Packit 971217
	gstreamer-pbutils-@GST_API_VERSION@.pc \
Packit 971217
	gstreamer-riff-@GST_API_VERSION@.pc \
Packit 971217
	gstreamer-rtp-@GST_API_VERSION@.pc \
Packit 971217
	gstreamer-rtsp-@GST_API_VERSION@.pc \
Packit 971217
	gstreamer-sdp-@GST_API_VERSION@.pc \
Packit 971217
	gstreamer-tag-@GST_API_VERSION@.pc \
Packit 971217
	gstreamer-video-@GST_API_VERSION@.pc \
Packit 971217
	gstreamer-plugins-base-@GST_API_VERSION@.pc
Packit 971217
pcverfiles_uninstalled = \
Packit 971217
	gstreamer-allocators-@GST_API_VERSION@-uninstalled.pc \
Packit 971217
	gstreamer-audio-@GST_API_VERSION@-uninstalled.pc \
Packit 971217
	gstreamer-app-@GST_API_VERSION@-uninstalled.pc \
Packit 971217
	gstreamer-fft-@GST_API_VERSION@-uninstalled.pc \
Packit 971217
	gstreamer-pbutils-@GST_API_VERSION@-uninstalled.pc \
Packit 971217
	gstreamer-riff-@GST_API_VERSION@-uninstalled.pc \
Packit 971217
	gstreamer-rtp-@GST_API_VERSION@-uninstalled.pc \
Packit 971217
	gstreamer-rtsp-@GST_API_VERSION@-uninstalled.pc \
Packit 971217
	gstreamer-sdp-@GST_API_VERSION@-uninstalled.pc \
Packit 971217
	gstreamer-tag-@GST_API_VERSION@-uninstalled.pc \
Packit 971217
	gstreamer-video-@GST_API_VERSION@-uninstalled.pc \
Packit 971217
	gstreamer-plugins-base-@GST_API_VERSION@-uninstalled.pc
Packit 971217
Packit 971217
if HAVE_GST_GL
Packit 971217
pcverfiles += gstreamer-gl-@GST_API_VERSION@.pc
Packit 971217
pcverfiles_uninstalled += gstreamer-gl-@GST_API_VERSION@-uninstalled.pc
Packit 971217
endif
Packit 971217
Packit 971217
all-local: $(pcverfiles) $(pcverfiles_uninstalled)
Packit 971217
Packit 971217
cp_verbose = $(cp_verbose_$(V))
Packit 971217
cp_verbose_ = $(cp_verbose_$(AM_DEFAULT_VERBOSITY))
Packit 971217
cp_verbose_0 = @echo "  CP     $@";
Packit 971217
Packit 971217
### how to generate versioned .pc files from .pc files in this dir
Packit 971217
%-@GST_API_VERSION@.pc: %.pc
Packit 971217
	$(cp_verbose_0)cp $< $@
Packit 971217
%-@GST_API_VERSION@-uninstalled.pc: %-uninstalled.pc
Packit 971217
### the uninstalled libdir is depend of the build system used so set it here
Packit 971217
### rather than hardcoding it in the file directly.
Packit 971217
	$(AM_V_GEN) sed \
Packit 971217
		-e "s|[@]allocatorslibdir[@]|$(abs_top_builddir)/gst-libs/gst/allocators/.libs|" \
Packit 971217
		-e "s|[@]audiolibdir[@]|$(abs_top_builddir)/gst-libs/gst/audio/.libs|" \
Packit 971217
		-e "s|[@]applibdir[@]|$(abs_top_builddir)/gst-libs/gst/app/.libs|" \
Packit 971217
		-e "s|[@]fftlibdir[@]|$(abs_top_builddir)/gst-libs/gst/fft/.libs|" \
Packit 971217
		-e "s|[@]pbutilslibdir[@]|$(abs_top_builddir)/gst-libs/gst/pbutils/.libs|" \
Packit 971217
		-e "s|[@]rifflibdir[@]|$(abs_top_builddir)/gst-libs/gst/riff/.libs|" \
Packit 971217
		-e "s|[@]rtplibdir[@]|$(abs_top_builddir)/gst-libs/gst/rtp/.libs|" \
Packit 971217
		-e "s|[@]rtsplibdir[@]|$(abs_top_builddir)/gst-libs/gst/rtsp/.libs|" \
Packit 971217
		-e "s|[@]sdplibdir[@]|$(abs_top_builddir)/gst-libs/gst/sdp/.libs|" \
Packit 971217
		-e "s|[@]taglibdir[@]|$(abs_top_builddir)/gst-libs/gst/tag/.libs|" \
Packit 971217
		-e "s|[@]videolibdir[@]|$(abs_top_builddir)/gst-libs/gst/video/.libs|" \
Packit 971217
		-e "s|[@]gllibdir[@]|$(abs_top_builddir)/gst-libs/gst/gl/.libs|" \
Packit 971217
		$< > $@.tmp && mv $@.tmp $@
Packit 971217
Packit 971217
pkgconfigdir = $(libdir)/pkgconfig
Packit 971217
pkgconfig_DATA = $(pcverfiles)
Packit 971217
Packit 971217
CLEANFILES = $(pcverfiles) $(pcverfiles_uninstalled)
Packit 971217
pcinfiles = \
Packit 971217
		   gstreamer-allocators.pc.in gstreamer-allocators-uninstalled.pc.in \
Packit 971217
           gstreamer-audio.pc.in gstreamer-audio-uninstalled.pc.in \
Packit 971217
           gstreamer-app.pc.in gstreamer-app-uninstalled.pc.in \
Packit 971217
           gstreamer-fft.pc.in gstreamer-fft-uninstalled.pc.in \
Packit 971217
           gstreamer-pbutils.pc.in gstreamer-pbutils-uninstalled.pc.in \
Packit 971217
           gstreamer-riff.pc.in gstreamer-riff-uninstalled.pc.in \
Packit 971217
           gstreamer-rtp.pc.in gstreamer-rtp-uninstalled.pc.in \
Packit 971217
           gstreamer-rtsp.pc.in gstreamer-rtsp-uninstalled.pc.in \
Packit 971217
           gstreamer-sdp.pc.in gstreamer-sdp-uninstalled.pc.in \
Packit 971217
           gstreamer-tag.pc.in gstreamer-tag-uninstalled.pc.in \
Packit 971217
           gstreamer-video.pc.in gstreamer-video-uninstalled.pc.in \
Packit 971217
           gstreamer-gl.pc.in gstreamer-gl-uninstalled.pc.in \
Packit 971217
           gstreamer-plugins-base.pc.in gstreamer-plugins-base-uninstalled.pc.in
Packit 971217
Packit 971217
DISTCLEANFILES = $(pcinfiles:.in=)
Packit 971217
EXTRA_DIST = $(pcinfiles)