wok view gcc63/receipt @ rev 25624

Add opendkim
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Nov 08 16:45:57 2023 +0000 (12 months ago)
parents 52649f27a0da
children
line source
1 # SliTaz package receipt.
3 PACKAGE="gcc63"
4 SOURCE="gcc"
5 VERSION="6.3.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 # What is the latest version available today?
22 current_version()
23 {
24 wget -O - https://ftp.gnu.org/gnu/$SOURCE/ 2>/dev/null | \
25 sed '/gcc-6\.3/!d;s|.*gcc-||;s|.t.*||;s|/.*||' | sort -Vr | sed q
26 }
28 # Rules to configure and make the package.
29 compile_rules()
30 {
31 ARCH_ARGS="--with-tune=$ARCH"
32 pkgversion="SliTaz"
33 languages="c,c++"
35 # Use libiberty.a from binutils.
36 sed -i 's/install_to_$(INSTALL_DEST) //' libiberty/Makefile.in || return 1
38 sed -i 's/^T_CFLAGS =$/& -fomit-frame-pointer/' gcc/Makefile.in
40 mkdir -p ../gcc-build && cd ../gcc-build
42 $src/configure \
43 --libexecdir=/usr/lib \
44 --enable-nls \
45 --enable-languages=${languages} \
46 --enable-shared \
47 --with-system-zlib \
48 --enable-clocale=gnu \
49 --enable-objc-gc \
50 --enable-__cxa_atexit \
51 --enable-lto \
52 --enable-threads=posix \
53 --disable-bootstrap \
54 --program-suffix=-63 \
55 --libdir=/usr/libgcc63 \
56 --with-pkgversion="$pkgversion" \
57 ${CONFIGURE_ARGS} ${ARCH_ARGS} &&
58 make && make install
59 }
61 # Rules to gen a SliTaz package suitable for Tazpkg.
62 genpkg_rules()
63 {
64 mkdir -p $fs/usr/share
65 cp -a $install/usr/bin $fs/usr
67 # Copy all libs. Do not hide gcc-lib-base.
68 cp -a $install/usr/lib* $fs/usr
70 # Include files.
71 cp -a $install/usr/include $fs/usr
73 # Remove build directory.
74 rm -rf $WOK/$PACKAGE/source/$PACKAGE-build
75 rm -rf $WOK/$PACKAGE/$PACKAGE-build
76 }