wok-6.x annotate h8300-binutils/receipt @ rev 15000
Add some GPL2 licenses
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Aug 10 17:00:38 2013 +0000 (2013-08-10) |
parents | 4c16797dce28 |
children | ee5c8b018b62 |
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" |
pascal@15000 | 9 LICENSE="GPL2" |
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 |
pascal@15000 | 15 BUILD_DEPENDS="slitaz-toolchain bison flex" |
pascal@15000 | 16 |
rcx@4034 | 17 # Configuration only needs included if we're in the build/wok environment |
rcx@4034 | 18 if [ -e $WOK/h8300-toolchain/stuff/h8300.conf ] ; then |
rcx@4034 | 19 . $WOK/h8300-toolchain/stuff/h8300.conf |
rcx@4034 | 20 fi |
rcx@4034 | 21 |
pascal@2176 | 22 # Rules to configure and make the package. |
pascal@2176 | 23 compile_rules() |
pascal@2176 | 24 { |
pascal@2176 | 25 cd $src |
pascal@2176 | 26 ./configure \ |
rcx@4034 | 27 --target=$H8300_TARGET \ |
pascal@2176 | 28 --prefix=/usr \ |
pascal@2176 | 29 --disable-nls \ |
pascal@2176 | 30 --infodir=/usr/share/info \ |
pascal@2176 | 31 --mandir=/usr/share/man \ |
pascal@2176 | 32 $CONFIGURE_ARGS && |
gokhlayeh@11574 | 33 make $MAKEFLAGS && |
rcx@4034 | 34 make DESTDIR=$src/_pkg install |
pascal@2176 | 35 } |
pascal@2176 | 36 |
pascal@2176 | 37 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@2176 | 38 genpkg_rules() |
pascal@2176 | 39 { |
rcx@4034 | 40 mkdir -p $fs/usr $fs$H8300_ROOT |
pascal@2176 | 41 cp -a $_pkg/usr/bin $fs/usr |
rcx@4034 | 42 cp -a $_pkg/usr/$H8300_TARGET/* $fs$H8300_ROOT |
pascal@2176 | 43 # do not need to copy lib/libiberty.a |
rcx@4034 | 44 |
rcx@4034 | 45 strip -s $fs$H8300_ROOT/bin/* |
pascal@2176 | 46 } |