wok annotate gcc3/receipt @ rev 25539
Up perl-test-compile (3.1.0)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Mar 09 12:11:13 2023 +0000 (22 months ago) |
parents | 27f3dea23598 |
children | d79ed38ace18 |
rev | line source |
---|---|
pascal@439 | 1 # SliTaz package receipt. |
pascal@439 | 2 |
pascal@439 | 3 PACKAGE="gcc3" |
pascal@439 | 4 VERSION="3.4.6" |
pascal@439 | 5 CATEGORY="development" |
erkan@19462 | 6 SHORT_DESC="The GNU Compiler Collection." |
pascal@439 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15000 | 8 LICENSE="GPL2" |
slaxemulator@9127 | 9 SOURCE="gcc" |
slaxemulator@9127 | 10 TARBALL="$SOURCE-$VERSION.tar.bz2" |
pascal@439 | 11 WEB_SITE="http://gcc.gnu.org/" |
slaxemulator@9127 | 12 WGET_URL="$GNU_MIRROR/$SOURCE/$SOURCE-$VERSION/$TARBALL" |
pascal@13033 | 13 TAGS="compiler C C++" |
pascal@13033 | 14 |
pascal@13033 | 15 BUILD_DEPENDS="gawk" |
pascal@13033 | 16 DEPENDS="gcc" |
pascal@439 | 17 |
pascal@24694 | 18 # What is the latest version available today? |
pascal@24694 | 19 current_version() |
pascal@24694 | 20 { |
pascal@24694 | 21 wget -O - $GNU_MIRROR/$SOURCE 2>/dev/null | \ |
pascal@24694 | 22 sed '/gcc-3/!d;s|.*gcc-||;s|.t.*||;s|/.*||' | sort -Vr | sed q |
pascal@24694 | 23 } |
pascal@24694 | 24 |
pascal@439 | 25 # Rules to configure and make the package. |
pascal@439 | 26 compile_rules() |
pascal@439 | 27 { |
pascal@13879 | 28 mkdir gcc-build |
pascal@13879 | 29 cd gcc-build |
pascal@15323 | 30 { |
pascal@13879 | 31 $src/configure --prefix=/usr --libexecdir=/usr/lib \ |
pascal@20603 | 32 --host=i686-pc-linux-gnu --build=i686-pc-linux-gnu \ |
pascal@20603 | 33 --target=i686-pc-linux-gnu \ |
pascal@13879 | 34 --infodir=/usr/share/info --mandir=/usr/share/man --enable-nls \ |
pascal@13879 | 35 --enable-languages=c,c++ --enable-shared --with-system-zlib \ |
pascal@13879 | 36 --enable-clocale=gnu --enable-objc-gc --enable-__cxa_atexit \ |
pascal@13879 | 37 --enable-threads=posix --with-tune=$ARCH \ |
pascal@13879 | 38 --program-suffix=-3 |
pascal@20573 | 39 make -j 1 $MAKEFLAGS bootstrap && |
pascal@20573 | 40 make -j 1 $MAKEFLAGS install |
pascal@15323 | 41 } 2>&1 | sed 's/: No such file/: no such file/' |
pascal@439 | 42 } |
pascal@439 | 43 |
pascal@439 | 44 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@439 | 45 genpkg_rules() |
pascal@439 | 46 { |
pascal@13879 | 47 mkdir -p $fs/usr |
pascal@13879 | 48 cp -a $install/usr/bin $install/usr/lib $install/usr/include $fs/usr |
pascal@13879 | 49 rm $fs/usr/lib/lib* |
pascal@439 | 50 } |