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/muparser/default.bash
2014-08-11 23:39:50 +01:00

48 lines
921 B
Bash

version=\
(
'v2_2_3'
)
url=\
(
"http://downloads.sourceforge.net/muparser/muparser_$version.zip"
)
md5=\
(
'9de40ec1dab5bd2787ee344fce5846ad'
)
configure()
{
# Unzip has some issue:
../muparser_$version/configure \
--prefix="${cfg_dir_toolchain_sysroot}/usr" \
--target=$cfg_target_canonical \
--host=$cfg_target_canonical \
--build=$cfg_host_canonical \
--enable-shared \
--enable-samples=no
}
build()
{
$cmd_make
}
host_install()
{
$cmd_make install
# One step is missing:
$cmd_mkdir "${cfg_dir_toolchain_sysroot}/usr/include/muParser"
mv -v ${cfg_dir_toolchain_sysroot}/usr/include/muParser*.* ${cfg_dir_toolchain_sysroot}/usr/include/muParser
}
target_install()
{
for f in "${cfg_dir_toolchain_sysroot}/usr/lib/"libmuparser.so*; do
$cmd_target_strip "$f" -o "${cfg_dir_rootfs}/lib/$(basename "$f")"
done
}