wok-6.x view h8300-gcc3/receipt @ rev 25273

created recipe for gcc83-lang (really)
author Hans-G?nter Theisgen
date Sun Jul 17 17:53:46 2022 +0100 (2022-07-17)
parents 600949c94110
children
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 # What is the latest version available today?
20 current_version()
21 {
22 wget -O - $GNU_MIRROR/$SOURCE 2>/dev/null | \
23 sed '/gcc-3/!d;s|.*gcc-||;s|.t.*||;s|/.*||' | sort -Vr | sed q
24 }
26 # Configuration only needs included if we're in the build/wok environment
27 if [ -e $WOK/h8300-toolchain/stuff/h8300.conf ] ; then
28 . $WOK/h8300-toolchain/stuff/h8300.conf
29 fi
31 # Rules to configure and make the package.
32 compile_rules()
33 {
34 rm -f -r $src/libssp $src/libstdc++-v3 $src/binutils
35 mkdir -p $SOURCE-$VERSION-build \
36 $DESTDIR/usr/share/man/man1 $DESTDIR/usr/share/man/man7
37 cd $SOURCE-$VERSION-build
38 $src/configure \
39 --target=$H8300_TARGET \
40 --enable-languages=c,c++,ada \
41 --disable-nls \
42 --enable-target-optspace \
43 --prefix=/usr \
44 --libexecdir=/usr/lib \
45 --infodir=/usr/share/info \
46 --mandir=/usr/share/man \
47 $CONFIGURE_ARGS &&
48 make $MAKEFLAGS &&
49 make DESTDIR=$DESTDIR install
50 }
52 # Rules to gen a SliTaz package suitable for Tazpkg.
53 genpkg_rules()
54 {
55 mkdir -p $fs/usr
56 cp -a $install/usr/bin $fs/usr
57 cp -a $install/usr/include $fs/usr
58 # Do not need to copy lib/libiberty.a
59 mkdir -p $fs/usr/lib
60 cp -a $install/usr/lib/gcc $fs/usr/lib
61 # Do not include the h8300* variant folders; create separate packages if they are needed
62 rm -r -f $fs/usr/lib/gcc/$H8300_TARGET/$VERSION/h8300h
63 rm -r -f $fs/usr/lib/gcc/$H8300_TARGET/$VERSION/h8300s
64 }
66 # Rules to clean the package
67 clean_wok()
68 {
69 rm -r $SOURCE-$VERSION-build
70 }