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/apr-util/ros.bash

65 lines
1.2 KiB
Bash
Raw Normal View History

2013-07-13 17:19:22 +01:00
version=\
(
'1.3.12'
)
url=\
(
2015-10-26 17:43:50 +00:00
"http://archive.apache.org/dist/apr/apr-util-$version.tar.bz2"
2013-07-13 17:19:22 +01:00
)
md5=\
(
'0f671b037ca62751a8a7005578085560'
)
requires=\
(
'apr/ros'
)
configure()
{
2013-07-13 18:15:44 +01:00
cd apr-util-${version}
./configure \
--prefix="${cfg_dir_toolchain_sysroot}/usr" \
--target="${cfg_target_canonical}" \
--host="${cfg_target_canonical}" \
--build="${cfg_host_canonical}" \
--enable-shared \
--disable-static \
--without-pgsql \
--without-sqlite2 \
--without-sqlite3 \
--with-apr="${cfg_dir_toolchain_sysroot}/usr" \
--with-expat=builtin \
ac_cv_file__dev_zero=yes \
ac_cv_func_setpgrp_void=yes \
apr_cv_tcp_nodelay_with_cork=no \
apr_cv_process_shared_works=no \
apr_cv_mutex_robust_shared=no \
ac_cv_sizeof_struct_iovec=8
2013-07-13 17:19:22 +01:00
}
build()
{
$cmd_make
}
host_install()
{
$cmd_make install
}
target_install()
{
2013-07-13 18:15:44 +01:00
# Libs: @todo
for f in "$cfg_dir_toolchain_sysroot/usr/lib/"libaprutil-*; do
if [ -L "$f" ]; then
$cmd_cp "$f" "$cfg_dir_rootfs/usr/lib"
else
$cmd_target_strip -v "$f" -o "$cfg_dir_rootfs/usr/lib/$(basename "$f")"
fi
done
2013-07-13 17:19:22 +01:00
}