@@ -99,6 +99,14 @@ cases, typical packages will therefore only use a few of them.
* +LIBFOO_CONF_OPT+, to specify additional configure
options to pass to the configure script. By default, empty.
+* +LIBFOO_CONF_PREFIX+, to specify the installation directory for
+ architecture-independent files, i.e. the argument to --prefix.
+ By default, /usr.
+
+* +LIBFOO_CONF_EXEC_PREFIX+, to specify the installation directory for
+ architecture-dependent files, i.e. the argument to --exec-prefix.
+ By default, the value given for +LIBFOO_CONF_PREFIX+.
+
* +LIBFOO_MAKE+, to specify an alternate +make+
command. This is typically useful when parallel make is enabled in
the configuration (using +BR2_JLEVEL+) but that this
@@ -95,7 +95,8 @@ $(2)_AUTORECONF_OPT ?= $($(3)_AUTORECONF_OPT)
$(2)_INSTALL_OPT ?= install
$(2)_INSTALL_STAGING_OPT ?= DESTDIR=$$(STAGING_DIR) install
$(2)_INSTALL_TARGET_OPT ?= DESTDIR=$$(TARGET_DIR) install
-
+$(2)_CONF_PREFIX ?= /usr
+$(2)_CONF_EXEC_PREFIX ?= $$($(2)_CONF_PREFIX)
#
# Configure step. Only define it if not already defined by the package
@@ -115,8 +116,8 @@ define $(2)_CONFIGURE_CMDS
--target=$$(GNU_TARGET_NAME) \
--host=$$(GNU_TARGET_NAME) \
--build=$$(GNU_HOST_NAME) \
- --prefix=/usr \
- --exec-prefix=/usr \
+ --prefix=$$($$(PKG)_CONF_PREFIX) \
+ --exec-prefix=$$($$(PKG)_CONF_EXEC_PREFIX) \
--sysconfdir=/etc \
--program-prefix="" \
--disable-gtk-doc \