wok view gcc83/receipt @ rev 20952

gcc83: replaced gz2 by xz
author Hans-G?nter Theisgen
date Sun Mar 03 16:41:52 2019 +0100 (2019-03-03)
parents 28c0bf36029a
children 2b40600dab3c
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 $src/configure \
37 --libexecdir=/usr/lib \
38 --enable-nls \
39 --enable-languages=${languages} \
40 --enable-shared \
41 --with-system-zlib \
42 --enable-clocale=gnu \
43 --enable-objc-gc \
44 --enable-__cxa_atexit \
45 --enable-lto \
46 --enable-threads=posix \
47 --disable-bootstrap \
48 --program-suffix=-63 \
49 --libdir=/usr/libgcc63 \
50 --with-pkgversion="$pkgversion" \
51 ${CONFIGURE_ARGS} ${ARCH_ARGS} &&
52 make -j 1 &&
53 make install
54 }
56 # Rules to gen a SliTaz package suitable for Tazpkg.
57 genpkg_rules()
58 {
59 mkdir -p $fs/usr/share
60 cp -a $install/usr/bin $fs/usr
62 # Copy all libs. Do not hide gcc-lib-base.
63 cp -a $install/usr/lib* $fs/usr
65 # Include files.
66 cp -a $install/usr/include $fs/usr
68 # Remove build directory.
69 rm -rf $WOK/$PACKAGE/source/$PACKAGE-build
70 rm -rf $WOK/$PACKAGE/$PACKAGE-build
71 }