wok-next annotate libtirpc/receipt @ rev 20577
More fix libtool
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat Apr 14 03:34:33 2018 +0300 (2018-04-14) |
parents | a429b73c2d89 |
children | 5841522533ec |
rev | line source |
---|---|
al@20445 | 1 # SliTaz package receipt v2. |
pascal@6249 | 2 |
pascal@6249 | 3 PACKAGE="libtirpc" |
al@20445 | 4 VERSION="1.0.2" |
pascal@6249 | 5 CATEGORY="system-tools" |
al@20445 | 6 SHORT_DESC="Transport-Independent RPC library" |
pascal@6249 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15482 | 8 LICENSE="BSD" |
al@20445 | 9 WEB_SITE="http://libtirpc.sourceforge.net/" |
al@20445 | 10 LFS="http://www.linuxfromscratch.org/blfs/view/stable/basicnet/libtirpc.html" |
al@20445 | 11 |
pascal@6249 | 12 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
pascal@6249 | 13 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" |
pascal@6249 | 14 |
al@20445 | 15 SPLIT="libtirpc-dev" |
al@20445 | 16 |
al@20445 | 17 compile_rules() { |
al@20445 | 18 # Fix a build issue with glibc-2.26: |
al@20445 | 19 sed -i '/stdlib.h/a#include <stdint.h>' src/xdr_sizeof.c |
al@20445 | 20 |
al@20445 | 21 # Fix a symbol name needed by NIS libraries: |
al@20445 | 22 sed -i '/key_secret_is/s|secret|secretkey|' src/libtirpc.map |
al@20445 | 23 |
al@20445 | 24 ./configure \ |
al@20445 | 25 --disable-static \ |
al@20445 | 26 --disable-gssapi \ |
al@20445 | 27 $CONFIGURE_ARGS && |
al@20534 | 28 make && |
al@20534 | 29 make install || return 1 |
al@20445 | 30 |
al@20445 | 31 mkdir -p $install/lib |
al@20445 | 32 mv -v $install/usr/lib/libtirpc.so.* $install/lib |
al@20445 | 33 ln -sfv ../../lib/$(readlink $install/lib/libtirpc.so.3) $install/usr/lib/libtirpc.so |
pascal@6249 | 34 } |
pascal@6249 | 35 |
al@20445 | 36 genpkg_rules() { |
al@20445 | 37 case $PACKAGE in |
al@20445 | 38 libtirpc) copy @std;; |
al@20445 | 39 *-dev) copy @dev;; |
al@20445 | 40 esac |
pascal@6249 | 41 } |