wok-6.x annotate gcc49/receipt @ rev 24533
updated f3 (7.2 -> 8.0)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Feb 23 11:14:10 2022 +0100 (2022-02-23) |
parents | b5c9023ea138 |
children | 52649f27a0da |
rev | line source |
---|---|
pascal@17845 | 1 # SliTaz package receipt. |
pascal@17845 | 2 |
pascal@17845 | 3 PACKAGE="gcc49" |
pascal@17845 | 4 SOURCE="gcc" |
pascal@17845 | 5 VERSION="4.9.2" |
pascal@17845 | 6 CATEGORY="development" |
erkan@19462 | 7 SHORT_DESC="The GNU Compiler Collection." |
pascal@17845 | 8 MAINTAINER="pankso@slitaz.org" |
pascal@17845 | 9 LICENSE="GPL2" |
pascal@17845 | 10 TARBALL="$SOURCE-$VERSION.tar.bz2" |
pascal@17845 | 11 WEB_SITE="http://gcc.gnu.org/" |
pascal@17845 | 12 WGET_URL="ftp://gcc.gnu.org/pub/gcc/releases/gcc-$VERSION/$TARBALL" |
pascal@17846 | 13 TAGS="compiler C C++" |
pascal@17845 | 14 |
pascal@17845 | 15 # We need gawk since busybox awk is not sufficient. We have BUILD_DEPENDS |
erkan@19462 | 16 # for cookutils that are not used by tazwok/cook-toolchain since it installs |
erkan@19462 | 17 # and uses its own copy. |
pascal@17845 | 18 DEPENDS="binutils libgomp libobjc gcc-lib-base mpc-library elfutils" |
pascal@17845 | 19 BUILD_DEPENDS="mpc-library mpfr-dev gmp-dev elfutils-dev" |
pascal@17845 | 20 |
pascal@17845 | 21 # Rules to configure and make the package. |
pascal@17845 | 22 compile_rules() |
pascal@17845 | 23 { |
pascal@17846 | 24 ARCH_ARGS="--with-tune=$ARCH" |
pascal@17846 | 25 pkgversion="SliTaz" |
pascal@17846 | 26 languages="c,c++" |
pascal@17845 | 27 |
pascal@17845 | 28 # Use libiberty.a from binutils. |
pascal@17845 | 29 sed -i 's/install_to_$(INSTALL_DEST) //' libiberty/Makefile.in || return 1 |
pascal@17845 | 30 |
pascal@17846 | 31 sed -i 's/^T_CFLAGS =$/& -fomit-frame-pointer/' gcc/Makefile.in |
pascal@17845 | 32 |
pascal@17845 | 33 mkdir -p ../gcc-build && cd ../gcc-build |
pascal@17845 | 34 |
pascal@17846 | 35 $src/configure \ |
pascal@17846 | 36 --libexecdir=/usr/lib \ |
pascal@17846 | 37 --enable-nls \ |
pascal@17846 | 38 --enable-languages=${languages} \ |
pascal@17846 | 39 --enable-shared \ |
pascal@17846 | 40 --with-system-zlib \ |
pascal@17846 | 41 --enable-clocale=gnu \ |
pascal@17846 | 42 --enable-objc-gc \ |
pascal@17846 | 43 --enable-__cxa_atexit \ |
pascal@17846 | 44 --enable-lto \ |
pascal@17846 | 45 --enable-threads=posix \ |
pascal@17846 | 46 --disable-bootstrap \ |
pascal@17846 | 47 --program-suffix=-49 \ |
pascal@17849 | 48 --libdir=/usr/libgcc49 \ |
pascal@17846 | 49 --with-pkgversion="$pkgversion" \ |
pascal@17846 | 50 ${CONFIGURE_ARGS} ${ARCH_ARGS} && |
pascal@17846 | 51 make && make install |
pascal@17845 | 52 } |
pascal@17845 | 53 |
pascal@17845 | 54 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@17845 | 55 genpkg_rules() |
pascal@17845 | 56 { |
pascal@17845 | 57 mkdir -p $fs/usr/share |
pascal@17845 | 58 cp -a $install/usr/bin $fs/usr |
pascal@17845 | 59 |
pascal@17847 | 60 # Copy all libs. Do not hide gcc-lib-base. |
pascal@17849 | 61 cp -a $install/usr/lib* $fs/usr |
pascal@17845 | 62 |
pascal@17845 | 63 # Include files. |
pascal@17845 | 64 cp -a $install/usr/include $fs/usr |
pascal@17845 | 65 |
pascal@17845 | 66 # Remove build directory. |
pascal@17845 | 67 rm -rf $WOK/$PACKAGE/source/$PACKAGE-build |
pascal@17845 | 68 rm -rf $WOK/$PACKAGE/$PACKAGE-build |
pascal@17845 | 69 } |