wok-current view gcc83/receipt @ rev 25372
updated trash-cli (0.17.1.14 -> 0.22.4.16)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Jul 29 14:58:56 2022 +0100 (2022-07-29) |
parents | ba3dcc5955bc |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="gcc83"
4 SOURCE="gcc"
5 VERSION="8.3.0"
6 CATEGORY="development"
7 TAGS="compiler C C++"
8 SHORT_DESC="The GNU Compiler Collection."
9 MAINTAINER="pankso@slitaz.org"
10 LICENSE="GPL2"
11 WEB_SITE="https://gcc.gnu.org/"
13 TARBALL="$SOURCE-$VERSION.tar.xz"
14 WGET_URL="ftp://gcc.gnu.org/pub/gcc/releases/gcc-$VERSION/$TARBALL"
16 # We need gawk since busybox awk is not sufficient. We have BUILD_DEPENDS
17 # for cookutils that are not used by tazwok/cook-toolchain since it installs
18 # and uses its own copy.
19 DEPENDS="binutils elfutils gcc-lib-base libgomp libobjc mpc-library"
20 BUILD_DEPENDS="elfutils-dev gmp-dev mpc-library mpfr-dev"
22 # What is the latest version available today?
23 current_version()
24 {
25 wget -O - $GNU_MIRROR/$SOURCE 2>/dev/null | \
26 sed '/gcc-8\.3/!d;s|.*gcc-||;s|.t.*||;s|/.*||' | sort -Vr | sed q
27 }
29 # Rules to configure and make the package.
30 compile_rules()
31 {
32 ARCH_ARGS="--with-tune=$ARCH"
33 pkgversion="SliTaz"
34 languages="c,c++"
36 # Use libiberty.a from binutils.
37 sed -i 's/install_to_$(INSTALL_DEST) //' libiberty/Makefile.in || return 1
39 sed -i 's/^T_CFLAGS =$/& -fomit-frame-pointer/' gcc/Makefile.in
41 mkdir -p ../gcc-build && cd ../gcc-build
43 sed -i 's|\(add-gnu-debuglink.*\);|\1 2> /dev/null;|' \
44 $src/libbacktrace/configure*
45 $src/configure \
46 --libexecdir=/usr/lib \
47 --enable-nls \
48 --enable-languages=${languages} \
49 --enable-shared \
50 --with-system-zlib \
51 --enable-clocale=gnu \
52 --enable-objc-gc \
53 --enable-__cxa_atexit \
54 --enable-lto \
55 --enable-threads=posix \
56 --disable-bootstrap \
57 --program-suffix=-${PACKAGE#gcc} \
58 --libdir=/usr/libgcc${PACKAGE#gcc} \
59 --with-pkgversion="$pkgversion" \
60 ${CONFIGURE_ARGS} ${ARCH_ARGS} &&
61 make -j 1 &&
62 make install
63 }
65 # Rules to gen a SliTaz package suitable for Tazpkg.
66 genpkg_rules()
67 {
68 mkdir -p $fs/usr/share
69 cp -a $install/usr/bin $fs/usr
71 # Copy all libs. Do not hide gcc-lib-base.
72 cp -a $install/usr/lib* $fs/usr
74 # Include files.
75 cp -a $install/usr/include $fs/usr
77 # Remove build directory.
78 rm -rf $WOK/$PACKAGE/source/$PACKAGE-build
79 rm -rf $WOK/$PACKAGE/$PACKAGE-build
80 }