X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=pkgconfig%2FMakefile.am;h=78a1e6534e01a24febeebe2db4e4bba2ef26c241;hb=ce43de86902c4e9c8ed4e9682602664cb9bce2ee;hp=af8983ad3206248214de80f06d3f3c9a2f90e660;hpb=d83d55fef23adcae4b324c29cebdee167ed4374c;p=platform%2Fupstream%2Fgstreamer.git diff --git a/pkgconfig/Makefile.am b/pkgconfig/Makefile.am index af8983a..78a1e65 100644 --- a/pkgconfig/Makefile.am +++ b/pkgconfig/Makefile.am @@ -1,35 +1,45 @@ ### all of the standard pc files we need to generate if HAVE_CHECK -CHECK_PC_I = gstreamer-check-@GST_MAJORMINOR@.pc -CHECK_PC_U = gstreamer-check-@GST_MAJORMINOR@-uninstalled.pc +CHECK_PC_I = gstreamer-check-@GST_API_VERSION@.pc +CHECK_PC_U = gstreamer-check-@GST_API_VERSION@-uninstalled.pc else CHECK_PC_I = CHECK_PC_U = endif pcfiles = \ - gstreamer-@GST_MAJORMINOR@.pc \ - gstreamer-base-@GST_MAJORMINOR@.pc \ + gstreamer-@GST_API_VERSION@.pc \ + gstreamer-base-@GST_API_VERSION@.pc \ $(CHECK_PC_I) \ - gstreamer-controller-@GST_MAJORMINOR@.pc \ - gstreamer-dataprotocol-@GST_MAJORMINOR@.pc \ - gstreamer-net-@GST_MAJORMINOR@.pc + gstreamer-controller-@GST_API_VERSION@.pc \ + gstreamer-net-@GST_API_VERSION@.pc pcfiles_uninstalled = \ - gstreamer-@GST_MAJORMINOR@-uninstalled.pc \ - gstreamer-base-@GST_MAJORMINOR@-uninstalled.pc \ + gstreamer-@GST_API_VERSION@-uninstalled.pc \ + gstreamer-base-@GST_API_VERSION@-uninstalled.pc \ $(CHECK_PC_U) \ - gstreamer-controller-@GST_MAJORMINOR@-uninstalled.pc \ - gstreamer-dataprotocol-@GST_MAJORMINOR@-uninstalled.pc \ - gstreamer-net-@GST_MAJORMINOR@-uninstalled.pc + gstreamer-controller-@GST_API_VERSION@-uninstalled.pc \ + gstreamer-net-@GST_API_VERSION@-uninstalled.pc all-local: $(pcfiles) $(pcfiles_uninstalled) +cp_verbose = $(cp_verbose_$(V)) +cp_verbose_ = $(cp_verbose_$(AM_DEFAULT_VERBOSITY)) +cp_verbose_0 = @echo " CP $@"; + ### how to generate pc files -%-@GST_MAJORMINOR@.pc: %.pc - cp $< $@ -%-@GST_MAJORMINOR@-uninstalled.pc: %-uninstalled.pc - cp $< $@ +%-@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|[@]gstlibdir[@]|$(abs_top_builddir)/gst/.libs|" \ + -e "s|[@]checklibdir[@]|$(abs_top_builddir)/libs/gst/check/.libs|" \ + -e "s|[@]baselibdir[@]|$(abs_top_builddir)/libs/gst/base/.libs|" \ + -e "s|[@]netlibdir[@]|$(abs_top_builddir)/libs/gst/net/.libs|" \ + -e "s|[@]controllerlibdir[@]|$(abs_top_builddir)/libs/gst/controller/.libs|" \ + $< > $@.tmp && mv $@.tmp $@ pkgconfigdir = $(libdir)/pkgconfig pkgconfig_DATA = $(pcfiles) @@ -43,8 +53,6 @@ EXTRA_DIST = \ gstreamer-check-uninstalled.pc.in \ gstreamer-controller.pc.in \ gstreamer-controller-uninstalled.pc.in \ - gstreamer-dataprotocol.pc.in \ - gstreamer-dataprotocol-uninstalled.pc.in \ gstreamer-net.pc.in \ gstreamer-net-uninstalled.pc.in