pkg-config: Properly version and install base/audio/video .pc files
[platform/upstream/gstreamer.git] / pkgconfig / Makefile.am
1
2 ### all of the standard pc files we need to generate
3 pcverfiles =  \
4         gstreamer-plugins-bad-@GST_API_VERSION@.pc \
5         gstreamer-codecparsers-@GST_API_VERSION@.pc \
6         gstreamer-insertbin-@GST_API_VERSION@.pc \
7         gstreamer-mpegts-@GST_API_VERSION@.pc \
8         gstreamer-player-@GST_API_VERSION@.pc \
9         gstreamer-bad-base-@GST_API_VERSION@.pc \
10         gstreamer-bad-audio-@GST_API_VERSION@.pc \
11         gstreamer-bad-video-@GST_API_VERSION@.pc
12
13 pcverfiles_uninstalled = \
14         gstreamer-plugins-bad-@GST_API_VERSION@-uninstalled.pc \
15         gstreamer-codecparsers-@GST_API_VERSION@-uninstalled.pc \
16         gstreamer-insertbin-@GST_API_VERSION@-uninstalled.pc \
17         gstreamer-mpegts-@GST_API_VERSION@-uninstalled.pc \
18         gstreamer-player-@GST_API_VERSION@-uninstalled.pc \
19         gstreamer-bad-base-@GST_API_VERSION@-uninstalled.pc \
20         gstreamer-bad-audio-@GST_API_VERSION@-uninstalled.pc \
21         gstreamer-bad-video-@GST_API_VERSION@-uninstalled.pc
22
23 if HAVE_GST_GL
24 pcverfiles += gstreamer-gl-@GST_API_VERSION@.pc
25 pcverfiles_uninstalled += gstreamer-gl-@GST_API_VERSION@-uninstalled.pc
26 endif
27
28 all-local: $(pcverfiles) $(pcverfiles_uninstalled)
29
30 cp_verbose = $(cp_verbose_$(V))
31 cp_verbose_ = $(cp_verbose_$(AM_DEFAULT_VERBOSITY))
32 cp_verbose_0 = @echo "  CP     $@";
33
34 ### how to generate versioned .pc files from .pc files in this dir
35 %-@GST_API_VERSION@.pc: %.pc
36         $(cp_verbose_0)cp $< $@
37 %-@GST_API_VERSION@-uninstalled.pc: %-uninstalled.pc
38         $(cp_verbose_0)cp $< $@
39
40 pkgconfigdir = $(libdir)/pkgconfig
41 pkgconfig_DATA = $(pcverfiles)
42
43 CLEANFILES = $(pcverfiles) $(pcverfiles_uninstalled)
44 pcinfiles = \
45            gstreamer-plugins-bad.pc.in gstreamer-plugins-bad-uninstalled.pc.in \
46            gstreamer-codecparsers.pc.in gstreamer-codecparsers-uninstalled.pc.in \
47            gstreamer-gl.pc.in gstreamer-gl-uninstalled.pc.in \
48            gstreamer-insertbin.pc.in gstreamer-insertbin-uninstalled.pc.in \
49            gstreamer-mpegts.pc.in gstreamer-mpegts-uninstalled.pc.in \
50            gstreamer-player.pc.in gstreamer-player-uninstalled.pc.in \
51            gstreamer-bad-audio.pc.in gstreamer-bad-audio-uninstalled.pc.in \
52            gstreamer-bad-video.pc.in gstreamer-bad-video-uninstalled.pc.in \
53            gstreamer-bad-base.pc.in gstreamer-bad-base-uninstalled.pc.in
54
55 DISTCLEANFILES = $(pcinfiles:.in=)
56 EXTRA_DIST = $(pcinfiles)