wok-6.x annotate gcc83/receipt @ rev 24906

updated minidlna (1.2.1 -> 1.3.0)
author Hans-G?nter Theisgen
date Sat Apr 09 14:37:52 2022 +0100 (2022-04-09)
parents ba3dcc5955bc
children
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
pascal@24694 22 # What is the latest version available today?
pascal@24694 23 current_version()
pascal@24694 24 {
pascal@24694 25 wget -O - $GNU_MIRROR/$SOURCE 2>/dev/null | \
pascal@24694 26 sed '/gcc-8\.3/!d;s|.*gcc-||;s|.t.*||;s|/.*||' | sort -Vr | sed q
pascal@24694 27 }
pascal@24694 28
Hans-G?nter@20951 29 # Rules to configure and make the package.
Hans-G?nter@20951 30 compile_rules()
Hans-G?nter@20951 31 {
Hans-G?nter@20951 32 ARCH_ARGS="--with-tune=$ARCH"
Hans-G?nter@20951 33 pkgversion="SliTaz"
Hans-G?nter@20951 34 languages="c,c++"
Hans-G?nter@20951 35
Hans-G?nter@20951 36 # Use libiberty.a from binutils.
Hans-G?nter@20951 37 sed -i 's/install_to_$(INSTALL_DEST) //' libiberty/Makefile.in || return 1
Hans-G?nter@20951 38
Hans-G?nter@20951 39 sed -i 's/^T_CFLAGS =$/& -fomit-frame-pointer/' gcc/Makefile.in
Hans-G?nter@20951 40
Hans-G?nter@20951 41 mkdir -p ../gcc-build && cd ../gcc-build
Hans-G?nter@20951 42
pascal@20955 43 sed -i 's|\(add-gnu-debuglink.*\);|\1 2> /dev/null;|' \
pascal@20956 44 $src/libbacktrace/configure*
Hans-G?nter@20951 45 $src/configure \
Hans-G?nter@20951 46 --libexecdir=/usr/lib \
Hans-G?nter@20951 47 --enable-nls \
Hans-G?nter@20951 48 --enable-languages=${languages} \
Hans-G?nter@20951 49 --enable-shared \
Hans-G?nter@20951 50 --with-system-zlib \
Hans-G?nter@20951 51 --enable-clocale=gnu \
Hans-G?nter@20951 52 --enable-objc-gc \
Hans-G?nter@20951 53 --enable-__cxa_atexit \
Hans-G?nter@20951 54 --enable-lto \
Hans-G?nter@20951 55 --enable-threads=posix \
Hans-G?nter@20951 56 --disable-bootstrap \
pascal@20954 57 --program-suffix=-${PACKAGE#gcc} \
pascal@20954 58 --libdir=/usr/libgcc${PACKAGE#gcc} \
Hans-G?nter@20951 59 --with-pkgversion="$pkgversion" \
Hans-G?nter@20951 60 ${CONFIGURE_ARGS} ${ARCH_ARGS} &&
Hans-G?nter@20951 61 make -j 1 &&
Hans-G?nter@20951 62 make install
Hans-G?nter@20951 63 }
Hans-G?nter@20951 64
Hans-G?nter@20951 65 # Rules to gen a SliTaz package suitable for Tazpkg.
Hans-G?nter@20951 66 genpkg_rules()
Hans-G?nter@20951 67 {
Hans-G?nter@20951 68 mkdir -p $fs/usr/share
Hans-G?nter@20951 69 cp -a $install/usr/bin $fs/usr
Hans-G?nter@20951 70
Hans-G?nter@20951 71 # Copy all libs. Do not hide gcc-lib-base.
Hans-G?nter@20951 72 cp -a $install/usr/lib* $fs/usr
Hans-G?nter@20951 73
Hans-G?nter@20951 74 # Include files.
Hans-G?nter@20951 75 cp -a $install/usr/include $fs/usr
Hans-G?nter@20951 76
Hans-G?nter@20951 77 # Remove build directory.
Hans-G?nter@20951 78 rm -rf $WOK/$PACKAGE/source/$PACKAGE-build
Hans-G?nter@20951 79 rm -rf $WOK/$PACKAGE/$PACKAGE-build
Hans-G?nter@20951 80 }