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
2014-08-11 23:39:49 +01:00

54 lines
856 B
Bash

version=\
(
'5.0-20140118'
)
url=\
(
"ftp://invisible-island.net/cdk/cdk-$version.tgz"
)
md5=\
(
'd2687e5558b6d6be5fd39328e5c86033'
)
requires=\
(
'ncurses/default'
)
configure()
{
# --target="${cfg_target_canonical}" \
./configure \
--prefix="$cfg_dir_toolchain_sysroot/usr" \
--host="${cfg_target_canonical}" \
--build="${cfg_host_canonical}" \
--target="${cfg_target_canonical}" \
--with-ncursesw \
--with-shared \
}
build()
{
$cmd_make
}
host_install()
{
$cmd_make install
}
target_install()
{
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
}