summaryrefslogtreecommitdiff
path: root/pkgconfig/Makefile.am
blob: 80f11af1ebda7d0902c65b215329a36f3c6b8363 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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
pcfiles_uninstalled = \
	gstreamer-libs-@GST_MAJORMINOR@-uninstalled.pc \
	gstreamer-play-@GST_MAJORMINOR@-uninstalled.pc

all-local: $(pcfiles) $(pcfiles_uninstalled) \
	$(GCONF_PC) \
	$(GCONF_PC_UNINSTALLED) \
	gst-element-check-@GST_MAJORMINOR@.m4

### how to generate pc files
$(pcfiles): %-@GST_MAJORMINOR@.pc: %.pc
	cp $< $@
$(pcfiles_uninstalled): %-@GST_MAJORMINOR@-uninstalled.pc: %-uninstalled.pc
	cp $< $@

gstreamer-gconf-@GST_MAJORMINOR@.pc: \
	$(srcdir)/../gst-libs/gst/gconf/gstreamer-gconf.pc
	cp $< $@
gstreamer-gconf-@GST_MAJORMINOR@-uninstalled.pc: \
	$(srcdir)/../gst-libs/gst/gconf/gstreamer-gconf-uninstalled.pc
	cp $< $@

gst-element-check-@GST_MAJORMINOR@.m4: gst-element-check.m4
	cp $(srcdir)/gst-element-check.m4 gst-element-check-@GST_MAJORMINOR@.m4

pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = \
	$(GCONF_PC) \
	gstreamer-libs-@GST_MAJORMINOR@.pc \
	gstreamer-play-@GST_MAJORMINOR@.pc

EXTRA_DIST= \
           gstreamer-libs.pc.in gstreamer-libs-uninstalled.pc.in \
           gstreamer-play.pc.in gstreamer-play-uninstalled.pc.in \
	   gstreamer-gconf.pc.in gstreamer-gconf.pc-uninstalled.in