wok view gcc83/receipt @ rev 20954

gcc83: typos (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Mar 03 17:15:30 2019 +0100 (20 months ago)
parents 2b40600dab3c
children 98c0a4dac3e9
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=-${PACKAGE#gcc} \
49 --libdir=/usr/libgcc${PACKAGE#gcc} \
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 }