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

71 lines
1.4 KiB
Bash
Raw Permalink Normal View History

2013-07-13 17:19:22 +01:00
version=\
(
2013-07-13 18:16:05 +01:00
'0.10.0'
2013-07-13 17:19:22 +01:00
)
url=\
(
2013-07-13 18:16:05 +01:00
"http://www.eu.apache.org/dist/logging/log4cxx/0.10.0/apache-log4cxx-0.10.0.tar.gz"
2013-07-13 17:19:22 +01:00
)
md5=\
(
2013-07-13 18:16:05 +01:00
'b30ffb8da3665178e68940ff7a61084c'
2013-07-13 17:19:22 +01:00
)
requires=\
(
2013-07-13 18:16:05 +01:00
'apr/default'
'apr-util/default'
2013-07-13 17:19:22 +01:00
)
post_unpack()
{
patches=$(ls "$pkg_dir/patches-$version/"*.patch 2>/dev/null)
2013-07-13 17:19:22 +01:00
if [ -n "$patches" ]; then
cat $patches | patch -p1
fi
}
configure()
{
2013-07-13 18:16:05 +01:00
./configure \
--prefix="${cfg_dir_toolchain_sysroot}/usr" \
--target=${cfg_target_canonical} \
--host=${cfg_target_canonical} \
--build=${cfg_host_canonical} \
--with-apr="${cfg_dir_toolchain_sysroot}/usr" \
--with-apr-util="${cfg_dir_toolchain_sysroot}/usr" \
--enable-shared \
--disable-static \
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()
{
2013-07-13 18:16:05 +01:00
$cmd_make
2013-07-13 17:19:22 +01:00
}
host_install()
{
2013-07-13 18:16:05 +01:00
cd ../log4cpp
$cmd_make install
2013-07-13 17:19:22 +01:00
}
target_install()
{
2013-07-13 18:16:05 +01:00
# Libs:
for f in "$cfg_dir_toolchain_sysroot/usr/lib/"liblog4cxx*.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
}