wok-6.x view h8300-gcc3/receipt @ rev 6254
Up: x11vnc to 0.9.11.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Tue Sep 14 02:51:26 2010 +0000 (2010-09-14) |
parents | 57411a44bf69 |
children | 91ff9e877eff |
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 # Configuration only needs included if we're in the build/wok environment
17 if [ -e $WOK/h8300-toolchain/stuff/h8300.conf ] ; then
18 . $WOK/h8300-toolchain/stuff/h8300.conf
19 fi
21 # Rules to configure and make the package.
22 compile_rules()
23 {
24 rm -f -r $src/libssp $src/libstdc++-v3 $src/binutils
25 mkdir -p $SOURCE-$VERSION-build
26 cd $SOURCE-$VERSION-build
27 $src/configure \
28 --target=$H8300_TARGET \
29 --enable-languages=c,c++,ada \
30 --disable-nls \
31 --enable-target-optspace \
32 --prefix=/usr \
33 --libexecdir=/usr/lib \
34 --infodir=/usr/share/info \
35 --mandir=/usr/share/man \
36 $CONFIGURE_ARGS &&
37 make -j 4 &&
38 make DESTDIR=$src/_pkg install
39 }
41 # Rules to gen a SliTaz package suitable for Tazpkg.
42 genpkg_rules()
43 {
44 mkdir -p $fs/usr
45 cp -a $_pkg/usr/bin $fs/usr
46 cp -a $_pkg/usr/include $fs/usr
47 # Do not need to copy lib/libiberty.a
48 mkdir -p $fs/usr/lib
49 cp -a $_pkg/usr/lib/gcc $fs/usr/lib
50 # Do not include the h8300* variant folders; create separate packages if they are needed
51 rm -r -f $fs/usr/lib/gcc/$H8300_TARGET/$VERSION/h8300h
52 rm -r -f $fs/usr/lib/gcc/$H8300_TARGET/$VERSION/h8300s
53 }
55 # Rules to clean the package
56 clean_wok()
57 {
58 rm -r $SOURCE-$VERSION-build
59 }