wok-undigest annotate sdcc/receipt @ rev 343

brasero: fix genpkg_rules (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Jun 15 16:18:23 2011 +0200 (2011-06-15)
parents
children 8964f52235e3
rev   line source
pascal@110 1 # SliTaz package receipt.
pascal@110 2
pascal@110 3 PACKAGE="sdcc"
pascal@110 4 VERSION="2.9.0"
pascal@110 5 CATEGORY="development"
pascal@110 6 SHORT_DESC="Retargettable C compiler for 8051, Z80 and 68HC08."
pascal@110 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@110 8 TARBALL="$PACKAGE-src-$VERSION.tar.bz2"
pascal@110 9 WEB_SITE="http://sdcc.sourceforge.net/"
pascal@110 10 WGET_URL="$SF_MIRROR/$PACKAGE/$PACKAGE/$VERSION/$TARBALL"
pascal@110 11 TAGS="cross compiler"
pascal@110 12
pascal@110 13 # Rules to configure and make the package.
pascal@110 14 compile_rules()
pascal@110 15 {
pascal@110 16 mv $PACKAGE $src 2> /dev/null
pascal@110 17 cd $src
pascal@110 18 find -name getline.h | xargs sed -i \
pascal@110 19 's/char.*getline/#define getline sdcc_getline\nchar *sdcc_getline/'
pascal@110 20 ./configure --prefix=/usr --infodir=/usr/share/info \
pascal@110 21 --mandir=/usr/share/man \
pascal@110 22 $CONFIGURE_ARGS &&
pascal@110 23 make &&
pascal@110 24 make DESTDIR=$PWD/_pkg install
pascal@110 25 }
pascal@110 26
pascal@110 27 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@110 28 genpkg_rules()
pascal@110 29 {
pascal@110 30 cp -a $_pkg/usr $fs
pascal@110 31 }
pascal@110 32