wok view gcc83/receipt @ rev 24503

updated dulwich (0.19.14 -> 0.19.16)
author Hans-G?nter Theisgen
date Sun Feb 20 10:36:29 2022 +0100 (2022-02-20)
parents 98c0a4dac3e9
children 52649f27a0da
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 # Rules to configure and make the package.
23 compile_rules()
24 {
25 ARCH_ARGS="--with-tune=$ARCH"
26 pkgversion="SliTaz"
27 languages="c,c++"
29 # Use libiberty.a from binutils.
30 sed -i 's/install_to_$(INSTALL_DEST) //' libiberty/Makefile.in || return 1
32 sed -i 's/^T_CFLAGS =$/& -fomit-frame-pointer/' gcc/Makefile.in
34 mkdir -p ../gcc-build && cd ../gcc-build
36 sed -i 's|\(add-gnu-debuglink.*\);|\1 2> /dev/null;|' \
37 $src/libbacktrace/configure*
38 $src/configure \
39 --libexecdir=/usr/lib \
40 --enable-nls \
41 --enable-languages=${languages} \
42 --enable-shared \
43 --with-system-zlib \
44 --enable-clocale=gnu \
45 --enable-objc-gc \
46 --enable-__cxa_atexit \
47 --enable-lto \
48 --enable-threads=posix \
49 --disable-bootstrap \
50 --program-suffix=-${PACKAGE#gcc} \
51 --libdir=/usr/libgcc${PACKAGE#gcc} \
52 --with-pkgversion="$pkgversion" \
53 ${CONFIGURE_ARGS} ${ARCH_ARGS} &&
54 make -j 1 &&
55 make install
56 }
58 # Rules to gen a SliTaz package suitable for Tazpkg.
59 genpkg_rules()
60 {
61 mkdir -p $fs/usr/share
62 cp -a $install/usr/bin $fs/usr
64 # Copy all libs. Do not hide gcc-lib-base.
65 cp -a $install/usr/lib* $fs/usr
67 # Include files.
68 cp -a $install/usr/include $fs/usr
70 # Remove build directory.
71 rm -rf $WOK/$PACKAGE/source/$PACKAGE-build
72 rm -rf $WOK/$PACKAGE/$PACKAGE-build
73 }