1 From 53281e2d11f84e2dae0704e0167369710ee2cb30 Mon Sep 17 00:00:00 2001
2 From: Yannick Gicquel <yannick.gicquel@iot.bzh>
3 Date: Fri, 23 Sep 2016 14:26:03 +0200
4 Subject: [PATCH 1/6] install files for a module development
6 Signed-off-by: Yannick Gicquel <yannick.gicquel@iot.bzh>
8 Makefile.am | 14 +++++++++++++-
10 pulseaudio-module-devel.pc.in | 12 ++++++++++++
11 3 files changed, 26 insertions(+), 1 deletion(-)
12 create mode 100644 pulseaudio-module-devel.pc.in
14 diff --git a/Makefile.am b/Makefile.am
15 index 13bc469..f0d68a2 100644
18 @@ -53,7 +53,16 @@ dist_vapi_DATA = \
19 vala/libpulse-simple.deps vala/libpulse-simple.vapi
21 pkgconfigdir = $(libdir)/pkgconfig
22 -pkgconfig_DATA = libpulse.pc libpulse-simple.pc
23 +pkgconfig_DATA = libpulse.pc libpulse-simple.pc pulseaudio-module-devel.pc
25 +moduledev_DATA = pulsecore-config.h $(top_srcdir)/src/pulsecore/*.h
26 +moduledevdir = $(includedir)/pulsemodule/pulsecore
28 +moduledevfilter_DATA = $(top_srcdir)/src/pulsecore/filter/*.h
29 +moduledevfilterdir = $(includedir)/pulsemodule/pulsecore/filter
31 +moduledevinternal_DATA = src/pulse/internal.h src/pulse/client-conf.h src/pulse/fork-detect.h
32 +moduledevinternaldir = $(includedir)/pulsemodule/pulse
36 @@ -107,6 +116,9 @@ dist-hook:
38 $(MAKE) -C src check-daemon
40 +pulsecore-config.h: config.h
43 .PHONY: homepage distcleancheck doxygen
46 diff --git a/configure.ac b/configure.ac
47 index 9250c05..f9201ee 100644
50 @@ -1502,6 +1502,7 @@ man/pulse-client.conf.5.xml
52 man/pulse-cli-syntax.5.xml
53 man/start-pulseaudio-x11.1.xml
54 +pulseaudio-module-devel.pc
57 AC_CONFIG_FILES([src/esdcompat:src/daemon/esdcompat.in], [chmod +x src/esdcompat])
58 diff --git a/pulseaudio-module-devel.pc.in b/pulseaudio-module-devel.pc.in
60 index 0000000..85aadbc
62 +++ b/pulseaudio-module-devel.pc.in
65 +exec_prefix=@exec_prefix@
67 +includedir=@includedir@
68 +modlibexecdir=@modlibexecdir@
70 +Name: pulseaudio-module-devel
71 +Description: PulseAudio Module Development Interface
72 +Version: @PACKAGE_VERSION@
73 +Libs: -L${libdir} -L${libdir}/pulseaudio -L${modlibexecdir} -lpulsecommon-@PA_MAJORMINOR@ -lpulsecore-@PA_MAJORMINOR@ -lprotocol-native
75 +Cflags: -I${includedir}/pulsemodule -D_REENTRANT