wok-next view h8300-gcc3/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 600949c94110
children
line source
1 # SliTaz package receipt.
3 PACKAGE="h8300-gcc3"
4 VERSION="3.4.6"
5 CATEGORY="development"
6 SHORT_DESC="gcc targeting the H8/300"
7 MAINTAINER="devel@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://www.gnu.org/software/gcc/"
11 SOURCE="gcc"
12 TARBALL="$SOURCE-$VERSION.tar.bz2"
13 WGET_URL="$GNU_MIRROR/$SOURCE/$SOURCE-$VERSION/$TARBALL"
15 BUILD_DEPENDS="bison flex h8300-binutils"
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 compile_rules() {
23 rm -f -r $src/libssp $src/libstdc++-v3 $src/binutils
24 mkdir -p $SOURCE-$VERSION-build \
25 $install/usr/share/man/man1 $install/usr/share/man/man7
26 cd $SOURCE-$VERSION-build
27 $src/configure \
28 --target=$H8300_TARGET \
29 --enable-languages=c,c++,ada \
30 --disable-nls \
31 --enable-target-optspace \
32 --prefix=/usr \
33 --libexecdir=/usr/lib \
34 --infodir=/usr/share/info \
35 --mandir=/usr/share/man \
36 $CONFIGURE_ARGS &&
37 make $MAKEFLAGS &&
38 make DESTDIR=$install install
39 }
41 genpkg_rules() {
42 mkdir -p $fs/usr
43 cp -a $install/usr/bin $fs/usr
44 cp -a $install/usr/include $fs/usr
45 # Do not need to copy lib/libiberty.a
46 mkdir -p $fs/usr/lib
47 cp -a $install/usr/lib/gcc $fs/usr/lib
48 # Do not include the h8300* variant folders; create separate packages if they are needed
49 rm -r -f $fs/usr/lib/gcc/$H8300_TARGET/$VERSION/h8300h
50 rm -r -f $fs/usr/lib/gcc/$H8300_TARGET/$VERSION/h8300s
51 DEPENDS="h8300-binutils"
52 PROVIDE="h8300-gcc"
53 TAGS="compiler C C++ ada"
54 }