Browse Source

build: install libpkgconf .pc file

William Pitcock 2 years ago
parent
commit
8a186966c6
3 changed files with 16 additions and 3 deletions
  1. 4
    2
      Makefile.am
  2. 1
    1
      configure.ac
  3. 11
    0
      libpkgconf.pc.in

+ 4
- 2
Makefile.am View File

@@ -4,9 +4,11 @@ datadir                = @datadir@
4 4
 includedir             = @includedir@
5 5
 system_includedir      = @SYSTEM_INCLUDEDIR@
6 6
 system_libdir          = @SYSTEM_LIBDIR@
7
-pkgconfigdir           = @PKGCONFIGDIR@
7
+pkg_default_dir        = @PKGCONFIGDIR@
8
+pkgconfigdir           = $(libdir)/pkgconfig
9
+nodist_pkgconfig_DATA  = libpkgconf.pc
8 10
 
9
-AM_CFLAGS = -Wall -Wextra -Wformat=2 -std=gnu99 -DPKG_DEFAULT_PATH=\"$(pkgconfigdir)\" -DSYSTEM_INCLUDEDIR=\"$(system_includedir)\" -DSYSTEM_LIBDIR=\"$(system_libdir)\"
11
+AM_CFLAGS = -Wall -Wextra -Wformat=2 -std=gnu99 -DPKG_DEFAULT_PATH=\"$(pkg_default_dir)\" -DSYSTEM_INCLUDEDIR=\"$(system_includedir)\" -DSYSTEM_LIBDIR=\"$(system_libdir)\"
10 12
 
11 13
 bin_PROGRAMS = pkgconf
12 14
 lib_LTLIBRARIES = libpkgconf.la

+ 1
- 1
configure.ac View File

@@ -45,5 +45,5 @@ AC_PROG_CC
45 45
 AC_PROG_INSTALL
46 46
 AC_PROG_LN_S
47 47
 
48
-AC_CONFIG_FILES([Makefile Kyuafile tests/Kyuafile tests/test_env.sh])
48
+AC_CONFIG_FILES([Makefile Kyuafile libpkgconf.pc tests/Kyuafile tests/test_env.sh])
49 49
 AC_OUTPUT

+ 11
- 0
libpkgconf.pc.in View File

@@ -0,0 +1,11 @@
1
+prefix=@prefix@
2
+exec_prefix=${prefix}
3
+includedir=@includedir@
4
+libdir=@libdir@
5
+
6
+Name: libpkgconf
7
+Description: a library for accessing and manipulating development framework configuration
8
+URL: http://github.com/pkgconf/pkgconf
9
+Version: @PACKAGE_VERSION@
10
+CFlags: -I${includedir}/pkgconf
11
+Libs: -L${libdir} -lpkgconf