wok view h8300-gcc/receipt @ rev 3995

h8300-gcc: fix FSH
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Aug 30 13:02:52 2009 +0200 (2009-08-30)
parents 031b4513a438
children 975439362c74
line source
1 # SliTaz package receipt.
3 PACKAGE="h8300-gcc"
4 SOURCE="gcc"
5 VERSION="4.4.1"
6 CATEGORY="development"
7 SHORT_DESC="gcc targeting the H8/300"
8 MAINTAINER="rcx@zoominternet.net"
9 DEPENDS="h8300-binutils glibc-base gmp mpfr"
10 BUILD_DEPENDS="slitaz-toolchain gawk flex gmp gmp-dev mpfr mpfr-dev 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 rm -f -r $src/libssp $src/libstdc++-v3 $src/binutils
19 mkdir -p $SOURCE-$VERSION-build
20 cd $SOURCE-$VERSION-build
21 $src/configure \
22 --target=h8300-hitachi-hms \
23 --enable-languages=c,c++ \
24 --disable-nls \
25 --enable-target-optspace \
26 --enable-obsolete \
27 --prefix=/usr \
28 --exec-prefix=/usr/share/h8300-hitachi-hms \
29 --libexecdir=/usr/lib/h8300-hitachi-hms \
30 --infodir=/usr/share/info \
31 --mandir=/usr/share/man \
32 $CONFIGURE_ARGS &&
33 make &&
34 make DESTDIR=$src/_pkg install
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 mkdir -p $fs/usr
41 cp -a $_pkg/usr/bin $fs/usr
42 cp -a $_pkg/usr/h8300-hitachi-hms $fs/usr
43 cp -a $_pkg/usr/include $fs/usr
44 # do not need to copy lib/libiberty.a
45 mkdir -p $fs/usr/lib
46 cp -a $_pkg/usr/lib/gcc $fs/usr/lib
47 cp -a $_pkg/usr/libexec $fs/usr
48 }
50 # Rules to clean the package
51 clean_wok()
52 {
53 rm -r $SOURCE-$VERSION-build
54 }