wok-current annotate gcc63/receipt @ rev 19759

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