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

58 lines
924 B
Bash
Raw Normal View History

2013-07-13 17:19:22 +01:00
version=\
(
'1.5.0'
)
url=\
(
"ftp://ftp.gnupg.org/gcrypt/libgcrypt/libgcrypt-$version.tar.bz2"
)
md5=\
(
'693f9c64d50c908bc4d6e01da3ff76d8'
)
maintainer=\
(
'Ricardo Martins <rasm@fe.up.pt>'
)
requires=\
(
'libgpg-error/default'
)
configure()
{
"../libgcrypt-$version/configure" \
--target="$cfg_target_canonical" \
--host="$cfg_target_canonical" \
--build="$cfg_host_canonical" \
--prefix="$cfg_dir_toolchain_sysroot/usr" \
--disable-asm \
--disable-static \
--enable-shared
}
build()
{
$cmd_make -j1
}
host_install()
{
$cmd_make install
}
target_install()
{
for f in "$cfg_dir_toolchain_sysroot/usr/lib/"libgcrypt*.so*; do
if [ -L "$f" ]; then
cp -vd "$f" "$cfg_dir_rootfs/usr/lib"
else
$cmd_target_strip -v "$f" -o "$cfg_dir_rootfs/usr/lib/$(basename "$f")"
fi
done
}