hvbuild()
{
${HVMAKE}
- ${HVMAKE} install
+
+ if [ -n "${INSTALL_DIR}" ]; then
+ ${HVMAKE} DESTDIR=${INSTALL_DIR} install
+ else
+ ${HVMAKE} install
+ fi
}
# Default patch applying function
# Options:
# -c Do not decompress package
# -d DIR Change to directory DIR before configuring and building.
+# -i DIR Installation directory (for cross-compilation, stage1)
# -j Disable parallel make for this package
# -l Unique identification label in 'install.log'
# (default is package name and version)
export SRC_DIR="" # Global variable, source directory
export BUILD_DIR="" # Global variable, build directory
export SRC_SUBDIR="" # Global variable
+ export INSTALL_DIR="" # Global variable, installation directory
export ENABLE_DEPENDENCY_TRACKING="0"
local HVMAKE_ORIG=${HVMAKE}
- while getopts "cd:jl:m:s:t" flag ;do
+ while getopts "cd:i:jl:m:s:t" flag ;do
case ${flag} in
c)
# Do not decompress package
d)
SRC_SUBDIR=${OPTARG}
;;
+ i)
+ INSTALL_DIR=${OPTARG}
+ ;;
j)
# Disable parallel make only for this package
HVMAKE="make"