speechd-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 1/3] added pkgconfig support


From: Christopher Brannon
Subject: [PATCH 1/3] added pkgconfig support
Date: Wed, 15 Sep 2010 21:24:41 -0500

From: Andrei Kholodnyi <address@hidden>
To: address@hidden

added pkg-config support for speech-dispatcher.
configure now creates speech-dispatcher.pc
based on the speech-dispatcher.pc.in which was introduced by this patch.

Applications that uses libspeechd can call pkg-config
to insert the correct compiler options for it.
e.g. gcc -o test test.c `pkg-config --libs --cflags speech-dispatcher`

In the application's configure.ac it will look like:

PKG_CHECK_MODULES(SPD,speech-dispatcher,,exit)
AC_SUBST(SPD_CFLAGS)
AC_SUBST(SPD_LIBS)

Reviewed-by: Christopher Brannon <cmbrannon79 at gmail.com>

Modified by Christopher Brannon: updated the commit message with text
supplied by Andrei Kholodnyi.
---
 Makefile.am             |    3 +++
 configure.ac            |    1 +
 speech-dispatcher.pc.in |   11 +++++++++++
 3 files changed, 15 insertions(+), 0 deletions(-)
 create mode 100644 speech-dispatcher.pc.in

diff --git a/Makefile.am b/Makefile.am
index 91f670e..d4d8378 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,5 +1,8 @@
 ## Process this file with automake to produce Makefile.in
 
+pkgconfigdir = $(libdir)/pkgconfig
+pkgconfig_DATA = speech-dispatcher.pc
+
 SUBDIRS= include src config doc po
 
 EXTRA_DIST=  build.sh
diff --git a/configure.ac b/configure.ac
index cfe6aaf..b94860b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -415,6 +415,7 @@ localedir=${datadir}/locale
 AC_SUBST(localedir)
 
 AC_CONFIG_FILES([Makefile
+       speech-dispatcher.pc
        config/Makefile
        config/clients/Makefile
        config/modules/Makefile
diff --git a/speech-dispatcher.pc.in b/speech-dispatcher.pc.in
new file mode 100644
index 0000000..ea09f01
--- /dev/null
+++ b/speech-dispatcher.pc.in
@@ -0,0 +1,11 @@
address@hidden@
address@hidden@
address@hidden@
address@hidden@
+
+Name: @PACKAGE_NAME@
+Description: @PACKAGE_NAME@ provides a device independent layer for speech 
synthesis
+Version: @VERSION@
+Requires: glib-2.0
+Libs: -L${libdir} -lspeechd
+Cflags: -I${includedir}
-- 
1.7.2.3




reply via email to

[Prev in Thread] Current Thread [Next in Thread]