wok-6.x view h8300-binutils/receipt @ rev 14333
eeze: no /usr/bin
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Apr 12 21:08:19 2013 +0200 (2013-04-12) |
parents | 8e4c74abdf74 |
children | 380ffe05937a |
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"
13 TAGS="assembler linker"
15 # Configuration only needs included if we're in the build/wok environment
16 if [ -e $WOK/h8300-toolchain/stuff/h8300.conf ] ; then
17 . $WOK/h8300-toolchain/stuff/h8300.conf
18 fi
20 # Rules to configure and make the package.
21 compile_rules()
22 {
23 cd $src
24 ./configure \
25 --target=$H8300_TARGET \
26 --prefix=/usr \
27 --disable-nls \
28 --infodir=/usr/share/info \
29 --mandir=/usr/share/man \
30 $CONFIGURE_ARGS &&
31 make $MAKEFLAGS &&
32 make DESTDIR=$src/_pkg install
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 mkdir -p $fs/usr $fs$H8300_ROOT
39 cp -a $_pkg/usr/bin $fs/usr
40 cp -a $_pkg/usr/$H8300_TARGET/* $fs$H8300_ROOT
41 # do not need to copy lib/libiberty.a
43 strip -s $fs$H8300_ROOT/bin/*
44 }