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

60 lines
1.1 KiB
Bash
Raw Normal View History

2013-07-13 17:19:22 +01:00
version=\
(
2014-08-07 15:25:29 +01:00
'1.5.1'
2013-07-13 17:19:22 +01:00
)
url=\
(
2015-10-26 17:43:54 +00:00
"http://archive.apache.org/dist/apr/apr-$version.tar.bz2"
2013-07-13 17:19:22 +01:00
)
md5=\
(
2015-10-26 17:55:54 +00:00
'5486180ec5a23efb5cae6d4292b300ab'
2013-07-13 17:19:22 +01:00
)
maintainer=\
(
'Ricardo Martins <rasm@fe.up.pt>'
)
configure()
{
export ac_cv_file__dev_zero='yes'
export ac_cv_func_setpgrp_void='yes'
export apr_cv_process_shared_works='yes'
export apr_cv_mutex_robust_shared='no'
export apr_cv_tcp_nodelay_with_cork='yes'
export ac_cv_sizeof_struct_iovec='8'
export apr_cv_mutex_recursive='yes'
"../apr-$version/configure" \
--target="$cfg_target_canonical" \
--host="$cfg_target_canonical" \
--build="$cfg_host_canonical" \
--prefix="$cfg_dir_toolchain_sysroot/usr" \
--disable-static
}
build()
{
$cmd_make
}
host_install()
{
$cmd_make install
}
target_install()
{
2013-07-13 18:16:26 +01:00
# Libs:
for f in "$cfg_dir_toolchain_sysroot/usr/lib/libapr"*".so"*; 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
}