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/db/default.bash
2015-10-26 17:56:05 +00:00

44 lines
724 B
Bash

version=\
(
'4.8.30'
)
url=\
(
"ftp://mirror.ovh.net/gentoo-distfiles/distfiles/db-$version.tar.gz"
)
md5=\
(
'f80022099c5742cd179343556179aa8c'
)
configure()
{
mkdir -p ../build && cd ../build &&
../db-$version/dist/configure \
--prefix="$cfg_dir_toolchain_sysroot/usr" \
--enable-cxx \
--target=$cfg_target_canonical \
--host=$cfg_target_canonical \
--build=$cfg_host_canonical
}
build()
{
$cmd_make -C ../build
}
host_install()
{
$cmd_make -C ../build install
}
target_install()
{
cp -a "$cfg_dir_toolchain_sysroot/usr/lib/"libdb*so $cfg_dir_rootfs/lib
for f in "$cfg_dir_rootfs/lib/"libdb*so; do
$cmd_target_strip "$f"
done
}