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

44 lines
724 B
Bash
Raw Normal View History

2013-07-13 17:19:22 +01:00
version=\
(
"4.8.26"
)
url=\
(
"ftp://mirror.ovh.net/gentoo-distfiles/distfiles/db-$version.tar.gz"
)
md5=\
(
"3476bac9ec0f3c40729c8a404151d5e3"
)
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
}