From cdde8cbaed88f06c373f6d5add7273fd97e77d21 Mon Sep 17 00:00:00 2001 From: Adrien Destugues Date: Sun, 8 Jun 2014 18:12:27 +0200 Subject: Add support for INCLUDEDIR in pkg-config files. --- makefiles/Makefile.tools | 5 +++++ makefiles/Makefile.top | 1 + 2 files changed, 6 insertions(+) diff --git a/makefiles/Makefile.tools b/makefiles/Makefile.tools index 8a104d7..74bc17f 100644 --- a/makefiles/Makefile.tools +++ b/makefiles/Makefile.tools @@ -22,6 +22,8 @@ # (defaults to /usr/local) # LIBDIR Library installation directory in ${PREFIX} # (defaults to lib) +# INCLUDEDIR Header installation directory in ${PREFIX} +# (defaults to include) # ############################################################################### @@ -241,6 +243,9 @@ PREFIX ?= /usr/local # Default libdir LIBDIR ?= lib +# Default includedir +INCLUDEDIR ?= include + ############################################################################### # Tool defaults ############################################################################### diff --git a/makefiles/Makefile.top b/makefiles/Makefile.top index 38922d1..07d3373 100644 --- a/makefiles/Makefile.top +++ b/makefiles/Makefile.top @@ -295,6 +295,7 @@ define install_pkgconfig -e 's#MAJOR#$(major-version)#' \ -e 's#MINOR#$(minor-version)#' \ -e 's#PATCH#$(patch-version)#' \ + -e 's#INCLUDEDIR#$(INCLUDEDIR)#' \ -e 's#VERSION#$(COMPONENT_VERSION)#' \ -e 's#REQUIRED#$(__required)#' \ -e 's#LIBRARIES#$(__libraries)#' \ -- cgit v1.2.3