libtirpc: added library.
This commit is contained in:
parent
2ccad90ad4
commit
4352339fe0
56
rules/libtirpc/default.bash
Normal file
56
rules/libtirpc/default.bash
Normal 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
|
||||
}
|
Reference in New Issue
Block a user