wok view h8300-gcc3/receipt @ rev 3290

Update Build Depends: H8/300 tools
author Matthew Sheets <rcx@zoominternet.net>
date Wed Jun 03 12:17:34 2009 +0000 (2009-06-03)
parents 51c6f8c526bb
children 66ba49cddc3a
line source
1 # SliTaz package receipt.
3 PACKAGE="h8300-gcc3"
4 SOURCE="gcc"
5 VERSION="3.4.6"
6 CATEGORY="development"
7 SHORT_DESC="gcc targeting the H8/300"
8 MAINTAINER="rcx@zoominternet.net"
9 DEPENDS="h8300-binutils"
10 BUILD_DEPENDS="slitaz-toolchain bison flex h8300-binutils"
11 TARBALL="$SOURCE-$VERSION.tar.bz2"
12 WEB_SITE="http://www.gnu.org/software/gcc/"
13 WGET_URL="$GNU_MIRROR/$SOURCE/$SOURCE-$VERSION/$TARBALL"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 cd $src
19 rm -f -r libssp libstdc++-v3 binutils
20 mkdir -p $src-build
21 cd $src-build
22 $src/configure \
23 --target=h8300-hitachi-hms \
24 --enable-languages=c,c++,ada,java \
25 --disable-nls \
26 --enable-target-optspace \
27 --prefix=/usr \
28 --infodir=/usr/share/info \
29 --mandir=/usr/share/man \
30 $CONFIGURE_ARGS &&
31 make &&
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
39 cp -a $_pkg/usr/bin $fs/usr
40 cp -a $_pkg/usr/h8300-hitachi-hms $fs/usr
41 cp -a $_pkg/usr/include $fs/usr
42 # do not need to copy lib/libiberty.a
43 mkdir -p $fs/usr/lib
44 cp -a $_pkg/usr/lib/gcc $fs/usr/lib
45 cp -a $_pkg/usr/libexec $fs/usr
46 }