dune: added package for NECSAVE.

This commit is contained in:
Ricardo Martins 2015-11-03 13:09:17 +00:00 committed by Jose Pinto
parent 699fa27067
commit 3496db07d2
1 changed files with 37 additions and 0 deletions

37
rules/dune/default.bash Normal file
View File

@ -0,0 +1,37 @@
version=\
(
'master'
)
requires=\
(
'cmake/host'
)
download()
{
git clone "git@github.com:LSTS/dune.git" dune &&
cd dune && git checkout "$version" && cd - &&
git clone "git@git.lsts.pt:dune-private.git" dune/private &&
cd dune/private && git checkout "$version" && cd -
}
configure()
{
$cmd_mkdir build &&
cd build &&
cmake \
-DCMAKE_INSTALL_PREFIX="$cfg_dir_toolchain_sysroot/usr" \
-DCROSS="$cmd_target_cc" \
../dune
}
build()
{
$cmd_make -C build
}
host_install()
{
$cmd_make -C build install
}