This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
lsts_glued/rules/cmake/host.bash
Ricardo Martins 38c382470d Fixed bug #1.
2014-08-10 19:49:09 +01:00

38 lines
555 B
Bash

version=\
(
"2.8.8"
)
version_major=\
(
"$(echo $version | cut -d. -f1-2)"
)
url=\
(
"http://www.cmake.org/files/v$version_major/cmake-$version.tar.gz"
)
md5=\
(
"ba74b22c788a0c8547976b880cd02b17"
)
configure()
{
./configure \
--prefix="$cfg_dir_toolchain"
}
build()
{
# Remove the trailling 'ncurses' folder from the CURSES_INCLUDE_PATH
cat CMakeCache.txt | sed '/^CURSES_INCLUDE_PATH/s/\/ncurses$/\//g' > CMakeCache.txt &&
$cmd_make
}
host_install()
{
$cmd_make DESTDIR="$cfg_dir_toolchain" install
}