wok-current view h8300-gcc3/receipt @ rev 4024
grub: handle partition in /dev/mapper
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Sep 04 13:38:12 2009 +0200 (2009-09-04) |
parents | d7cd7e6a6338 |
children | 892129529706 |
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 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++,ada \
24 --disable-nls \
25 --enable-target-optspace \
26 --prefix=/usr \
27 --exec-prefix=/usr \
28 --libexecdir=/usr/lib \
29 --infodir=/usr/share/info \
30 --mandir=/usr/share/man \
31 $CONFIGURE_ARGS &&
32 make &&
33 make DESTDIR=$src/_pkg install
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 mkdir -p $fs/usr
40 cp -a $_pkg/usr/bin $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 }
47 # Rules to clean the package
48 clean_wok()
49 {
50 rm -r $SOURCE-$VERSION-build
51 }