From 8a186966c672486e42e96566cec54984c7b63907 Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Wed, 14 Dec 2016 01:30:41 -0600 Subject: [PATCH] build: install libpkgconf .pc file --- Makefile.am | 6 ++++-- configure.ac | 2 +- libpkgconf.pc.in | 11 +++++++++++ 3 files changed, 16 insertions(+), 3 deletions(-) create mode 100644 libpkgconf.pc.in diff --git a/Makefile.am b/Makefile.am index 4cd32c6..7b72f1e 100644 --- a/Makefile.am +++ b/Makefile.am @@ -4,9 +4,11 @@ datadir = @datadir@ includedir = @includedir@ system_includedir = @SYSTEM_INCLUDEDIR@ system_libdir = @SYSTEM_LIBDIR@ -pkgconfigdir = @PKGCONFIGDIR@ +pkg_default_dir = @PKGCONFIGDIR@ +pkgconfigdir = $(libdir)/pkgconfig +nodist_pkgconfig_DATA = libpkgconf.pc -AM_CFLAGS = -Wall -Wextra -Wformat=2 -std=gnu99 -DPKG_DEFAULT_PATH=\"$(pkgconfigdir)\" -DSYSTEM_INCLUDEDIR=\"$(system_includedir)\" -DSYSTEM_LIBDIR=\"$(system_libdir)\" +AM_CFLAGS = -Wall -Wextra -Wformat=2 -std=gnu99 -DPKG_DEFAULT_PATH=\"$(pkg_default_dir)\" -DSYSTEM_INCLUDEDIR=\"$(system_includedir)\" -DSYSTEM_LIBDIR=\"$(system_libdir)\" bin_PROGRAMS = pkgconf lib_LTLIBRARIES = libpkgconf.la diff --git a/configure.ac b/configure.ac index 41cf997..678596a 100644 --- a/configure.ac +++ b/configure.ac @@ -45,5 +45,5 @@ AC_PROG_CC AC_PROG_INSTALL AC_PROG_LN_S -AC_CONFIG_FILES([Makefile Kyuafile tests/Kyuafile tests/test_env.sh]) +AC_CONFIG_FILES([Makefile Kyuafile libpkgconf.pc tests/Kyuafile tests/test_env.sh]) AC_OUTPUT diff --git a/libpkgconf.pc.in b/libpkgconf.pc.in new file mode 100644 index 0000000..d278136 --- /dev/null +++ b/libpkgconf.pc.in @@ -0,0 +1,11 @@ +prefix=@prefix@ +exec_prefix=${prefix} +includedir=@includedir@ +libdir=@libdir@ + +Name: libpkgconf +Description: a library for accessing and manipulating development framework configuration +URL: http://github.com/pkgconf/pkgconf +Version: @PACKAGE_VERSION@ +CFlags: -I${includedir}/pkgconf +Libs: -L${libdir} -lpkgconf