wok-next view h8300-binutils/receipt @ rev 10754
slitaz-i18n-extra: use EXTRA_PKGS as bdeps
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Mon May 30 22:12:10 2011 +0200 (2011-05-30) |
parents | fdcef0b5e0c7 |
children | 8e4c74abdf74 |
line source
1 # SliTaz package receipt.
3 PACKAGE="h8300-binutils"
4 SOURCE="binutils"
5 VERSION="2.16.1"
6 CATEGORY="development"
7 SHORT_DESC="binutils targeting the H8/300."
8 MAINTAINER="rcx@zoominternet.net"
9 BUILD_DEPENDS="slitaz-toolchain bison flex"
10 TARBALL="$SOURCE-$VERSION.tar.bz2"
11 WEB_SITE="http://www.gnu.org/software/binutils/"
12 WGET_URL="$GNU_MIRROR/$SOURCE/$TARBALL"
14 # Configuration only needs included if we're in the build/wok environment
15 if [ -e $WOK/h8300-toolchain/stuff/h8300.conf ] ; then
16 . $WOK/h8300-toolchain/stuff/h8300.conf
17 fi
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 cd $src
23 ./configure \
24 --target=$H8300_TARGET \
25 --prefix=/usr \
26 --disable-nls \
27 --infodir=/usr/share/info \
28 --mandir=/usr/share/man \
29 $CONFIGURE_ARGS &&
30 make -j 4 &&
31 make DESTDIR=$src/_pkg install
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 mkdir -p $fs/usr $fs$H8300_ROOT
38 cp -a $_pkg/usr/bin $fs/usr
39 cp -a $_pkg/usr/$H8300_TARGET/* $fs$H8300_ROOT
40 # do not need to copy lib/libiberty.a
42 strip -s $fs$H8300_ROOT/bin/*
43 }