wok-6.x view gcc3/receipt @ rev 24925
updated mpc (0.33 -> 0.34)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Apr 13 13:55:09 2022 +0100 (2022-04-13) |
parents | 27f3dea23598 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="gcc3"
4 VERSION="3.4.6"
5 CATEGORY="development"
6 SHORT_DESC="The GNU Compiler Collection."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 SOURCE="gcc"
10 TARBALL="$SOURCE-$VERSION.tar.bz2"
11 WEB_SITE="http://gcc.gnu.org/"
12 WGET_URL="$GNU_MIRROR/$SOURCE/$SOURCE-$VERSION/$TARBALL"
13 TAGS="compiler C C++"
15 BUILD_DEPENDS="gawk"
16 DEPENDS="gcc"
18 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - $GNU_MIRROR/$SOURCE 2>/dev/null | \
22 sed '/gcc-3/!d;s|.*gcc-||;s|.t.*||;s|/.*||' | sort -Vr | sed q
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 mkdir gcc-build
29 cd gcc-build
30 {
31 $src/configure --prefix=/usr --libexecdir=/usr/lib \
32 --host=i686-pc-linux-gnu --build=i686-pc-linux-gnu \
33 --target=i686-pc-linux-gnu \
34 --infodir=/usr/share/info --mandir=/usr/share/man --enable-nls \
35 --enable-languages=c,c++ --enable-shared --with-system-zlib \
36 --enable-clocale=gnu --enable-objc-gc --enable-__cxa_atexit \
37 --enable-threads=posix --with-tune=$ARCH \
38 --program-suffix=-3
39 make -j 1 $MAKEFLAGS bootstrap &&
40 make -j 1 $MAKEFLAGS install
41 } 2>&1 | sed 's/: No such file/: no such file/'
42 }
44 # Rules to gen a SliTaz package suitable for Tazpkg.
45 genpkg_rules()
46 {
47 mkdir -p $fs/usr
48 cp -a $install/usr/bin $install/usr/lib $install/usr/include $fs/usr
49 rm $fs/usr/lib/lib*
50 }