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/packages/cdk/default.bash
2013-07-13 17:19:22 +01:00

54 lines
786 B
Bash

version=\
(
"5.0-20120323"
)
url=\
(
"ftp://invisible-island.net/cdk/cdk.tar.gz"
)
md5=\
(
"929969d06ce034e862976bb7d1a36b25"
)
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
}