wok-next view h8300-gcc3/receipt @ rev 13033

Add C compiler tags
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Jun 12 18:52:42 2012 +0200 (2012-06-12)
parents 8e4c74abdf74
children 380ffe05937a
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="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"
15 TAGS="compiler C C++ ada"
17 # Configuration only needs included if we're in the build/wok environment
18 if [ -e $WOK/h8300-toolchain/stuff/h8300.conf ] ; then
19 . $WOK/h8300-toolchain/stuff/h8300.conf
20 fi
22 # Rules to configure and make the package.
23 compile_rules()
24 {
25 rm -f -r $src/libssp $src/libstdc++-v3 $src/binutils
26 mkdir -p $SOURCE-$VERSION-build
27 cd $SOURCE-$VERSION-build
28 $src/configure \
29 --target=$H8300_TARGET \
30 --enable-languages=c,c++,ada \
31 --disable-nls \
32 --enable-target-optspace \
33 --prefix=/usr \
34 --libexecdir=/usr/lib \
35 --infodir=/usr/share/info \
36 --mandir=/usr/share/man \
37 $CONFIGURE_ARGS &&
38 make $MAKEFLAGS &&
39 make DESTDIR=$src/_pkg install
40 }
42 # Rules to gen a SliTaz package suitable for Tazpkg.
43 genpkg_rules()
44 {
45 mkdir -p $fs/usr
46 cp -a $_pkg/usr/bin $fs/usr
47 cp -a $_pkg/usr/include $fs/usr
48 # Do not need to copy lib/libiberty.a
49 mkdir -p $fs/usr/lib
50 cp -a $_pkg/usr/lib/gcc $fs/usr/lib
51 # Do not include the h8300* variant folders; create separate packages if they are needed
52 rm -r -f $fs/usr/lib/gcc/$H8300_TARGET/$VERSION/h8300h
53 rm -r -f $fs/usr/lib/gcc/$H8300_TARGET/$VERSION/h8300s
54 }
56 # Rules to clean the package
57 clean_wok()
58 {
59 rm -r $SOURCE-$VERSION-build
60 }