From 4352339fe0d625910c6a6362e62d1335b6988c06 Mon Sep 17 00:00:00 2001 From: Ricardo Martins Date: Sun, 8 Feb 2015 20:02:18 +0000 Subject: [PATCH] libtirpc: added library. --- rules/libtirpc/default.bash | 56 +++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 rules/libtirpc/default.bash diff --git a/rules/libtirpc/default.bash b/rules/libtirpc/default.bash new file mode 100644 index 0000000..8644a8b --- /dev/null +++ b/rules/libtirpc/default.bash @@ -0,0 +1,56 @@ +version=\ +( + '0.2.5' +) + +url=\ +( + "http://downloads.sourceforge.net/libtirpc/$version/libtirpc-$version.tar.bz2" +) + +md5=\ +( + '8cd41a5ef5a9b50d0fb6abb98af15368' +) + +maintainer=\ +( + 'Ricardo Martins ' +) + +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 +}