wok-next annotate net-tools/receipt @ rev 14362
ffmpeg: add avresample
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Apr 20 14:34:09 2013 +0200 (2013-04-20) |
parents | |
children | 3765f181a6d5 |
rev | line source |
---|---|
pascal@11215 | 1 # SliTaz package receipt. |
pascal@11215 | 2 |
pascal@11215 | 3 PACKAGE="net-tools" |
pascal@11215 | 4 VERSION="1.60" |
pascal@11215 | 5 CATEGORY="network" |
pascal@11215 | 6 SHORT_DESC="Network toolbox." |
pascal@11215 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@11215 | 8 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
pascal@11215 | 9 WEB_SITE="http://www.tazenda.demon.co.uk/phil/net-tools" |
pascal@11215 | 10 WGET_URL="$WEB_SITE/$TARBALL" |
pascal@11215 | 11 |
pascal@11215 | 12 # Rules to configure and make the package. |
pascal@11215 | 13 compile_rules() |
pascal@11215 | 14 { |
pascal@11215 | 15 cd $src |
pascal@11215 | 16 mkdir _pkg |
pascal@11215 | 17 enabled="HAVE_AFUNIX HAVE_AFINET HAVE_HWETHER HAVE_HWPPP \ |
pascal@11215 | 18 HAVE_HWTUNNEL HAVE_FW_MASQUERADE HAVE_IP_TOOLS HAVE_MII" |
pascal@11215 | 19 sed '/HAVE_/!d;s/.*\(HAVE.*\)../\1/' < config.in | while read name; do |
pascal@11215 | 20 val=0 |
pascal@11215 | 21 case " $enabled " in |
pascal@11215 | 22 *\ $name\ *) val=1 ;; |
pascal@11215 | 23 esac |
pascal@11215 | 24 echo "#define $name $val" |
pascal@11215 | 25 echo "$name=$val" 1>&2 |
pascal@11215 | 26 done > config.h 2> config.make |
pascal@11215 | 27 sed -i 's/default:/&;/' hostname.c lib/inet_sr.c |
pascal@11215 | 28 sed -i '/"usage/,/10baseT/s/.*/&\\n\\/' mii-tool.c |
pascal@11215 | 29 make && |
pascal@11215 | 30 make BASEDIR=$PWD/_pkg install |
pascal@11215 | 31 } |
pascal@11215 | 32 |
pascal@11215 | 33 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@11215 | 34 genpkg_rules() |
pascal@11215 | 35 { |
pascal@11215 | 36 cp -a $_pkg/bin $fs |
pascal@11215 | 37 cp -a $_pkg/sbin $fs |
pascal@11215 | 38 } |