wok-next annotate h8300-binutils/receipt @ rev 12001
fceux: fix compile_rules
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Mar 05 14:43:15 2012 +0100 (2012-03-05) |
parents | d1768332cee0 |
children | 4c16797dce28 |
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@2176 | 13 |
rcx@4034 | 14 # Configuration only needs included if we're in the build/wok environment |
rcx@4034 | 15 if [ -e $WOK/h8300-toolchain/stuff/h8300.conf ] ; then |
rcx@4034 | 16 . $WOK/h8300-toolchain/stuff/h8300.conf |
rcx@4034 | 17 fi |
rcx@4034 | 18 |
pascal@2176 | 19 # Rules to configure and make the package. |
pascal@2176 | 20 compile_rules() |
pascal@2176 | 21 { |
pascal@2176 | 22 cd $src |
pascal@2176 | 23 ./configure \ |
rcx@4034 | 24 --target=$H8300_TARGET \ |
pascal@2176 | 25 --prefix=/usr \ |
pascal@2176 | 26 --disable-nls \ |
pascal@2176 | 27 --infodir=/usr/share/info \ |
pascal@2176 | 28 --mandir=/usr/share/man \ |
pascal@2176 | 29 $CONFIGURE_ARGS && |
gokhlayeh@11574 | 30 make $MAKEFLAGS && |
rcx@4034 | 31 make DESTDIR=$src/_pkg install |
pascal@2176 | 32 } |
pascal@2176 | 33 |
pascal@2176 | 34 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@2176 | 35 genpkg_rules() |
pascal@2176 | 36 { |
rcx@4034 | 37 mkdir -p $fs/usr $fs$H8300_ROOT |
pascal@2176 | 38 cp -a $_pkg/usr/bin $fs/usr |
rcx@4034 | 39 cp -a $_pkg/usr/$H8300_TARGET/* $fs$H8300_ROOT |
pascal@2176 | 40 # do not need to copy lib/libiberty.a |
rcx@4034 | 41 |
rcx@4034 | 42 strip -s $fs$H8300_ROOT/bin/* |
pascal@2176 | 43 } |