36bca35292e6085dd6f491cd960a55ba182e7804
[platform/upstream/gstreamer.git] / pkgconfig / Makefile.am
1 if USE_GCONF
2 GCONF_PC=gstreamer-gconf-@GST_MAJORMINOR@.pc
3 GCONF_PC_UNINSTALLED=gstreamer-gconf-@GST_MAJORMINOR@-uninstalled.pc
4 else
5 GCONF_PC=
6 GCONF_PC_UNINSTALLED=
7 endif
8
9 ### all of the standard pc files we need to generate
10 pcfiles =  \
11         gstreamer-libs-@GST_MAJORMINOR@.pc \
12         gstreamer-play-@GST_MAJORMINOR@.pc \
13         gstreamer-interfaces-@GST_MAJORMINOR@.pc
14 pcfiles_uninstalled = \
15         gstreamer-libs-@GST_MAJORMINOR@-uninstalled.pc \
16         gstreamer-play-@GST_MAJORMINOR@-uninstalled.pc \
17         gstreamer-interfaces-@GST_MAJORMINOR@-uninstalled.pc
18
19 pcfiles_gconf = $(GCONF_PC) $(GCONF_PC_UNINSTALLED)
20 all-local: $(pcfiles) $(pcfiles_uninstalled) $(pcfiles_gconf)
21
22 ### how to generate pc files from .pc files in this dir
23 $(pcfiles): %-@GST_MAJORMINOR@.pc: %.pc
24         cp $< $@
25 $(pcfiles_uninstalled): %-@GST_MAJORMINOR@-uninstalled.pc: %-uninstalled.pc
26         cp $< $@
27
28 ### how to generate gconf dir pc files from their pc.in files
29 ### somebody smart could figure out how to fold this back into one rule
30 $(top_builddir)/gst-libs/gst/gconf/gstreamer-gconf*.pc:
31         cd $(top_builddir)/gst-libs/gst/gconf && make gstreamer-gconf.pc gstreamer-gconf-uninstalled.pc
32
33 ### how to generate pc files from base .pc file in other dir
34 $(pcfiles_gconf): gstreamer-gconf-@GST_MAJORMINOR@%.pc: \
35         $(top_builddir)/gst-libs/gst/gconf/gstreamer-gconf%.pc
36         cp $< $@
37
38 pkgconfigdir = $(libdir)/pkgconfig
39 pkgconfig_DATA = \
40         $(GCONF_PC) \
41         gstreamer-libs-@GST_MAJORMINOR@.pc \
42         gstreamer-play-@GST_MAJORMINOR@.pc \
43         gstreamer-interfaces-@GST_MAJORMINOR@.pc
44
45 CLEANFILES = $(pcfiles) $(pcfiles_uninstalled) $(GCONF_PC) $(GCONF_PC_UNINSTALLED)
46 EXTRA_DIST= \
47            gstreamer-libs.pc.in gstreamer-libs-uninstalled.pc.in \
48            gstreamer-play.pc.in gstreamer-play-uninstalled.pc.in