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/cdk/default.bash

54 lines
856 B
Bash
Raw Normal View History

2013-07-13 17:19:22 +01:00
version=\
(
2014-08-07 15:24:25 +01:00
'5.0-20140118'
2013-07-13 17:19:22 +01:00
)
url=\
(
2014-08-07 15:24:25 +01:00
"ftp://invisible-island.net/cdk/cdk-$version.tgz"
2013-07-13 17:19:22 +01:00
)
md5=\
(
2014-08-07 15:24:25 +01:00
'd2687e5558b6d6be5fd39328e5c86033'
2013-07-13 17:19:22 +01:00
)
requires=\
(
'ncurses/default'
)
configure()
{
2014-08-07 15:24:25 +01:00
# --target="${cfg_target_canonical}" \
./configure \
--prefix="$cfg_dir_toolchain_sysroot/usr" \
--host="${cfg_target_canonical}" \
--build="${cfg_host_canonical}" \
2013-07-13 17:19:22 +01:00
--target="${cfg_target_canonical}" \
2014-08-07 15:24:25 +01:00
--with-ncursesw \
--with-shared \
2013-07-13 17:19:22 +01:00
}
build()
{
2014-08-07 15:24:25 +01:00
$cmd_make
2013-07-13 17:19:22 +01:00
}
host_install()
{
2014-08-07 15:24:25 +01:00
$cmd_make install
2013-07-13 17:19:22 +01:00
}
target_install()
{
2014-08-07 15:24:25 +01:00
for f in "$cfg_dir_toolchain_sysroot/usr/lib/libcdk"* ; do
if [ -L "$f" ]; then
cp -av "$f" "$cfg_dir_rootfs/usr/lib"
else
$cmd_target_strip -v "$f" -o "$cfg_dir_rootfs/usr/lib/$(basename "$f")"
fi
done
2013-07-13 17:19:22 +01:00
}