changeset 29340:1d969bd224f2

Add a plugindir variable to .pc files. This allows libpurple plugins to use the result of `pkg-config --variable=plugindir libpurple` to decide where to install themselves, and similarly for pidgin plugins.
author Will Thompson <will.thompson@collabora.co.uk>
date Sun, 20 Dec 2009 17:37:17 +0000
parents 356d1f40a56d
children a52831eada67
files libpurple/purple-uninstalled.pc.in libpurple/purple.pc.in pidgin/pidgin-uninstalled.pc.in pidgin/pidgin.pc.in
diffstat 4 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/purple-uninstalled.pc.in	Sun Dec 20 17:17:10 2009 +0000
+++ b/libpurple/purple-uninstalled.pc.in	Sun Dec 20 17:37:17 2009 +0000
@@ -9,6 +9,8 @@
 abs_srcdir=@abs_srcdir@
 abs_builddir=@abs_builddir@
 
+plugindir=${libdir}/purple-@PURPLE_MAJOR_VERSION@
+
 Name: libpurple
 Description: libpurple is a GLib-based instant messenger library.
 Version: @VERSION@
--- a/libpurple/purple.pc.in	Sun Dec 20 17:17:10 2009 +0000
+++ b/libpurple/purple.pc.in	Sun Dec 20 17:37:17 2009 +0000
@@ -6,6 +6,8 @@
 datadir=@datadir@
 sysconfdir=@sysconfdir@
 
+plugindir=${libdir}/purple-@PURPLE_MAJOR_VERSION@
+
 Name: libpurple
 Description: libpurple is a GLib-based instant messenger library.
 Version: @VERSION@
--- a/pidgin/pidgin-uninstalled.pc.in	Sun Dec 20 17:17:10 2009 +0000
+++ b/pidgin/pidgin-uninstalled.pc.in	Sun Dec 20 17:37:17 2009 +0000
@@ -9,6 +9,8 @@
 abs_srcdir=@abs_srcdir@
 abs_builddir=@abs_builddir@
 
+plugindir=${libdir}/pidgin
+
 Name: Pidgin
 Description: Pidgin is a GTK2-based instant messenger application.
 Version: @VERSION@
--- a/pidgin/pidgin.pc.in	Sun Dec 20 17:17:10 2009 +0000
+++ b/pidgin/pidgin.pc.in	Sun Dec 20 17:37:17 2009 +0000
@@ -6,6 +6,8 @@
 datadir=@datadir@
 sysconfdir=@sysconfdir@
 
+plugindir=${libdir}/pidgin
+
 Name: Pidgin
 Description: Pidgin is a GTK2-based instant messenger application.
 Version: @VERSION@