wok-next view h8300-gcc/receipt @ rev 20377

h8300-gdb, h8300-gcc: use gcc49
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Nov 26 11:54:13 2017 +0100 (2017-11-26)
parents 380ffe05937a
children d5aab818505e
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 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 TAGS="compiler C C++"
15 DEPENDS="h8300-binutils glibc-base gmp mpfr"
16 BUILD_DEPENDS="slitaz-toolchain gawk flex gmp gmp-dev mpfr mpfr-dev \
17 h8300-binutils gcc49"
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 CC=gcc-49 CXX=g++-49 \
32 --target=$H8300_TARGET \
33 --enable-languages=c,c++ \
34 --disable-nls \
35 --enable-target-optspace \
36 --enable-obsolete \
37 --prefix=/usr \
38 --libexecdir=/usr/lib \
39 --infodir=/usr/share/info \
40 --mandir=/usr/share/man \
41 $CONFIGURE_ARGS &&
42 make $MAKEFLAGS &&
43 make DESTDIR=$DESTDIR install
44 }
46 # Rules to gen a SliTaz package suitable for Tazpkg.
47 genpkg_rules()
48 {
49 mkdir -p $fs/usr
50 cp -a $install/usr/bin $fs/usr
51 cp -a $install/usr/include $fs/usr
52 # do not need to copy lib/libiberty.a
53 mkdir -p $fs/usr/lib
54 cp -a $install/usr/lib/gcc $fs/usr/lib
55 # Do not include the h8* variant folders; create separate packages if they are needed
56 rm -r -f $fs/usr/lib/gcc/$H8300_TARGET/$VERSION/h8300h
57 rm -r -f $fs/usr/lib/gcc/$H8300_TARGET/$VERSION/h8300s
58 rm -r -f $fs/usr/lib/gcc/$H8300_TARGET/$VERSION/h8sx
59 }
61 # Rules to clean the package
62 clean_wok()
63 {
64 rm -r $SOURCE-$VERSION-build
65 }