48 lines
921 B
Bash
48 lines
921 B
Bash
|
version=\
|
||
|
(
|
||
|
"v2_2_0"
|
||
|
)
|
||
|
|
||
|
url=\
|
||
|
(
|
||
|
"http://downloads.sourceforge.net/muparser/muparser_$version.zip"
|
||
|
)
|
||
|
|
||
|
md5=\
|
||
|
(
|
||
|
"27024148b389b98f1821252a7ba87b19"
|
||
|
)
|
||
|
|
||
|
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
|
||
|
}
|