meson: don't generate or install pkg-config file for gstreamer-wayland
[platform/upstream/gstreamer.git] / pkgconfig / Makefile.am
index 36bca35..99e6332 100644 (file)
@@ -1,48 +1,73 @@
-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 \
-       gstreamer-interfaces-@GST_MAJORMINOR@.pc
-pcfiles_uninstalled = \
-       gstreamer-libs-@GST_MAJORMINOR@-uninstalled.pc \
-       gstreamer-play-@GST_MAJORMINOR@-uninstalled.pc \
-       gstreamer-interfaces-@GST_MAJORMINOR@-uninstalled.pc
-
-pcfiles_gconf = $(GCONF_PC) $(GCONF_PC_UNINSTALLED)
-all-local: $(pcfiles) $(pcfiles_uninstalled) $(pcfiles_gconf)
-
-### how to generate pc files from .pc files in this dir
-$(pcfiles): %-@GST_MAJORMINOR@.pc: %.pc
-       cp $< $@
-$(pcfiles_uninstalled): %-@GST_MAJORMINOR@-uninstalled.pc: %-uninstalled.pc
-       cp $< $@
-
-### how to generate gconf dir pc files from their pc.in files
-### somebody smart could figure out how to fold this back into one rule
-$(top_builddir)/gst-libs/gst/gconf/gstreamer-gconf*.pc:
-       cd $(top_builddir)/gst-libs/gst/gconf && make gstreamer-gconf.pc gstreamer-gconf-uninstalled.pc
-
-### how to generate pc files from base .pc file in other dir
-$(pcfiles_gconf): gstreamer-gconf-@GST_MAJORMINOR@%.pc: \
-       $(top_builddir)/gst-libs/gst/gconf/gstreamer-gconf%.pc
-       cp $< $@
+pcverfiles =  \
+       gstreamer-plugins-bad-@GST_API_VERSION@.pc \
+       gstreamer-codecparsers-@GST_API_VERSION@.pc \
+       gstreamer-insertbin-@GST_API_VERSION@.pc \
+       gstreamer-mpegts-@GST_API_VERSION@.pc \
+       gstreamer-player-@GST_API_VERSION@.pc \
+       gstreamer-bad-base-@GST_API_VERSION@.pc \
+       gstreamer-bad-audio-@GST_API_VERSION@.pc \
+       gstreamer-bad-video-@GST_API_VERSION@.pc \
+       gstreamer-bad-allocators-@GST_API_VERSION@.pc
+
+pcverfiles_uninstalled = \
+       gstreamer-plugins-bad-@GST_API_VERSION@-uninstalled.pc \
+       gstreamer-codecparsers-@GST_API_VERSION@-uninstalled.pc \
+       gstreamer-insertbin-@GST_API_VERSION@-uninstalled.pc \
+       gstreamer-mpegts-@GST_API_VERSION@-uninstalled.pc \
+       gstreamer-player-@GST_API_VERSION@-uninstalled.pc \
+       gstreamer-bad-base-@GST_API_VERSION@-uninstalled.pc \
+       gstreamer-bad-audio-@GST_API_VERSION@-uninstalled.pc \
+       gstreamer-bad-video-@GST_API_VERSION@-uninstalled.pc \
+       gstreamer-bad-allocators-@GST_API_VERSION@-uninstalled.pc
+
+if HAVE_GST_GL
+pcverfiles += gstreamer-gl-@GST_API_VERSION@.pc
+pcverfiles_uninstalled += gstreamer-gl-@GST_API_VERSION@-uninstalled.pc
+endif
+
+all-local: $(pcverfiles) $(pcverfiles_uninstalled)
+
+cp_verbose = $(cp_verbose_$(V))
+cp_verbose_ = $(cp_verbose_$(AM_DEFAULT_VERBOSITY))
+cp_verbose_0 = @echo "  CP     $@";
+
+### how to generate versioned .pc files from .pc files in this dir
+%-@GST_API_VERSION@.pc: %.pc
+       $(cp_verbose_0)cp $< $@
+%-@GST_API_VERSION@-uninstalled.pc: %-uninstalled.pc
+### the uninstalled libdir is depend of the build system used so set it here
+### rather than hardcoding it in the file directly.
+       $(AM_V_GEN) sed \
+               -e "s|[@]audiolibdir[@]|$(abs_top_builddir)/gst-libs/gst/audio/.libs|" \
+               -e "s|[@]baselibdir[@]|$(abs_top_builddir)/gst-libs/gst/base/.libs|" \
+               -e "s|[@]videolibdir[@]|$(abs_top_builddir)/gst-libs/gst/video/.libs|" \
+               -e "s|[@]codecparserslibdir[@]|$(abs_top_builddir)/gst-libs/gst/codecparsers/.libs|" \
+               -e "s|[@]gllibdir[@]|$(abs_top_builddir)/gst-libs/gst/gl/.libs|" \
+               -e "s|[@]insertbinlibdir[@]|$(abs_top_builddir)/gst-libs/gst/insertbin/.libs|" \
+               -e "s|[@]mpegtslibdir[@]|$(abs_top_builddir)/gst-libs/gst/mpegts/.libs|" \
+               -e "s|[@]playerlibdir[@]|$(abs_top_builddir)/gst-libs/gst/player/.libs|" \
+               -e "s|[@]waylandlibdir[@]|$(abs_top_builddir)/gst-libs/gst/wayland/.libs|" \
+               -e "s|[@]basecamerabinsrclibdir[@]|$(abs_top_builddir)/gst-libs/gst/basecamerabinsrc/.libs|" \
+               -e "s|[@]photographylibdir[@]|$(abs_top_builddir)/gst-libs/gst/interfaces/.libs|" \
+               $< > $@.tmp && mv $@.tmp $@
 
 pkgconfigdir = $(libdir)/pkgconfig
-pkgconfig_DATA = \
-       $(GCONF_PC) \
-       gstreamer-libs-@GST_MAJORMINOR@.pc \
-       gstreamer-play-@GST_MAJORMINOR@.pc \
-       gstreamer-interfaces-@GST_MAJORMINOR@.pc
-
-CLEANFILES = $(pcfiles) $(pcfiles_uninstalled) $(GCONF_PC) $(GCONF_PC_UNINSTALLED)
-EXTRA_DIST= \
-           gstreamer-libs.pc.in gstreamer-libs-uninstalled.pc.in \
-           gstreamer-play.pc.in gstreamer-play-uninstalled.pc.in
+pkgconfig_DATA = $(pcverfiles)
+
+CLEANFILES = $(pcverfiles) $(pcverfiles_uninstalled)
+pcinfiles = \
+           gstreamer-plugins-bad.pc.in gstreamer-plugins-bad-uninstalled.pc.in \
+           gstreamer-codecparsers.pc.in gstreamer-codecparsers-uninstalled.pc.in \
+           gstreamer-gl.pc.in gstreamer-gl-uninstalled.pc.in \
+           gstreamer-insertbin.pc.in gstreamer-insertbin-uninstalled.pc.in \
+           gstreamer-mpegts.pc.in gstreamer-mpegts-uninstalled.pc.in \
+           gstreamer-player.pc.in gstreamer-player-uninstalled.pc.in \
+           gstreamer-bad-audio.pc.in gstreamer-bad-audio-uninstalled.pc.in \
+           gstreamer-bad-video.pc.in gstreamer-bad-video-uninstalled.pc.in \
+           gstreamer-bad-base.pc.in gstreamer-bad-base-uninstalled.pc.in \
+           gstreamer-bad-allocators.pc.in gstreamer-bad-allocators-uninstalled.pc.in
+
+DISTCLEANFILES = $(pcinfiles:.in=)
+EXTRA_DIST = $(pcinfiles)