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

60 lines
949 B
Bash
Raw Normal View History

2013-07-13 17:19:22 +01:00
version=\
(
2015-02-08 13:31:24 +00:00
"1.7.3.0"
2013-07-13 17:19:22 +01:00
)
url=\
(
"http://www.dest-unreach.org/socat/download/socat-$version.tar.bz2"
)
md5=\
(
2015-02-08 13:31:24 +00:00
"b607edb65bc6c57f4a43f06247504274"
2013-07-13 17:19:22 +01:00
)
maintainer=\
(
"Ricardo Martins <rasm@fe.up.pt>"
)
2015-02-08 13:31:24 +00:00
post_unpack()
{
patches=$(ls "$pkg_dir"/patches/*.patch)
cd "../socat-$version"
if [ -n "$patches" ]; then
cat $patches | patch -p1
fi
}
2013-07-13 17:19:22 +01:00
configure()
{
export sc_cv_sys_crdly_shift=9
export sc_cv_sys_tabdly_shift=11
export sc_cv_sys_csize_shift=4
export ac_cv_ispeed_offset=13
2015-02-08 13:31:24 +00:00
"../socat-$version/configure" \
2013-07-13 17:19:22 +01:00
--prefix="$cfg_dir_toolchain_sysroot/usr" \
--target=$cfg_target_canonical \
--host=$cfg_target_canonical \
2015-02-08 13:31:24 +00:00
--build=$cfg_host_canonical \
--disable-static \
--enable-shared
2013-07-13 17:19:22 +01:00
}
build()
{
$cmd_make
}
host_install()
{
$cmd_make install
}
target_install()
{
$cmd_target_strip socat -o "$cfg_dir_rootfs/usr/bin/socat"
}