Blame pkgconfig/Makefile.am

Packit a6ee4b
### all of the standard pc files we need to generate
Packit a6ee4b
if HAVE_CHECK
Packit a6ee4b
CHECK_PC_I = gstreamer-check-@GST_API_VERSION@.pc
Packit a6ee4b
CHECK_PC_U = gstreamer-check-@GST_API_VERSION@-uninstalled.pc
Packit a6ee4b
else
Packit a6ee4b
CHECK_PC_I =
Packit a6ee4b
CHECK_PC_U =
Packit a6ee4b
endif
Packit a6ee4b
Packit a6ee4b
pcfiles = 							\
Packit a6ee4b
	gstreamer-@GST_API_VERSION@.pc				\
Packit a6ee4b
	gstreamer-base-@GST_API_VERSION@.pc			\
Packit a6ee4b
	$(CHECK_PC_I)						\
Packit a6ee4b
	gstreamer-controller-@GST_API_VERSION@.pc		\
Packit a6ee4b
	gstreamer-net-@GST_API_VERSION@.pc
Packit a6ee4b
Packit a6ee4b
pcfiles_uninstalled =						\
Packit a6ee4b
	gstreamer-@GST_API_VERSION@-uninstalled.pc		\
Packit a6ee4b
	gstreamer-base-@GST_API_VERSION@-uninstalled.pc		\
Packit a6ee4b
	$(CHECK_PC_U)						\
Packit a6ee4b
	gstreamer-controller-@GST_API_VERSION@-uninstalled.pc	\
Packit a6ee4b
	gstreamer-net-@GST_API_VERSION@-uninstalled.pc
Packit a6ee4b
Packit a6ee4b
all-local: $(pcfiles) $(pcfiles_uninstalled)
Packit a6ee4b
Packit a6ee4b
cp_verbose = $(cp_verbose_$(V))
Packit a6ee4b
cp_verbose_ = $(cp_verbose_$(AM_DEFAULT_VERBOSITY))
Packit a6ee4b
cp_verbose_0 = @echo "  CP     $@";
Packit a6ee4b
Packit a6ee4b
### how to generate pc files
Packit a6ee4b
%-@GST_API_VERSION@.pc: %.pc
Packit a6ee4b
	$(cp_verbose_0)cp $< $@
Packit a6ee4b
%-@GST_API_VERSION@-uninstalled.pc: %-uninstalled.pc
Packit a6ee4b
### the uninstalled libdir is depend of the build system used so set it here
Packit a6ee4b
### rather than hardcoding it in the file directly.
Packit a6ee4b
	$(AM_V_GEN) sed \
Packit a6ee4b
		-e "s|[@]gstlibdir[@]|$(abs_top_builddir)/gst/.libs|" \
Packit a6ee4b
		-e "s|[@]checklibdir[@]|$(abs_top_builddir)/libs/gst/check/.libs|" \
Packit a6ee4b
		-e "s|[@]baselibdir[@]|$(abs_top_builddir)/libs/gst/base/.libs|" \
Packit a6ee4b
		-e "s|[@]netlibdir[@]|$(abs_top_builddir)/libs/gst/net/.libs|" \
Packit a6ee4b
		-e "s|[@]controllerlibdir[@]|$(abs_top_builddir)/libs/gst/controller/.libs|" \
Packit a6ee4b
		$< > $@.tmp && mv $@.tmp $@
Packit a6ee4b
Packit a6ee4b
pkgconfigdir = $(libdir)/pkgconfig
Packit a6ee4b
pkgconfig_DATA = $(pcfiles)
Packit a6ee4b
Packit a6ee4b
EXTRA_DIST =							\
Packit a6ee4b
	gstreamer.pc.in						\
Packit a6ee4b
	gstreamer-uninstalled.pc.in				\
Packit a6ee4b
	gstreamer-base.pc.in					\
Packit a6ee4b
	gstreamer-base-uninstalled.pc.in			\
Packit a6ee4b
	gstreamer-check.pc.in					\
Packit a6ee4b
	gstreamer-check-uninstalled.pc.in			\
Packit a6ee4b
	gstreamer-controller.pc.in				\
Packit a6ee4b
	gstreamer-controller-uninstalled.pc.in			\
Packit a6ee4b
	gstreamer-net.pc.in					\
Packit a6ee4b
	gstreamer-net-uninstalled.pc.in
Packit a6ee4b
Packit a6ee4b
CLEANFILES = $(pcfiles) $(pcfiles_uninstalled)