wok annotate h8300-binutils/receipt @ rev 10309
tilda: Add $CONFIGURE_ARGS.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Sat May 21 21:22:39 2011 +0000 (2011-05-21) |
parents | fdcef0b5e0c7 |
children | 8e4c74abdf74 |
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 && |
pascal@5782 | 30 make -j 4 && |
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 } |