wok-current annotate h8300-binutils/receipt @ rev 2176
Add h8300-binutils, h8300-gcc3 and h8300-gdb (thanks Matthew)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Feb 08 16:52:33 2009 +0000 (2009-02-08) |
parents | |
children | c9ccc46854e4 |
rev | line source |
---|---|
pascal@2176 | 1 # SliTaz package receipt. |
pascal@2176 | 2 |
pascal@2176 | 3 PACKAGE="h8300-binutils" |
pascal@2176 | 4 SOURCE="binutils" |
pascal@2176 | 5 VERSION="2.16.1" |
pascal@2176 | 6 CATEGORY="development" |
pascal@2176 | 7 SHORT_DESC="binutils targeting the H8/300" |
pascal@2176 | 8 MAINTAINER="rcx@zoominternet.net" |
pascal@2176 | 9 DEPENDS="" |
pascal@2176 | 10 BUILD_DEPENDS="make gcc bison flex" |
pascal@2176 | 11 TARBALL="$SOURCE-$VERSION.tar.bz2" |
pascal@2176 | 12 WEB_SITE="http://www.gnu.org/software/binutils/" |
pascal@2176 | 13 WGET_URL="$GNU_MIRROR/$SOURCE/$TARBALL" |
pascal@2176 | 14 |
pascal@2176 | 15 # Rules to configure and make the package. |
pascal@2176 | 16 compile_rules() |
pascal@2176 | 17 { |
pascal@2176 | 18 cd $src |
pascal@2176 | 19 ./configure \ |
pascal@2176 | 20 --target=h8300-hitachi-hms \ |
pascal@2176 | 21 --prefix=/usr \ |
pascal@2176 | 22 --disable-nls \ |
pascal@2176 | 23 --infodir=/usr/share/info \ |
pascal@2176 | 24 --mandir=/usr/share/man \ |
pascal@2176 | 25 $CONFIGURE_ARGS && |
pascal@2176 | 26 make && |
pascal@2176 | 27 make DESTDIR=$PWD/_pkg install |
pascal@2176 | 28 } |
pascal@2176 | 29 |
pascal@2176 | 30 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@2176 | 31 genpkg_rules() |
pascal@2176 | 32 { |
pascal@2176 | 33 mkdir -p $fs/usr |
pascal@2176 | 34 cp -a $_pkg/usr/bin $fs/usr |
pascal@2176 | 35 cp -a $_pkg/usr/h8300-hitachi-hms $fs/usr |
pascal@2176 | 36 # do not need to copy lib/libiberty.a |
pascal@2176 | 37 } |