diff options
author | Christoph J. Thompson <cjsthompson@gmail.com> | 2013-04-16 12:58:33 +0200 |
---|---|---|
committer | Berke Viktor <bviktor@hexchat.org> | 2013-04-28 16:48:32 +0200 |
commit | 5b8567919d3bf80baced7df9380ccf217331c91d (patch) | |
tree | 494f3e5ccf646b8fb0ac4bfb532d5a1232fd4a83 /share | |
parent | 77cad8e716e6023e1042c21cb2fe12b3a81f295d (diff) |
Install a pkgconfig .pc file. This allows external plugins to find
where the header file is located, where Hexchat expects to find plugins so it can load them at startup and which version of Hexchat is installed. The path where pkgconfig files are stored is determined by a macro available in newer versions of pkgconfig which can be overridden by the --with-pkgconfig= configure switch. However, if this macro is unavailable (older versions of pkgconfig) then m4ifdef will make it fallback to simply use ${libdir}/pkgconfig (which is the default). modified: configure.ac modified: share/Makefile.am new file: share/pkgconfig/Makefile.am new file: share/pkgconfig/hexchat-plugin.pc.in
Diffstat (limited to 'share')
-rw-r--r-- | share/Makefile.am | 4 | ||||
-rw-r--r-- | share/pkgconfig/Makefile.am | 4 | ||||
-rw-r--r-- | share/pkgconfig/hexchat-plugin.pc.in | 9 |
3 files changed, 16 insertions, 1 deletions
diff --git a/share/Makefile.am b/share/Makefile.am index 6d143b61..7642770e 100644 --- a/share/Makefile.am +++ b/share/Makefile.am @@ -1,3 +1,5 @@ +SUBDIRS = pkgconfig + if DO_GTK -SUBDIRS = icons misc +SUBDIRS += icons misc endif diff --git a/share/pkgconfig/Makefile.am b/share/pkgconfig/Makefile.am new file mode 100644 index 00000000..7ee0ac95 --- /dev/null +++ b/share/pkgconfig/Makefile.am @@ -0,0 +1,4 @@ +pkgcfgdir = $(pkgconfigdir) +pkgcfg_DATA = hexchat-plugin.pc + +EXTRA_DIST = hexchat-plugin.pc.in diff --git a/share/pkgconfig/hexchat-plugin.pc.in b/share/pkgconfig/hexchat-plugin.pc.in new file mode 100644 index 00000000..23957236 --- /dev/null +++ b/share/pkgconfig/hexchat-plugin.pc.in @@ -0,0 +1,9 @@ +prefix=@prefix@ +exec_prefix=${prefix} +includedir=@includedir@ +hexchatlibdir=@hexchatlibdir@ + +Name: HexChat plugins +Description: Header and path for HexChat plugins +Version: @VERSION@ +Cflags: -I${includedir} |