wok-next annotate atftp/receipt @ rev 19684
atftp: use gnu89 inline
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Apr 10 08:35:05 2017 +0200 (2017-04-10) |
parents | 11b5e93cb5f2 |
children | c4e53a39395a |
rev | line source |
---|---|
pascal@7223 | 1 # SliTaz package receipt. |
pascal@7223 | 2 |
pascal@7223 | 3 PACKAGE="atftp" |
pascal@7223 | 4 VERSION="0.7" |
pascal@7223 | 5 CATEGORY="network" |
pascal@7223 | 6 SHORT_DESC="Advanced Trivial File Transport Protocol client." |
pascal@7223 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15201 | 8 LICENSE="GPL2" |
al@19275 | 9 WEB_SITE="http://freshmeat.net/projects/atftp/" |
pascal@7223 | 10 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@7223 | 11 WGET_URL="http://downloads.openwrt.org/sources/$TARBALL" |
pankso@15985 | 12 HOST_ARCH="i486 arm" |
erjo@9889 | 13 |
erjo@9889 | 14 DEPENDS="ncurses readline" |
erjo@9889 | 15 BUILD_DEPENDS="pcre-dev readline-dev" |
pascal@7223 | 16 |
pascal@7223 | 17 # Rules to configure and make the package. |
pascal@7223 | 18 compile_rules() |
pascal@7223 | 19 { |
pascal@7223 | 20 sed -i -e 's/char \*__entry) __THROW/char *__entry))/' \ |
pascal@7223 | 21 -e 's/^_*argz_next/__NTH(&/' argz.h |
pascal@7223 | 22 sed -i 's/CLK_TCK/CLOCKS_PER_SEC/' stats.c |
pascal@19684 | 23 sed -i 's/D_REENTRANT/& -std=gnu89/' configure* |
pascal@7223 | 24 ./configure --prefix=/usr --infodir=/usr/share/info \ |
pascal@7223 | 25 --mandir=/usr/share/man \ |
pascal@7223 | 26 $CONFIGURE_ARGS && |
pascal@7223 | 27 make && |
erjo@9889 | 28 make DESTDIR=$DESTDIR install |
pascal@7223 | 29 } |
pascal@7223 | 30 |
pascal@7223 | 31 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@7223 | 32 genpkg_rules() |
pascal@7223 | 33 { |
pascal@7223 | 34 mkdir -p $fs/usr |
pascal@15201 | 35 cp -a $install/usr/bin $fs/usr |
pascal@7223 | 36 } |