wok annotate gcc54/receipt @ rev 20740

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