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

Cleaning is almost finished... I should proceed to upgrades.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Nov 02 14:15:08 2018 +0200 (2018-11-02)
parents b111af75e9ad
children
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="devel@slitaz.org"
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 compile_rules() {
25 rm -f -r $src/libssp $src/libstdc++-v3 $src/binutils
26 mkdir -p $SOURCE-$VERSION-build
27 cd $SOURCE-$VERSION-build
29 $src/configure \
30 CC=gcc-49 CXX=g++-49 \
31 --target=$H8300_TARGET \
32 --enable-languages=c,c++ \
33 --disable-nls \
34 --enable-target-optspace \
35 --enable-obsolete \
36 --prefix=/usr \
37 --libexecdir=/usr/lib \
38 --infodir=/usr/share/info \
39 --mandir=/usr/share/man \
40 $CONFIGURE_ARGS &&
41 make $MAKEFLAGS &&
42 make DESTDIR=$install install
43 }
45 genpkg_rules() {
46 mkdir -p $fs/usr
47 cp -a $install/usr/bin $fs/usr
48 cp -a $install/usr/include $fs/usr
49 # do not need to copy lib/libiberty.a
50 mkdir -p $fs/usr/lib
51 cp -a $install/usr/lib/gcc $fs/usr/lib
52 # Do not include the h8* variant folders; create separate packages if they are needed
53 rm -r -f $fs/usr/lib/gcc/$H8300_TARGET/$VERSION/h8300h
54 rm -r -f $fs/usr/lib/gcc/$H8300_TARGET/$VERSION/h8300s
55 rm -r -f $fs/usr/lib/gcc/$H8300_TARGET/$VERSION/h8sx
56 }