wok rev 19623

Add: gcc (6.3.0)
author Alexander Medvedev <devl547@gmail.com>
date Wed Jan 11 19:07:47 2017 +0000 (2017-01-11)
parents 9c81bcc2a3b7
children bf24c3d54874
files gcc63-lib-base/receipt gcc63/description.txt gcc63/receipt
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/gcc63-lib-base/receipt	Wed Jan 11 19:07:47 2017 +0000
     1.3 @@ -0,0 +1,28 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="gcc63-lib-base"
     1.7 +VERSION="6.3.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="gcc63"
    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/libgcc63/libgcc_s.so* $fs/usr/lib
    1.21 +	cp -a $install/usr/libgcc63/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/gcc63/description.txt	Wed Jan 11 19:07:47 2017 +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/gcc63/receipt	Wed Jan 11 19:07:47 2017 +0000
     3.3 @@ -0,0 +1,69 @@
     3.4 +# SliTaz package receipt.
     3.5 +
     3.6 +PACKAGE="gcc63"
     3.7 +SOURCE="gcc"
     3.8 +VERSION="6.3.0"
     3.9 +CATEGORY="development"
    3.10 +SHORT_DESC="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 installs
    3.20 +# and uses its 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=-63 \
    3.51 +		--libdir=/usr/libgcc63 \
    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 +}