wok view h8300-gcc3/receipt @ rev 15295

cdrtools: remove a wrong error trigger
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Sep 27 09:56:20 2013 +0000 (2013-09-27)
parents 380ffe05937a
children 600949c94110
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 LICENSE="GPL2"
10 TARBALL="$SOURCE-$VERSION.tar.bz2"
11 WEB_SITE="http://www.gnu.org/software/gcc/"
12 WGET_URL="$GNU_MIRROR/$SOURCE/$SOURCE-$VERSION/$TARBALL"
13 PROVIDE="h8300-gcc"
14 TAGS="compiler C C++ ada"
16 DEPENDS="h8300-binutils"
17 BUILD_DEPENDS="bison flex h8300-binutils"
19 # Configuration only needs included if we're in the build/wok environment
20 if [ -e $WOK/h8300-toolchain/stuff/h8300.conf ] ; then
21 . $WOK/h8300-toolchain/stuff/h8300.conf
22 fi
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 rm -f -r $src/libssp $src/libstdc++-v3 $src/binutils
28 mkdir -p $SOURCE-$VERSION-build
29 cd $SOURCE-$VERSION-build
30 $src/configure \
31 --target=$H8300_TARGET \
32 --enable-languages=c,c++,ada \
33 --disable-nls \
34 --enable-target-optspace \
35 --prefix=/usr \
36 --libexecdir=/usr/lib \
37 --infodir=/usr/share/info \
38 --mandir=/usr/share/man \
39 $CONFIGURE_ARGS &&
40 make $MAKEFLAGS &&
41 make DESTDIR=$DESTDIR install 2>&1 | grep -v man1/h8300-hitachi-hms-g
42 }
44 # Rules to gen a SliTaz package suitable for Tazpkg.
45 genpkg_rules()
46 {
47 mkdir -p $fs/usr
48 cp -a $install/usr/bin $fs/usr
49 cp -a $install/usr/include $fs/usr
50 # Do not need to copy lib/libiberty.a
51 mkdir -p $fs/usr/lib
52 cp -a $install/usr/lib/gcc $fs/usr/lib
53 # Do not include the h8300* variant folders; create separate packages if they are needed
54 rm -r -f $fs/usr/lib/gcc/$H8300_TARGET/$VERSION/h8300h
55 rm -r -f $fs/usr/lib/gcc/$H8300_TARGET/$VERSION/h8300s
56 }
58 # Rules to clean the package
59 clean_wok()
60 {
61 rm -r $SOURCE-$VERSION-build
62 }