wok rev 19328
Add: gcc54 (5.4.0), gcc61 (6.1.0)
author | Alexander Medvedev <devl547@gmail.com> |
---|---|
date | Thu Jul 14 20:51:08 2016 +0000 (2016-07-14) |
parents | dd1a1c7a653a |
children | f080d02e591a |
files | gcc54-lib-base/receipt gcc54/description.txt gcc54/receipt gcc61-lib-base/receipt gcc61/description.txt gcc61/receipt |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/gcc54-lib-base/receipt Thu Jul 14 20:51:08 2016 +0000 1.3 @@ -0,0 +1,28 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="gcc54-lib-base" 1.7 +VERSION="5.4.0" 1.8 +CATEGORY="development" 1.9 +SHORT_DESC="GCC base libraries, libgcc_s and libstdc++." 1.10 +WEB_SITE="http://gcc.gnu.org/" 1.11 +MAINTAINER="pankso@slitaz.org" 1.12 +LICENSE="GPL2" 1.13 +WANTED="gcc54" 1.14 +PROVIDE="gcc-lib-base" 1.15 + 1.16 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.17 +genpkg_rules() 1.18 +{ 1.19 + mkdir -p $fs/usr/lib 1.20 + cp -a $install/usr/libgcc54/libgcc_s.so* $fs/usr/lib 1.21 + cp -a $install/usr/libgcc54/libstdc++.so* $fs/usr/lib 1.22 + rm -f $fs/usr/lib/*-gdb.py 1.23 +} 1.24 + 1.25 +post_remove() 1.26 +{ 1.27 + cd "$1/usr/lib" 1.28 + ln -s libstdc++.so.6.*.* libstdc++.so.6 1.29 + ln -s libstdc++.so.6.*.* libstdc++.so 1.30 + cd - >/dev/null 1.31 +}
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/gcc54/description.txt Thu Jul 14 20:51:08 2016 +0000 2.3 @@ -0,0 +1,3 @@ 2.4 +The GNU Compiler Collection includes front ends for C, C++, Objective-C, 2.5 +Fortran, Java, Ada, and Go, as well as libraries for these languages (libstdc++, 2.6 +libgcj,...).
3.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 3.2 +++ b/gcc54/receipt Thu Jul 14 20:51:08 2016 +0000 3.3 @@ -0,0 +1,69 @@ 3.4 +# SliTaz package receipt. 3.5 + 3.6 +PACKAGE="gcc54" 3.7 +SOURCE="gcc" 3.8 +VERSION="5.4.0" 3.9 +CATEGORY="development" 3.10 +SHORT_DESC="The the GNU Compiler Collection." 3.11 +MAINTAINER="pankso@slitaz.org" 3.12 +LICENSE="GPL2" 3.13 +TARBALL="$SOURCE-$VERSION.tar.bz2" 3.14 +WEB_SITE="http://gcc.gnu.org/" 3.15 +WGET_URL="ftp://gcc.gnu.org/pub/gcc/releases/gcc-$VERSION/$TARBALL" 3.16 +TAGS="compiler C C++" 3.17 + 3.18 +# We need gawk since busybox awk is not sufficient. We have BUILD_DEPENDS 3.19 +# for cookutils that are not used by tazwok/cook-toolchain since it install 3.20 +# and use it's own copy. 3.21 +DEPENDS="binutils libgomp libobjc gcc-lib-base mpc-library elfutils" 3.22 +BUILD_DEPENDS="mpc-library mpfr-dev gmp-dev elfutils-dev" 3.23 + 3.24 +# Rules to configure and make the package. 3.25 +compile_rules() 3.26 +{ 3.27 + ARCH_ARGS="--with-tune=$ARCH" 3.28 + pkgversion="SliTaz" 3.29 + languages="c,c++" 3.30 + 3.31 + # Use libiberty.a from binutils. 3.32 + sed -i 's/install_to_$(INSTALL_DEST) //' libiberty/Makefile.in || return 1 3.33 + 3.34 + sed -i 's/^T_CFLAGS =$/& -fomit-frame-pointer/' gcc/Makefile.in 3.35 + 3.36 + mkdir -p ../gcc-build && cd ../gcc-build 3.37 + 3.38 + $src/configure \ 3.39 + --libexecdir=/usr/lib \ 3.40 + --enable-nls \ 3.41 + --enable-languages=${languages} \ 3.42 + --enable-shared \ 3.43 + --with-system-zlib \ 3.44 + --enable-clocale=gnu \ 3.45 + --enable-objc-gc \ 3.46 + --enable-__cxa_atexit \ 3.47 + --enable-lto \ 3.48 + --enable-threads=posix \ 3.49 + --disable-bootstrap \ 3.50 + --program-suffix=-54 \ 3.51 + --libdir=/usr/libgcc54 \ 3.52 + --with-pkgversion="$pkgversion" \ 3.53 + ${CONFIGURE_ARGS} ${ARCH_ARGS} && 3.54 + make && make install 3.55 +} 3.56 + 3.57 +# Rules to gen a SliTaz package suitable for Tazpkg. 3.58 +genpkg_rules() 3.59 +{ 3.60 + mkdir -p $fs/usr/share 3.61 + cp -a $install/usr/bin $fs/usr 3.62 + 3.63 + # Copy all libs. Do not hide gcc-lib-base. 3.64 + cp -a $install/usr/lib* $fs/usr 3.65 + 3.66 + # Include files. 3.67 + cp -a $install/usr/include $fs/usr 3.68 + 3.69 + # Remove build directory. 3.70 + rm -rf $WOK/$PACKAGE/source/$PACKAGE-build 3.71 + rm -rf $WOK/$PACKAGE/$PACKAGE-build 3.72 +}
4.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 4.2 +++ b/gcc61-lib-base/receipt Thu Jul 14 20:51:08 2016 +0000 4.3 @@ -0,0 +1,28 @@ 4.4 +# SliTaz package receipt. 4.5 + 4.6 +PACKAGE="gcc61-lib-base" 4.7 +VERSION="6.1.0" 4.8 +CATEGORY="development" 4.9 +SHORT_DESC="GCC base libraries, libgcc_s and libstdc++." 4.10 +WEB_SITE="http://gcc.gnu.org/" 4.11 +MAINTAINER="pankso@slitaz.org" 4.12 +LICENSE="GPL2" 4.13 +WANTED="gcc61" 4.14 +PROVIDE="gcc-lib-base" 4.15 + 4.16 +# Rules to gen a SliTaz package suitable for Tazpkg. 4.17 +genpkg_rules() 4.18 +{ 4.19 + mkdir -p $fs/usr/lib 4.20 + cp -a $install/usr/libgcc61/libgcc_s.so* $fs/usr/lib 4.21 + cp -a $install/usr/libgcc61/libstdc++.so* $fs/usr/lib 4.22 + rm -f $fs/usr/lib/*-gdb.py 4.23 +} 4.24 + 4.25 +post_remove() 4.26 +{ 4.27 + cd "$1/usr/lib" 4.28 + ln -s libstdc++.so.6.*.* libstdc++.so.6 4.29 + ln -s libstdc++.so.6.*.* libstdc++.so 4.30 + cd - >/dev/null 4.31 +}
5.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 5.2 +++ b/gcc61/description.txt Thu Jul 14 20:51:08 2016 +0000 5.3 @@ -0,0 +1,3 @@ 5.4 +The GNU Compiler Collection includes front ends for C, C++, Objective-C, 5.5 +Fortran, Java, Ada, and Go, as well as libraries for these languages (libstdc++, 5.6 +libgcj,...).
6.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 6.2 +++ b/gcc61/receipt Thu Jul 14 20:51:08 2016 +0000 6.3 @@ -0,0 +1,69 @@ 6.4 +# SliTaz package receipt. 6.5 + 6.6 +PACKAGE="gcc61" 6.7 +SOURCE="gcc" 6.8 +VERSION="6.1.0" 6.9 +CATEGORY="development" 6.10 +SHORT_DESC="The the GNU Compiler Collection." 6.11 +MAINTAINER="pankso@slitaz.org" 6.12 +LICENSE="GPL2" 6.13 +TARBALL="$SOURCE-$VERSION.tar.bz2" 6.14 +WEB_SITE="http://gcc.gnu.org/" 6.15 +WGET_URL="ftp://gcc.gnu.org/pub/gcc/releases/gcc-$VERSION/$TARBALL" 6.16 +TAGS="compiler C C++" 6.17 + 6.18 +# We need gawk since busybox awk is not sufficient. We have BUILD_DEPENDS 6.19 +# for cookutils that are not used by tazwok/cook-toolchain since it install 6.20 +# and use it's own copy. 6.21 +DEPENDS="binutils libgomp libobjc gcc-lib-base mpc-library elfutils" 6.22 +BUILD_DEPENDS="mpc-library mpfr-dev gmp-dev elfutils-dev" 6.23 + 6.24 +# Rules to configure and make the package. 6.25 +compile_rules() 6.26 +{ 6.27 + ARCH_ARGS="--with-tune=$ARCH" 6.28 + pkgversion="SliTaz" 6.29 + languages="c,c++" 6.30 + 6.31 + # Use libiberty.a from binutils. 6.32 + sed -i 's/install_to_$(INSTALL_DEST) //' libiberty/Makefile.in || return 1 6.33 + 6.34 + sed -i 's/^T_CFLAGS =$/& -fomit-frame-pointer/' gcc/Makefile.in 6.35 + 6.36 + mkdir -p ../gcc-build && cd ../gcc-build 6.37 + 6.38 + $src/configure \ 6.39 + --libexecdir=/usr/lib \ 6.40 + --enable-nls \ 6.41 + --enable-languages=${languages} \ 6.42 + --enable-shared \ 6.43 + --with-system-zlib \ 6.44 + --enable-clocale=gnu \ 6.45 + --enable-objc-gc \ 6.46 + --enable-__cxa_atexit \ 6.47 + --enable-lto \ 6.48 + --enable-threads=posix \ 6.49 + --disable-bootstrap \ 6.50 + --program-suffix=-61 \ 6.51 + --libdir=/usr/libgcc61 \ 6.52 + --with-pkgversion="$pkgversion" \ 6.53 + ${CONFIGURE_ARGS} ${ARCH_ARGS} && 6.54 + make && make install 6.55 +} 6.56 + 6.57 +# Rules to gen a SliTaz package suitable for Tazpkg. 6.58 +genpkg_rules() 6.59 +{ 6.60 + mkdir -p $fs/usr/share 6.61 + cp -a $install/usr/bin $fs/usr 6.62 + 6.63 + # Copy all libs. Do not hide gcc-lib-base. 6.64 + cp -a $install/usr/lib* $fs/usr 6.65 + 6.66 + # Include files. 6.67 + cp -a $install/usr/include $fs/usr 6.68 + 6.69 + # Remove build directory. 6.70 + rm -rf $WOK/$PACKAGE/source/$PACKAGE-build 6.71 + rm -rf $WOK/$PACKAGE/$PACKAGE-build 6.72 +}