summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrien Destugues <pulkomandy@pulkomandy.tk>2014-06-08 16:12:27 (GMT)
committer Vincent Sanders <vince@kyllikki.org>2015-03-21 21:45:04 (GMT)
commitcdde8cbaed88f06c373f6d5add7273fd97e77d21 (patch)
tree589976a42f15cf27b3f746b0a7653fb4787c843a
parent6906b39b909b3248434c63f2ebeb380543911546 (diff)
downloadbuildsystem-cdde8cbaed88f06c373f6d5add7273fd97e77d21.tar.gz
buildsystem-cdde8cbaed88f06c373f6d5add7273fd97e77d21.tar.bz2
Add support for INCLUDEDIR in pkg-config files.
-rw-r--r--makefiles/Makefile.tools5
-rw-r--r--makefiles/Makefile.top1
2 files changed, 6 insertions, 0 deletions
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)#' \