wok-6.x annotate gcc54/receipt @ rev 25493

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