wok view gcc83/receipt @ rev 25669
Up lapack (3.12.0), less (633), libarchive (3.7.2), liblouis (3.28.0), libmicrohttpd (1.0.1), libpng (1.6.43), libssh (0.10.6), libtasn1 (4.19.0), libtirpc (1.3.4), libvpx (1.14.0), libwebp (1.3.2), logrotate (3.21.0), lua (5.4.6)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Feb 25 16:11:20 2024 +0000 (9 months ago) |
parents | 52649f27a0da |
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 - https://ftp.gnu.org/gnu/$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 }