wok annotate 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
rev   line source
pascal@17845 1 # SliTaz package receipt.
pascal@17845 2
pascal@17845 3 PACKAGE="gcc49"
pascal@17845 4 SOURCE="gcc"
pascal@17845 5 VERSION="4.9.2"
pascal@17845 6 CATEGORY="development"
pascal@17845 7 SHORT_DESC="The the GNU Compiler Collection."
pascal@17845 8 MAINTAINER="pankso@slitaz.org"
pascal@17845 9 LICENSE="GPL2"
pascal@17845 10 TARBALL="$SOURCE-$VERSION.tar.bz2"
pascal@17845 11 WEB_SITE="http://gcc.gnu.org/"
pascal@17845 12 WGET_URL="ftp://gcc.gnu.org/pub/gcc/releases/gcc-$VERSION/$TARBALL"
pascal@17846 13 TAGS="compiler C C++"
pascal@17845 14
pascal@17845 15 # We need gawk since busybox awk is not sufficient. We have BUILD_DEPENDS
pascal@17845 16 # for cookutils that are not used by tazwok/cook-toolchain since it install
pascal@17845 17 # and use it's own copy.
pascal@17845 18 DEPENDS="binutils libgomp libobjc gcc-lib-base mpc-library elfutils"
pascal@17845 19 BUILD_DEPENDS="mpc-library mpfr-dev gmp-dev elfutils-dev"
pascal@17845 20
pascal@17845 21 # Rules to configure and make the package.
pascal@17845 22 compile_rules()
pascal@17845 23 {
pascal@17846 24 ARCH_ARGS="--with-tune=$ARCH"
pascal@17846 25 pkgversion="SliTaz"
pascal@17846 26 languages="c,c++"
pascal@17845 27
pascal@17845 28 # Use libiberty.a from binutils.
pascal@17845 29 sed -i 's/install_to_$(INSTALL_DEST) //' libiberty/Makefile.in || return 1
pascal@17845 30
pascal@17846 31 sed -i 's/^T_CFLAGS =$/& -fomit-frame-pointer/' gcc/Makefile.in
pascal@17845 32
pascal@17845 33 mkdir -p ../gcc-build && cd ../gcc-build
pascal@17845 34
pascal@17846 35 $src/configure \
pascal@17846 36 --libexecdir=/usr/lib \
pascal@17846 37 --enable-nls \
pascal@17846 38 --enable-languages=${languages} \
pascal@17846 39 --enable-shared \
pascal@17846 40 --with-system-zlib \
pascal@17846 41 --enable-clocale=gnu \
pascal@17846 42 --enable-objc-gc \
pascal@17846 43 --enable-__cxa_atexit \
pascal@17846 44 --enable-lto \
pascal@17846 45 --enable-threads=posix \
pascal@17846 46 --disable-bootstrap \
pascal@17846 47 --program-suffix=-49 \
pascal@17846 48 --with-pkgversion="$pkgversion" \
pascal@17846 49 ${CONFIGURE_ARGS} ${ARCH_ARGS} &&
pascal@17846 50 make && make install
pascal@17845 51 }
pascal@17845 52
pascal@17845 53 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@17845 54 genpkg_rules()
pascal@17845 55 {
pascal@17845 56 mkdir -p $fs/usr/share
pascal@17845 57 cp -a $install/usr/bin $fs/usr
pascal@17845 58
pascal@17847 59 # Copy all libs. Do not hide gcc-lib-base.
pascal@17845 60 cp -a $install/usr/lib $fs/usr
pascal@17847 61 rm -f $fs/usr/lib/libgcc_s.so*
pascal@17847 62 rm -f $fs/usr/lib/libstdc++.so*
pascal@17847 63 rm -f $fs/usr/lib/libgomp.so*
pascal@17845 64
pascal@17845 65 # Include files.
pascal@17845 66 cp -a $install/usr/include $fs/usr
pascal@17845 67
pascal@17845 68 # Remove build directory.
pascal@17845 69 rm -rf $WOK/$PACKAGE/source/$PACKAGE-build
pascal@17845 70 rm -rf $WOK/$PACKAGE/$PACKAGE-build
pascal@17845 71 }