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