wok-current annotate h8300-binutils/receipt @ rev 14756
linux-uml: add default initrd
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Jun 18 09:58:46 2013 +0200 (2013-06-18) |
parents | 8e4c74abdf74 |
children | 380ffe05937a |
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" |
rcx@4034 | 7 SHORT_DESC="binutils targeting the H8/300." |
pascal@2176 | 8 MAINTAINER="rcx@zoominternet.net" |
rcx@3290 | 9 BUILD_DEPENDS="slitaz-toolchain bison flex" |
pascal@2176 | 10 TARBALL="$SOURCE-$VERSION.tar.bz2" |
pascal@2176 | 11 WEB_SITE="http://www.gnu.org/software/binutils/" |
pascal@2176 | 12 WGET_URL="$GNU_MIRROR/$SOURCE/$TARBALL" |
pascal@13033 | 13 TAGS="assembler linker" |
pascal@2176 | 14 |
rcx@4034 | 15 # Configuration only needs included if we're in the build/wok environment |
rcx@4034 | 16 if [ -e $WOK/h8300-toolchain/stuff/h8300.conf ] ; then |
rcx@4034 | 17 . $WOK/h8300-toolchain/stuff/h8300.conf |
rcx@4034 | 18 fi |
rcx@4034 | 19 |
pascal@2176 | 20 # Rules to configure and make the package. |
pascal@2176 | 21 compile_rules() |
pascal@2176 | 22 { |
pascal@2176 | 23 cd $src |
pascal@2176 | 24 ./configure \ |
rcx@4034 | 25 --target=$H8300_TARGET \ |
pascal@2176 | 26 --prefix=/usr \ |
pascal@2176 | 27 --disable-nls \ |
pascal@2176 | 28 --infodir=/usr/share/info \ |
pascal@2176 | 29 --mandir=/usr/share/man \ |
pascal@2176 | 30 $CONFIGURE_ARGS && |
gokhlayeh@11574 | 31 make $MAKEFLAGS && |
rcx@4034 | 32 make DESTDIR=$src/_pkg install |
pascal@2176 | 33 } |
pascal@2176 | 34 |
pascal@2176 | 35 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@2176 | 36 genpkg_rules() |
pascal@2176 | 37 { |
rcx@4034 | 38 mkdir -p $fs/usr $fs$H8300_ROOT |
pascal@2176 | 39 cp -a $_pkg/usr/bin $fs/usr |
rcx@4034 | 40 cp -a $_pkg/usr/$H8300_TARGET/* $fs$H8300_ROOT |
pascal@2176 | 41 # do not need to copy lib/libiberty.a |
rcx@4034 | 42 |
rcx@4034 | 43 strip -s $fs$H8300_ROOT/bin/* |
pascal@2176 | 44 } |