wok-current rev 17849

Add gcc49-lib-base
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Mar 24 17:40:10 2015 +0100 (2015-03-24)
parents 7bad8bebfb68
children b295d522518c
files gcc49-lib-base/receipt gcc49/receipt llvm/receipt
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/gcc49-lib-base/receipt	Tue Mar 24 17:40:10 2015 +0100
     1.3 @@ -0,0 +1,28 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="gcc49-lib-base"
     1.7 +VERSION="4.9.2"
     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="gcc49"
    1.14 +PROVIDES="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/libgcc49/libgcc_s.so* $fs/usr/lib
    1.21 +	cp -a $install/usr/libgcc49/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 --- a/gcc49/receipt	Tue Mar 24 15:46:17 2015 +0000
     2.2 +++ b/gcc49/receipt	Tue Mar 24 17:40:10 2015 +0100
     2.3 @@ -45,6 +45,7 @@
     2.4  		--enable-threads=posix \
     2.5  		--disable-bootstrap \
     2.6  		--program-suffix=-49 \
     2.7 +		--libdir=/usr/libgcc49 \
     2.8  		--with-pkgversion="$pkgversion" \
     2.9  		${CONFIGURE_ARGS} ${ARCH_ARGS} &&
    2.10  	make && make install
    2.11 @@ -57,10 +58,7 @@
    2.12  	cp -a $install/usr/bin $fs/usr
    2.13  
    2.14  	# Copy all libs. Do not hide gcc-lib-base.
    2.15 -	cp -a $install/usr/lib $fs/usr
    2.16 -	rm -f $fs/usr/lib/libgcc_s.so*
    2.17 -	rm -f $fs/usr/lib/libstdc++.so*
    2.18 -	rm -f $fs/usr/lib/libgomp.so*
    2.19 +	cp -a $install/usr/lib* $fs/usr
    2.20  
    2.21  	# Include files.
    2.22  	cp -a $install/usr/include $fs/usr
     3.1 --- a/llvm/receipt	Tue Mar 24 15:46:17 2015 +0000
     3.2 +++ b/llvm/receipt	Tue Mar 24 17:40:10 2015 +0100
     3.3 @@ -10,12 +10,13 @@
     3.4  TARBALL="$PACKAGE-$VERSION.src.tar.xz"
     3.5  WGET_URL="${WEB_SITE}releases/$VERSION/$TARBALL"
     3.6  
     3.7 -DEPENDS="libffi gcc-lib-base"
     3.8 +DEPENDS="libffi gcc49-lib-base"
     3.9  BUILD_DEPENDS="libffi-dev libffi perl gcc49"
    3.10  
    3.11  # Rules to configure and make the package.
    3.12  compile_rules()
    3.13  {
    3.14 +	export LD_LIBRARY_PATH="/usr/libgcc49:$LD_LIBRARY_PATH"
    3.15  	./configure CC=gcc-49 CXX=g++-49 \
    3.16  		--prefix=/usr --sysconfdir=/etc \
    3.17  		--enable-libffi \