wok-6.x annotate gcc83/receipt @ rev 21512
updated nagios-plugins (1.4.16 -> 2.2.1)
author | Hans-G?nter Theisgen |
---|---|
date | Fri May 03 12:54:18 2019 +0100 (2019-05-03) |
parents | 98c0a4dac3e9 |
children | 52649f27a0da |
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 |
pascal@20955 | 36 sed -i 's|\(add-gnu-debuglink.*\);|\1 2> /dev/null;|' \ |
pascal@20956 | 37 $src/libbacktrace/configure* |
Hans-G?nter@20951 | 38 $src/configure \ |
Hans-G?nter@20951 | 39 --libexecdir=/usr/lib \ |
Hans-G?nter@20951 | 40 --enable-nls \ |
Hans-G?nter@20951 | 41 --enable-languages=${languages} \ |
Hans-G?nter@20951 | 42 --enable-shared \ |
Hans-G?nter@20951 | 43 --with-system-zlib \ |
Hans-G?nter@20951 | 44 --enable-clocale=gnu \ |
Hans-G?nter@20951 | 45 --enable-objc-gc \ |
Hans-G?nter@20951 | 46 --enable-__cxa_atexit \ |
Hans-G?nter@20951 | 47 --enable-lto \ |
Hans-G?nter@20951 | 48 --enable-threads=posix \ |
Hans-G?nter@20951 | 49 --disable-bootstrap \ |
pascal@20954 | 50 --program-suffix=-${PACKAGE#gcc} \ |
pascal@20954 | 51 --libdir=/usr/libgcc${PACKAGE#gcc} \ |
Hans-G?nter@20951 | 52 --with-pkgversion="$pkgversion" \ |
Hans-G?nter@20951 | 53 ${CONFIGURE_ARGS} ${ARCH_ARGS} && |
Hans-G?nter@20951 | 54 make -j 1 && |
Hans-G?nter@20951 | 55 make install |
Hans-G?nter@20951 | 56 } |
Hans-G?nter@20951 | 57 |
Hans-G?nter@20951 | 58 # Rules to gen a SliTaz package suitable for Tazpkg. |
Hans-G?nter@20951 | 59 genpkg_rules() |
Hans-G?nter@20951 | 60 { |
Hans-G?nter@20951 | 61 mkdir -p $fs/usr/share |
Hans-G?nter@20951 | 62 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@20951 | 63 |
Hans-G?nter@20951 | 64 # Copy all libs. Do not hide gcc-lib-base. |
Hans-G?nter@20951 | 65 cp -a $install/usr/lib* $fs/usr |
Hans-G?nter@20951 | 66 |
Hans-G?nter@20951 | 67 # Include files. |
Hans-G?nter@20951 | 68 cp -a $install/usr/include $fs/usr |
Hans-G?nter@20951 | 69 |
Hans-G?nter@20951 | 70 # Remove build directory. |
Hans-G?nter@20951 | 71 rm -rf $WOK/$PACKAGE/source/$PACKAGE-build |
Hans-G?nter@20951 | 72 rm -rf $WOK/$PACKAGE/$PACKAGE-build |
Hans-G?nter@20951 | 73 } |