changeset 15616:4ea624932995

Add stuff for pkg-config
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Sun, 11 Feb 2007 03:54:22 +0000
parents b74a3bec8dcb
children 03e40db222eb
files configure.ac libpurple/Makefile.am libpurple/purple.pc.in pidgin/Makefile.am pidgin/pidgin.pc.in
diffstat 5 files changed, 38 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/configure.ac	Sun Feb 11 01:40:04 2007 +0000
+++ b/configure.ac	Sun Feb 11 03:54:22 2007 +0000
@@ -1901,6 +1901,7 @@
 		   doc/gaim-text.1
 		   m4macros/Makefile
 		   pidgin/Makefile
+		   pidgin/pidgin.pc
 		   pidgin/pixmaps/Makefile
 		   pidgin/pixmaps/animations/Makefile
 		   pidgin/pixmaps/animations/16/Makefile
@@ -1946,6 +1947,7 @@
 		   pidgin/plugins/ticker/Makefile
 		   pidgin/sounds/Makefile
 		   libpurple/gconf/Makefile
+		   libpurple/purple.pc
 		   libpurple/plugins/Makefile
 		   libpurple/plugins/mono/Makefile
 		   libpurple/plugins/mono/api/Makefile
--- a/libpurple/Makefile.am	Sun Feb 11 01:40:04 2007 +0000
+++ b/libpurple/Makefile.am	Sun Feb 11 03:54:22 2007 +0000
@@ -6,6 +6,7 @@
 		gaim-send \
 		gaim-send-async \
 		gaim-url-handler \
+		purple.pc.in \
 		Makefile.mingw \
 		win32/global.mak \
 		win32/libc_interface.c \
@@ -23,6 +24,9 @@
 GCONF_DIR=gconf
 endif
 
+pkgconfigdir = $(libdir)/pkgconfig
+pkgconfig_DATA = purple.pc
+
 SUBDIRS = $(GCONF_DIR) plugins protocols tests
 
 gaim_coresources = \
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/libpurple/purple.pc.in	Sun Feb 11 03:54:22 2007 +0000
@@ -0,0 +1,14 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+datadir=@datadir@
+sysconfdir=@sysconfdir@
+ 
+Name: libpurple
+Description: libpurple is a GLib-based instant messenger library.
+Version: @VERSION@
+Requires: glib-2.0
+Cflags: -I${includedir}/libpurple
+Libs: -L${libdir} -lpurple
+
--- a/pidgin/Makefile.am	Sun Feb 11 01:40:04 2007 +0000
+++ b/pidgin/Makefile.am	Sun Feb 11 03:54:22 2007 +0000
@@ -3,6 +3,7 @@
 		getopt.h \
 		getopt1.c \
 		Makefile.mingw \
+		pidgin.pc.in \
 		win32/IdleTracker/Makefile.mingw \
 		win32/IdleTracker/idletrack.c \
 		win32/IdleTracker/idletrack.h \
@@ -57,7 +58,10 @@
 
 if ENABLE_GTK
 
-SUBDIRS = pixmaps plugins sounds
+pkgconfigdir = $(libdir)/pkgconfig
+pkgconfig_DATA = pidgin.pc
+
+SUBDIRS = plugins 
 
 bin_PROGRAMS = pidgin
 
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/pidgin/pidgin.pc.in	Sun Feb 11 03:54:22 2007 +0000
@@ -0,0 +1,13 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+datadir=@datadir@
+sysconfdir=@sysconfdir@
+ 
+Name: Pidgin
+Description: Pidgin is a GTK2-based instant messenger application.
+Version: @VERSION@
+Requires: glib-2.0 gtk+-2.0 purple
+Cflags: -I${includedir}/pidgin
+