summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2017-03-08 05:33:26 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2017-03-17 04:00:53 +0100
commit53065329595d0de0279de9aeda373fa3a9f973db (patch)
treefc3dc2c5aec6dc50ca0e7dd22991bf03eac7b317
parent6157a0a8b6189b84f81e6ac35ec638761f43b159 (diff)
mk/host-bottom: Introduce HOST_CONFIG_STYLE
This is helpful when a package could use HOST_STYLE=auto but doesn't ship a conforming configure script. In that case, one can now set | HOST_STYLE=auto | HOST_CONFIG_STYLE=manual and define a custom host-configure target while still making use of the auto targets for anything else. Signed-off-by: Phil Sutter <phil@nwl.cc>
-rw-r--r--mk/host-bottom.mk12
1 files changed, 7 insertions, 5 deletions
diff --git a/mk/host-bottom.mk b/mk/host-bottom.mk
index 6fcd78e88..21a28a051 100644
--- a/mk/host-bottom.mk
+++ b/mk/host-bottom.mk
@@ -3,6 +3,8 @@
host-extract: ${_HOST_PATCH_COOKIE}
+HOST_CONFIG_STYLE?= ${HOST_STYLE}
+
hostpre-configure:
host-configure:
${_HOST_CONFIGURE_COOKIE}: ${_HOST_PATCH_COOKIE}
@@ -17,7 +19,7 @@ ifneq (,$(filter autoreconf,${AUTOTOOL_STYLE}))
@touch ${WRKDIR}/.autoreconf_done
endif
@${MAKE} hostpre-configure $(MAKE_TRACE)
-ifeq (${HOST_STYLE},)
+ifeq (${HOST_CONFIG_STYLE},)
@$(CMD_TRACE) "configuring.. "
cd ${WRKBUILD}; \
env ${HOST_CONFIGURE_ENV} \
@@ -31,7 +33,7 @@ ifeq (${HOST_STYLE},)
--sysconfdir=${STAGING_HOST_DIR}/etc \
${HOST_CONFIGURE_ARGS} $(MAKE_TRACE)
endif
-ifeq (${HOST_STYLE},auto)
+ifeq (${HOST_CONFIG_STYLE},auto)
@$(CMD_TRACE) "configuring.. "
cd ${WRKBUILD}; \
env ${HOST_CONFIGURE_ENV} \
@@ -51,13 +53,13 @@ ifeq (${HOST_STYLE},auto)
--disable-nls \
${HOST_CONFIGURE_ARGS} $(MAKE_TRACE)
endif
-ifeq (${HOST_STYLE},cmake)
+ifeq (${HOST_CONFIG_STYLE},cmake)
@$(CMD_TRACE) "configuring cmake.. "
cd ${WRKBUILD}; PATH='${HOST_PATH}' \
cmake -Wno-dev -DCMAKE_INSTALL_PREFIX:PATH=/usr \
${HOST_CMAKE_FLAGS} ${WRKSRC} $(MAKE_TRACE)
endif
-ifeq (${HOST_STYLE},perl)
+ifeq (${HOST_CONFIG_STYLE},perl)
@$(CMD_TRACE) "configuring perl module.. "
cd ${WRKBUILD}; \
PATH='${HOST_PATH}' \
@@ -66,7 +68,7 @@ ifeq (${HOST_STYLE},perl)
$(HOST_PERL_ENV) \
perl-host Makefile.PL ${HOST_CONFIGURE_ARGS}
endif
-ifeq (${HOST_STYLE},manual)
+ifeq (${HOST_CONFIG_STYLE},manual)
@$(CMD_TRACE) "configuring.. "
${MAKE} host-configure $(MAKE_TRACE)
endif