wok-next view h8300-gcc3/receipt @ rev 4029
Update: h8300-gcc3 (add PROVIDE)
author | Matthew Sheets <rcx@zoominternet.net> |
---|---|
date | Sat Sep 05 15:03:56 2009 +0000 (2009-09-05) |
parents | 3ecbb6f5aa64 |
children | 57411a44bf69 |
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"
14 PROVIDE="h8300-gcc"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 rm -f -r $src/libssp $src/libstdc++-v3 $src/binutils
20 mkdir -p $SOURCE-$VERSION-build
21 cd $SOURCE-$VERSION-build
22 $src/configure \
23 --target=h8300-hitachi-hms \
24 --enable-languages=c,c++,ada \
25 --disable-nls \
26 --enable-target-optspace \
27 --prefix=/usr \
28 --exec-prefix=/usr \
29 --libexecdir=/usr/lib \
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/include $fs/usr
43 # do not need to copy lib/libiberty.a
44 mkdir -p $fs/usr/lib
45 cp -a $_pkg/usr/lib/gcc $fs/usr/lib
46 }
48 # Rules to clean the package
49 clean_wok()
50 {
51 rm -r $SOURCE-$VERSION-build
52 }