wok annotate gcc49/receipt @ rev 25805
created recipe for xfce4-weather-plugin
author | Hans-G?nter Theisgen |
---|---|
date | Wed Nov 13 15:24:31 2024 +0100 (4 days ago) |
parents | 52649f27a0da |
children |
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@24694 | 21 # What is the latest version available today? |
pascal@24694 | 22 current_version() |
pascal@24694 | 23 { |
pascal@25609 | 24 wget -O - https://ftp.gnu.org/gnu/$SOURCE/ 2>/dev/null | \ |
pascal@25609 | 25 wget -O - https://ftp.gnu.org/gnu/gcc/ 2>/dev/null | \ |
pascal@24694 | 26 sed '/gcc-4\.9/!d;s|.*gcc-||;s|.t.*||;s|/.*||' | sort -Vr | sed q |
pascal@24694 | 27 } |
pascal@24694 | 28 |
pascal@17845 | 29 # Rules to configure and make the package. |
pascal@17845 | 30 compile_rules() |
pascal@17845 | 31 { |
pascal@17846 | 32 ARCH_ARGS="--with-tune=$ARCH" |
pascal@17846 | 33 pkgversion="SliTaz" |
pascal@17846 | 34 languages="c,c++" |
pascal@17845 | 35 |
pascal@17845 | 36 # Use libiberty.a from binutils. |
pascal@17845 | 37 sed -i 's/install_to_$(INSTALL_DEST) //' libiberty/Makefile.in || return 1 |
pascal@17845 | 38 |
pascal@17846 | 39 sed -i 's/^T_CFLAGS =$/& -fomit-frame-pointer/' gcc/Makefile.in |
pascal@17845 | 40 |
pascal@17845 | 41 mkdir -p ../gcc-build && cd ../gcc-build |
pascal@17845 | 42 |
pascal@17846 | 43 $src/configure \ |
pascal@17846 | 44 --libexecdir=/usr/lib \ |
pascal@17846 | 45 --enable-nls \ |
pascal@17846 | 46 --enable-languages=${languages} \ |
pascal@17846 | 47 --enable-shared \ |
pascal@17846 | 48 --with-system-zlib \ |
pascal@17846 | 49 --enable-clocale=gnu \ |
pascal@17846 | 50 --enable-objc-gc \ |
pascal@17846 | 51 --enable-__cxa_atexit \ |
pascal@17846 | 52 --enable-lto \ |
pascal@17846 | 53 --enable-threads=posix \ |
pascal@17846 | 54 --disable-bootstrap \ |
pascal@17846 | 55 --program-suffix=-49 \ |
pascal@17849 | 56 --libdir=/usr/libgcc49 \ |
pascal@17846 | 57 --with-pkgversion="$pkgversion" \ |
pascal@17846 | 58 ${CONFIGURE_ARGS} ${ARCH_ARGS} && |
pascal@17846 | 59 make && make install |
pascal@17845 | 60 } |
pascal@17845 | 61 |
pascal@17845 | 62 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@17845 | 63 genpkg_rules() |
pascal@17845 | 64 { |
pascal@17845 | 65 mkdir -p $fs/usr/share |
pascal@17845 | 66 cp -a $install/usr/bin $fs/usr |
pascal@17845 | 67 |
pascal@17847 | 68 # Copy all libs. Do not hide gcc-lib-base. |
pascal@17849 | 69 cp -a $install/usr/lib* $fs/usr |
pascal@17845 | 70 |
pascal@17845 | 71 # Include files. |
pascal@17845 | 72 cp -a $install/usr/include $fs/usr |
pascal@17845 | 73 |
pascal@17845 | 74 # Remove build directory. |
pascal@17845 | 75 rm -rf $WOK/$PACKAGE/source/$PACKAGE-build |
pascal@17845 | 76 rm -rf $WOK/$PACKAGE/$PACKAGE-build |
pascal@17845 | 77 } |