wok view gcc61/receipt @ rev 22603
updated cmus (2.5.0 -> 2.8.0)
author | Hans-G?nter Theisgen |
---|---|
date | Thu Jan 09 08:10:35 2020 +0100 (2020-01-09) |
parents | 232cc8814046 |
children | 52649f27a0da |
line source
1 # SliTaz package receipt.
3 PACKAGE="gcc61"
4 SOURCE="gcc"
5 VERSION="6.1.0"
6 CATEGORY="development"
7 SHORT_DESC="The GNU Compiler Collection."
8 MAINTAINER="pankso@slitaz.org"
9 LICENSE="GPL2"
10 TARBALL="$SOURCE-$VERSION.tar.bz2"
11 WEB_SITE="http://gcc.gnu.org/"
12 WGET_URL="ftp://gcc.gnu.org/pub/gcc/releases/gcc-$VERSION/$TARBALL"
13 TAGS="compiler C C++"
15 # We need gawk since busybox awk is not sufficient. We have BUILD_DEPENDS
16 # for cookutils that are not used by tazwok/cook-toolchain since it installs
17 # and uses its own copy.
18 DEPENDS="binutils libgomp libobjc gcc-lib-base mpc-library elfutils"
19 BUILD_DEPENDS="mpc-library mpfr-dev gmp-dev elfutils-dev"
21 # Rules to configure and make the package.
22 compile_rules()
23 {
24 ARCH_ARGS="--with-tune=$ARCH"
25 pkgversion="SliTaz"
26 languages="c,c++"
28 # Use libiberty.a from binutils.
29 sed -i 's/install_to_$(INSTALL_DEST) //' libiberty/Makefile.in || return 1
31 sed -i 's/^T_CFLAGS =$/& -fomit-frame-pointer/' gcc/Makefile.in
33 mkdir -p ../gcc-build && cd ../gcc-build
35 $src/configure \
36 --libexecdir=/usr/lib \
37 --enable-nls \
38 --enable-languages=${languages} \
39 --enable-shared \
40 --with-system-zlib \
41 --enable-clocale=gnu \
42 --enable-objc-gc \
43 --enable-__cxa_atexit \
44 --enable-lto \
45 --enable-threads=posix \
46 --disable-bootstrap \
47 --program-suffix=-61 \
48 --libdir=/usr/libgcc61 \
49 --with-pkgversion="$pkgversion" \
50 ${CONFIGURE_ARGS} ${ARCH_ARGS} &&
51 make && make install
52 }
54 # Rules to gen a SliTaz package suitable for Tazpkg.
55 genpkg_rules()
56 {
57 mkdir -p $fs/usr/share
58 cp -a $install/usr/bin $fs/usr
60 # Copy all libs. Do not hide gcc-lib-base.
61 cp -a $install/usr/lib* $fs/usr
63 # Include files.
64 cp -a $install/usr/include $fs/usr
66 # Remove build directory.
67 rm -rf $WOK/$PACKAGE/source/$PACKAGE-build
68 rm -rf $WOK/$PACKAGE/$PACKAGE-build
69 }