wok view h8300-gcc/receipt @ rev 25770

dool,fake-hwclock,gtkam,xfce4-*-plugin,xlogo: add current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Sep 06 11:29:23 2024 +0000 (2 months ago)
parents 380ffe05937a
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="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 h8300-binutils"
18 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - 'https://gcc.gnu.org/git/?p=gcc.git;a=summary' 2>/dev/null | \
22 sed '/ release/!d;s|.*GCC ||;s| release.*||' | sort -Vr | sed q
23 }
25 # Configuration only needs included if we're in the build/wok environment
26 if [ -e $WOK/h8300-toolchain/stuff/h8300.conf ] ; then
27 . $WOK/h8300-toolchain/stuff/h8300.conf
28 fi
30 # Rules to configure and make the package.
31 compile_rules()
32 {
33 rm -f -r $src/libssp $src/libstdc++-v3 $src/binutils
34 mkdir -p $SOURCE-$VERSION-build
35 cd $SOURCE-$VERSION-build
36 $src/configure \
37 --target=$H8300_TARGET \
38 --enable-languages=c,c++ \
39 --disable-nls \
40 --enable-target-optspace \
41 --enable-obsolete \
42 --prefix=/usr \
43 --libexecdir=/usr/lib \
44 --infodir=/usr/share/info \
45 --mandir=/usr/share/man \
46 $CONFIGURE_ARGS &&
47 make $MAKEFLAGS &&
48 make DESTDIR=$DESTDIR install
49 }
51 # Rules to gen a SliTaz package suitable for Tazpkg.
52 genpkg_rules()
53 {
54 mkdir -p $fs/usr
55 cp -a $install/usr/bin $fs/usr
56 cp -a $install/usr/include $fs/usr
57 # do not need to copy lib/libiberty.a
58 mkdir -p $fs/usr/lib
59 cp -a $install/usr/lib/gcc $fs/usr/lib
60 # Do not include the h8* variant folders; create separate packages if they are needed
61 rm -r -f $fs/usr/lib/gcc/$H8300_TARGET/$VERSION/h8300h
62 rm -r -f $fs/usr/lib/gcc/$H8300_TARGET/$VERSION/h8300s
63 rm -r -f $fs/usr/lib/gcc/$H8300_TARGET/$VERSION/h8sx
64 }
66 # Rules to clean the package
67 clean_wok()
68 {
69 rm -r $SOURCE-$VERSION-build
70 }