libtirpc: added library.

This commit is contained in:
Ricardo Martins 2015-02-08 20:02:18 +00:00
parent 2ccad90ad4
commit 4352339fe0

View File

@ -0,0 +1,56 @@
version=\
(
'0.2.5'
)
url=\
(
"http://downloads.sourceforge.net/libtirpc/$version/libtirpc-$version.tar.bz2"
)
md5=\
(
'8cd41a5ef5a9b50d0fb6abb98af15368'
)
maintainer=\
(
'Ricardo Martins <rasm@fe.up.pt>'
)
configure()
{
"../libtirpc-$version/configure" \
--target="$cfg_target_canonical" \
--host="$cfg_target_canonical" \
--build="$cfg_host_canonical" \
--prefix="$cfg_dir_toolchain_sysroot/usr" \
--disable-gssapi \
--disable-ipv6 \
--disable-static \
--enable-shared
}
build()
{
$cmd_make
}
host_install()
{
$cmd_make install
}
target_install()
{
$cmd_mkdir "$cfg_dir_rootfs/etc"
$cmd_cp "doc/netconfig" "$cfg_dir_rootfs/etc/netconfig"
for f in "$cfg_dir_toolchain_sysroot/usr/lib/"libtirpc*so*; do
if [ -L "$f" ]; then
cp -vd "$f" "$cfg_dir_rootfs/lib"
else
$cmd_target_strip -v "$f" -o "$cfg_dir_rootfs/lib/$(basename "$f")"
fi
done
}