1
0
mirror of https://github.com/moparisthebest/hexchat synced 2024-11-22 17:22:18 -05:00

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
This commit is contained in:
Christoph J. Thompson 2013-04-16 12:58:33 +02:00 committed by Berke Viktor
parent 77cad8e716
commit 5b8567919d
4 changed files with 19 additions and 1 deletions

View File

@ -930,6 +930,7 @@ AC_SUBST(PY_LIBS)
AC_SUBST(DBUS_CFLAGS) AC_SUBST(DBUS_CFLAGS)
AC_SUBST(DBUS_LIBS) AC_SUBST(DBUS_LIBS)
m4_ifdef([PKG_INSTALLDIR], [PKG_INSTALLDIR], AC_SUBST([pkgconfigdir], ${libdir}/pkgconfig))
PLUGIN_INCLUDES='-I$(top_srcdir)/plugins' PLUGIN_INCLUDES='-I$(top_srcdir)/plugins'
AC_SUBST(PLUGIN_INCLUDES) AC_SUBST(PLUGIN_INCLUDES)
@ -955,6 +956,8 @@ Makefile
share/Makefile share/Makefile
share/icons/Makefile share/icons/Makefile
share/misc/Makefile share/misc/Makefile
share/pkgconfig/Makefile
share/pkgconfig/hexchat-plugin.pc
src/Makefile src/Makefile
src/common/Makefile src/common/Makefile
src/common/dbus/Makefile src/common/dbus/Makefile

View File

@ -1,3 +1,5 @@
SUBDIRS = pkgconfig
if DO_GTK if DO_GTK
SUBDIRS = icons misc SUBDIRS += icons misc
endif endif

View File

@ -0,0 +1,4 @@
pkgcfgdir = $(pkgconfigdir)
pkgcfg_DATA = hexchat-plugin.pc
EXTRA_DIST = hexchat-plugin.pc.in

View File

@ -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}