wok-6.x view gcc49/receipt @ rev 17847

gcc49: do not hide gcc-lib-base
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Mar 24 12:51:51 2015 +0100 (2015-03-24)
parents ae76ef329371
children b5c9023ea138
line source
1 # SliTaz package receipt.
3 PACKAGE="gcc49"
4 SOURCE="gcc"
5 VERSION="4.9.2"
6 CATEGORY="development"
7 SHORT_DESC="The 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 install
17 # and use it's 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=-49 \
48 --with-pkgversion="$pkgversion" \
49 ${CONFIGURE_ARGS} ${ARCH_ARGS} &&
50 make && make install
51 }
53 # Rules to gen a SliTaz package suitable for Tazpkg.
54 genpkg_rules()
55 {
56 mkdir -p $fs/usr/share
57 cp -a $install/usr/bin $fs/usr
59 # Copy all libs. Do not hide gcc-lib-base.
60 cp -a $install/usr/lib $fs/usr
61 rm -f $fs/usr/lib/libgcc_s.so*
62 rm -f $fs/usr/lib/libstdc++.so*
63 rm -f $fs/usr/lib/libgomp.so*
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 }