Merge branch 'master' into 0.11
[platform/upstream/gstreamer.git] / pkgconfig / Makefile.am
1 ### all of the standard pc files we need to generate
2 if HAVE_CHECK
3 CHECK_PC_I = gstreamer-check-@GST_MAJORMINOR@.pc
4 CHECK_PC_U = gstreamer-check-@GST_MAJORMINOR@-uninstalled.pc
5 else
6 CHECK_PC_I =
7 CHECK_PC_U =
8 endif
9
10 pcfiles =                                                       \
11         gstreamer-@GST_MAJORMINOR@.pc                           \
12         gstreamer-base-@GST_MAJORMINOR@.pc                      \
13         $(CHECK_PC_I)                                           \
14         gstreamer-controller-@GST_MAJORMINOR@.pc                \
15         gstreamer-net-@GST_MAJORMINOR@.pc
16
17 pcfiles_uninstalled =                                           \
18         gstreamer-@GST_MAJORMINOR@-uninstalled.pc               \
19         gstreamer-base-@GST_MAJORMINOR@-uninstalled.pc          \
20         $(CHECK_PC_U)                                           \
21         gstreamer-controller-@GST_MAJORMINOR@-uninstalled.pc    \
22         gstreamer-net-@GST_MAJORMINOR@-uninstalled.pc
23
24 all-local: $(pcfiles) $(pcfiles_uninstalled)
25
26 cp_verbose = $(cp_verbose_$(V))
27 cp_verbose_ = $(cp_verbose_$(AM_DEFAULT_VERBOSITY))
28 cp_verbose_0 = @echo "  CP     $@";
29
30 ### how to generate pc files
31 %-@GST_MAJORMINOR@.pc: %.pc
32         $(cp_verbose_0)cp $< $@
33 %-@GST_MAJORMINOR@-uninstalled.pc: %-uninstalled.pc
34         $(cp_verbose_0)cp $< $@
35
36 pkgconfigdir = $(libdir)/pkgconfig
37 pkgconfig_DATA = $(pcfiles)
38
39 EXTRA_DIST =                                                    \
40         gstreamer.pc.in                                         \
41         gstreamer-uninstalled.pc.in                             \
42         gstreamer-base.pc.in                                    \
43         gstreamer-base-uninstalled.pc.in                        \
44         gstreamer-check.pc.in                                   \
45         gstreamer-check-uninstalled.pc.in                       \
46         gstreamer-controller.pc.in                              \
47         gstreamer-controller-uninstalled.pc.in                  \
48         gstreamer-net.pc.in                                     \
49         gstreamer-net-uninstalled.pc.in
50
51 CLEANFILES = $(pcfiles) $(pcfiles_uninstalled)