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