wok rev 20951
created gcc83
author | Hans-G?nter Theisgen |
---|---|
date | Sun Mar 03 16:35:23 2019 +0100 (2019-03-03) |
parents | c879e3205be9 |
children | c0a01cbf7cda |
files | gcc83/receipt |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/gcc83/receipt Sun Mar 03 16:35:23 2019 +0100 1.3 @@ -0,0 +1,71 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="gcc83" 1.7 +SOURCE="gcc" 1.8 +VERSION="8.3.0" 1.9 +CATEGORY="development" 1.10 +TAGS="compiler C C++" 1.11 +SHORT_DESC="The GNU Compiler Collection." 1.12 +MAINTAINER="pankso@slitaz.org" 1.13 +LICENSE="GPL2" 1.14 +WEB_SITE="https://gcc.gnu.org/" 1.15 + 1.16 +TARBALL="$SOURCE-$VERSION.tar.bz2" 1.17 +WGET_URL="ftp://gcc.gnu.org/pub/gcc/releases/gcc-$VERSION/$TARBALL" 1.18 + 1.19 +# We need gawk since busybox awk is not sufficient. We have BUILD_DEPENDS 1.20 +# for cookutils that are not used by tazwok/cook-toolchain since it installs 1.21 +# and uses its own copy. 1.22 +DEPENDS="binutils elfutils gcc-lib-base libgomp libobjc mpc-library" 1.23 +BUILD_DEPENDS="elfutils-dev gmp-dev mpc-library mpfr-dev" 1.24 + 1.25 +# Rules to configure and make the package. 1.26 +compile_rules() 1.27 +{ 1.28 + ARCH_ARGS="--with-tune=$ARCH" 1.29 + pkgversion="SliTaz" 1.30 + languages="c,c++" 1.31 + 1.32 + # Use libiberty.a from binutils. 1.33 + sed -i 's/install_to_$(INSTALL_DEST) //' libiberty/Makefile.in || return 1 1.34 + 1.35 + sed -i 's/^T_CFLAGS =$/& -fomit-frame-pointer/' gcc/Makefile.in 1.36 + 1.37 + mkdir -p ../gcc-build && cd ../gcc-build 1.38 + 1.39 + $src/configure \ 1.40 + --libexecdir=/usr/lib \ 1.41 + --enable-nls \ 1.42 + --enable-languages=${languages} \ 1.43 + --enable-shared \ 1.44 + --with-system-zlib \ 1.45 + --enable-clocale=gnu \ 1.46 + --enable-objc-gc \ 1.47 + --enable-__cxa_atexit \ 1.48 + --enable-lto \ 1.49 + --enable-threads=posix \ 1.50 + --disable-bootstrap \ 1.51 + --program-suffix=-63 \ 1.52 + --libdir=/usr/libgcc63 \ 1.53 + --with-pkgversion="$pkgversion" \ 1.54 + ${CONFIGURE_ARGS} ${ARCH_ARGS} && 1.55 + make -j 1 && 1.56 + make install 1.57 +} 1.58 + 1.59 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.60 +genpkg_rules() 1.61 +{ 1.62 + mkdir -p $fs/usr/share 1.63 + cp -a $install/usr/bin $fs/usr 1.64 + 1.65 + # Copy all libs. Do not hide gcc-lib-base. 1.66 + cp -a $install/usr/lib* $fs/usr 1.67 + 1.68 + # Include files. 1.69 + cp -a $install/usr/include $fs/usr 1.70 + 1.71 + # Remove build directory. 1.72 + rm -rf $WOK/$PACKAGE/source/$PACKAGE-build 1.73 + rm -rf $WOK/$PACKAGE/$PACKAGE-build 1.74 +}