wok-current view h8300-gcc/receipt @ rev 10544
libtdb-dev: fix path
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed May 25 19:09:35 2011 +0200 (2011-05-25) |
parents | fdcef0b5e0c7 |
children | 8e4c74abdf74 |
line source
1 # SliTaz package receipt.
3 PACKAGE="h8300-gcc"
4 SOURCE="gcc"
5 VERSION="4.4.4"
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 # Configuration only needs included if we're in the build/wok environment
16 if [ -e $WOK/h8300-toolchain/stuff/h8300.conf ] ; then
17 . $WOK/h8300-toolchain/stuff/h8300.conf
18 fi
20 # Rules to configure and make the package.
21 compile_rules()
22 {
23 rm -f -r $src/libssp $src/libstdc++-v3 $src/binutils
24 mkdir -p $SOURCE-$VERSION-build
25 cd $SOURCE-$VERSION-build
26 $src/configure \
27 --target=$H8300_TARGET \
28 --enable-languages=c,c++ \
29 --disable-nls \
30 --enable-target-optspace \
31 --enable-obsolete \
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 h8* 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 rm -r -f $fs/usr/lib/gcc/$H8300_TARGET/$VERSION/h8sx
54 }
56 # Rules to clean the package
57 clean_wok()
58 {
59 rm -r $SOURCE-$VERSION-build
60 }