From 68b584063fafa720ff6d0070456a303446e9f292 Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Tue, 12 Jan 2010 04:43:39 +0000 Subject: [PATCH] add pkgconfig file git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16256 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- Makefile.am | 4 ++++ build/freeswitch.pc.in | 23 +++++++++++++++++++++++ configure.in | 1 + 3 files changed, 28 insertions(+) create mode 100644 build/freeswitch.pc.in diff --git a/Makefile.am b/Makefile.am index 5ed6554866..52ae4e9527 100644 --- a/Makefile.am +++ b/Makefile.am @@ -322,6 +322,10 @@ scripts/fsxs: scripts/fsxs.in ## ## misc ## + +pkgconfigdir = $(libdir)/pkgconfig +pkgconfig_DATA = build/freeswitch.pc + $(switch_builddir)/modules.conf: if test -f $@; then touch $@; else cp $(switch_srcdir)/build/modules.conf.in $@ ;fi diff --git a/build/freeswitch.pc.in b/build/freeswitch.pc.in new file mode 100644 index 0000000000..5a0463fdce --- /dev/null +++ b/build/freeswitch.pc.in @@ -0,0 +1,23 @@ +prefix=@prefix@ +exec_prefix=@exec_prefix@ +libdir=@libdir@ +libexecdir=@libexecdir@ +includedir=@includedir@ +modulesdir=@modulesdir@ +runtimedir=@runtimedir@ +logfiledir=@logfiledir@ +sysconfdir=@sysconfdir@ +dbdir=@dbdir@ +htdocsdir=@htdocsdir@ +localstatedir=@localstatedir@ +grammardir=@grammardir@ +soundsdir=@soundsdir@ +scriptdir=@scriptdir@ +recordingsdir=@recordingsdir@ +bindir=@bindir@ + +Name: freeswitch +Version: @PACKAGE_VERSION@ +Description: FreeSWITCH open source telephony platform +Libs: -L${libdir} -lfreeswitch +Cflags: -I${includedir} diff --git a/configure.in b/configure.in index 0b7c30c1f1..d68842bdaa 100644 --- a/configure.in +++ b/configure.in @@ -871,6 +871,7 @@ AC_CONFIG_FILES([Makefile src/include/switch_am_config.h build/getsounds.sh build/getlib.sh + build/freeswitch.pc build/modmake.rules libs/xmlrpc-c/include/xmlrpc-c/config.h libs/xmlrpc-c/xmlrpc_config.h