wok-6.x diff h8300-binutils/receipt @ rev 4624
Add: calcurse
author | Paul Issott <paul@slitaz.org> |
---|---|
date | Sun Dec 20 11:37:22 2009 +0000 (2009-12-20) |
parents | 3ecbb6f5aa64 |
children | fdcef0b5e0c7 |
line diff
1.1 --- a/h8300-binutils/receipt Thu Sep 03 21:23:46 2009 +0200 1.2 +++ b/h8300-binutils/receipt Sun Dec 20 11:37:22 2009 +0000 1.3 @@ -4,7 +4,7 @@ 1.4 SOURCE="binutils" 1.5 VERSION="2.16.1" 1.6 CATEGORY="development" 1.7 -SHORT_DESC="binutils targeting the H8/300" 1.8 +SHORT_DESC="binutils targeting the H8/300." 1.9 MAINTAINER="rcx@zoominternet.net" 1.10 DEPENDS="" 1.11 BUILD_DEPENDS="slitaz-toolchain bison flex" 1.12 @@ -12,29 +12,33 @@ 1.13 WEB_SITE="http://www.gnu.org/software/binutils/" 1.14 WGET_URL="$GNU_MIRROR/$SOURCE/$TARBALL" 1.15 1.16 +# Configuration only needs included if we're in the build/wok environment 1.17 +if [ -e $WOK/h8300-toolchain/stuff/h8300.conf ] ; then 1.18 + . $WOK/h8300-toolchain/stuff/h8300.conf 1.19 +fi 1.20 + 1.21 # Rules to configure and make the package. 1.22 compile_rules() 1.23 { 1.24 cd $src 1.25 ./configure \ 1.26 - --target=h8300-hitachi-hms \ 1.27 + --target=$H8300_TARGET \ 1.28 --prefix=/usr \ 1.29 --disable-nls \ 1.30 - --exec-prefix=/usr \ 1.31 - --libexecdir=/usr/lib \ 1.32 --infodir=/usr/share/info \ 1.33 --mandir=/usr/share/man \ 1.34 $CONFIGURE_ARGS && 1.35 make && 1.36 - make DESTDIR=$PWD/_pkg install 1.37 + make DESTDIR=$src/_pkg install 1.38 } 1.39 1.40 # Rules to gen a SliTaz package suitable for Tazpkg. 1.41 genpkg_rules() 1.42 { 1.43 - mkdir -p $fs/usr 1.44 + mkdir -p $fs/usr $fs$H8300_ROOT 1.45 cp -a $_pkg/usr/bin $fs/usr 1.46 - cp -a $_pkg/usr/lib $fs/usr 1.47 + cp -a $_pkg/usr/$H8300_TARGET/* $fs$H8300_ROOT 1.48 # do not need to copy lib/libiberty.a 1.49 - rm -f $fs/usr/lib/libiberty.a 1.50 + 1.51 + strip -s $fs$H8300_ROOT/bin/* 1.52 }