changeset 1712:7bdd9ed28684

Add .pc file
author Myhailo Danylenko <isbear@ukrpost.net>
date Mon, 08 Feb 2010 00:32:18 +0200
parents 3a1afbfb28dd
children 5acc6eb01988
files mcabber/Makefile.am mcabber/configure.ac mcabber/mcabber.pc.in
diffstat 3 files changed, 25 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mcabber/Makefile.am	Tue Feb 09 18:05:13 2010 +0100
+++ b/mcabber/Makefile.am	Mon Feb 08 00:32:18 2010 +0200
@@ -1,2 +1,6 @@
 SUBDIRS = mcabber doc modules
 ACLOCAL_AMFLAGS = -I macros
+if INSTALL_HEADERS
+pkgconfigdir = $(libdir)/pkgconfig
+pkgconfig_DATA = mcabber.pc
+endif
--- a/mcabber/configure.ac	Tue Feb 09 18:05:13 2010 +0100
+++ b/mcabber/configure.ac	Mon Feb 08 00:32:18 2010 +0200
@@ -262,11 +262,21 @@
 # We need _GNU_SOURCE for strptime() and strcasestr()
 CFLAGS="$CFLAGS -D_GNU_SOURCE"
 
+EXTRA_REQUIRES=""
+if test "$enable_enchant" = "yes"; then
+    EXTRA_REQUIRES="$EXTRA_REQUIRES enchant"
+fi
+if test "$enable_gpgme" != "no"; then
+    EXTRA_REQUIRES="$EXTRA_REQUIRES gpgme"
+fi
+AC_SUBST([EXTRA_REQUIRES])
+
 AC_CONFIG_FILES([mcabber/Makefile
                  modules/Makefile
                  modules/beep/Makefile
                  doc/Makefile
                  doc/guide/Makefile
                  doc/help/Makefile
+                 mcabber.pc
                  Makefile])
 AC_OUTPUT
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mcabber/mcabber.pc.in	Mon Feb 08 00:32:18 2010 +0200
@@ -0,0 +1,11 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+
+Name: MCabber
+Description: Modular XMPP client
+Requires: glib-2.0 gmodule-2.0 @EXTRA_REQUIRES@
+Version: @VERSION@
+Libs: 
+Cflags: -I${includedir} @LIBOTR_CFLAGS@