wok-current rev 8629

Fix: mingw32-gcc now compile well using tazwoi-experimental; it's two additionnal sources are now declared.
author Antoine Bodin <gokhlayeh@slitaz.org>
date Tue Feb 15 03:16:10 2011 +0100 (2011-02-15)
parents 680a9347846a
children ad41e83c14bc
files mingw32-ada/receipt mingw32-g++/receipt mingw32-gcc-c/receipt mingw32-gcc/receipt
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/mingw32-ada/receipt	Tue Feb 15 03:16:10 2011 +0100
     1.3 @@ -0,0 +1,19 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="mingw32-ada"
     1.7 +SOURCE="gcc-ada"
     1.8 +VERSION="3.4.5-20060117-2"
     1.9 +CATEGORY="development"
    1.10 +SHORT_DESC="MinGW32 ada sources (empty package)."
    1.11 +MAINTAINER="gokhlayeh@mailoo.org"
    1.12 +TARBALL="$SOURCE-$VERSION-src.tar.gz"
    1.13 +WEB_SITE="http://www.mingw.org/"
    1.14 +MINGW32_URL="$SF_MIRROR/mingw"
    1.15 +WGET_URL="$MINGW32_URL/$TARBALL"
    1.16 +
    1.17 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.18 +genpkg_rules()
    1.19 +{
    1.20 +	mkdir -p $fs/usr
    1.21 +}
    1.22 +
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/mingw32-g++/receipt	Tue Feb 15 03:16:10 2011 +0100
     2.3 @@ -0,0 +1,19 @@
     2.4 +# SliTaz package receipt.
     2.5 +
     2.6 +PACKAGE="mingw32-g++"
     2.7 +SOURCE="gcc-g++"
     2.8 +VERSION="3.4.5-20060117-2"
     2.9 +CATEGORY="development"
    2.10 +SHORT_DESC="MinGW32 c++ sources (empty package)."
    2.11 +MAINTAINER="gokhlayeh@mailoo.org"
    2.12 +TARBALL="$SOURCE-$VERSION-src.tar.gz"
    2.13 +WEB_SITE="http://www.mingw.org/"
    2.14 +MINGW32_URL="$SF_MIRROR/mingw"
    2.15 +WGET_URL="$MINGW32_URL/$TARBALL"
    2.16 +
    2.17 +# Rules to gen a SliTaz package suitable for Tazpkg.
    2.18 +genpkg_rules()
    2.19 +{
    2.20 +	mkdir -p $fs/usr
    2.21 +}
    2.22 +
     3.1 --- a/mingw32-gcc-c/receipt	Tue Feb 15 03:14:29 2011 +0100
     3.2 +++ b/mingw32-gcc-c/receipt	Tue Feb 15 03:16:10 2011 +0100
     3.3 @@ -1,14 +1,14 @@
     3.4  # SliTaz package receipt.
     3.5  
     3.6  PACKAGE="mingw32-gcc-c"
     3.7 -SOURCE="gcc"
     3.8 +SOURCE="gcc-core"
     3.9  VERSION="3.4.5-20060117-2"
    3.10  CATEGORY="development"
    3.11  SHORT_DESC="MinGW32 gcc, for the C language only."
    3.12  MAINTAINER="rcx@zoominternet.net"
    3.13  DEPENDS="glibc-base mingw32-binutils mingw32-w32api-headers mingw32-runtime-headers"
    3.14  BUILD_DEPENDS="slitaz-toolchain bison flex mingw32-binutils mingw32-runtime-headers mingw32-w32api-headers"
    3.15 -TARBALL="$SOURCE-core-$VERSION-src.tar.gz"
    3.16 +TARBALL="$SOURCE-$VERSION-src.tar.gz"
    3.17  WEB_SITE="http://www.mingw.org/"
    3.18  MINGW32_URL="$SF_MIRROR/mingw"
    3.19  WGET_URL="$MINGW32_URL/$TARBALL"
     4.1 --- a/mingw32-gcc/receipt	Tue Feb 15 03:14:29 2011 +0100
     4.2 +++ b/mingw32-gcc/receipt	Tue Feb 15 03:16:10 2011 +0100
     4.3 @@ -1,15 +1,18 @@
     4.4  # SliTaz package receipt.
     4.5  
     4.6  PACKAGE="mingw32-gcc"
     4.7 -SOURCE="gcc"
     4.8 +SOURCE="gcc-core"
     4.9  VERSION="3.4.5-20060117-2"
    4.10  CATEGORY="development"
    4.11  SHORT_DESC="MinGW32 gcc, for C, C++, and Ada."
    4.12  MAINTAINER="rcx@zoominternet.net"
    4.13 -DEPENDS="glibc-base mingw32-binutils mingw32-w32api-headers mingw32-runtime-headers mingw32-w32api mingw32-runtime"
    4.14 -BUILD_DEPENDS="slitaz-toolchain bison flex mingw32-binutils mingw32-runtime-headers mingw32-w32api-headers mingw32-gcc-c mingw32-w32api mingw32-runtime"
    4.15 +DEPENDS="glibc-base mingw32-binutils mingw32-w32api-headers \
    4.16 +mingw32-runtime-headers mingw32-w32api mingw32-runtime"
    4.17 +BUILD_DEPENDS="slitaz-toolchain bison flex mingw32-binutils \
    4.18 +mingw32-runtime-headers mingw32-w32api-headers mingw32-gcc-c \
    4.19 +mingw32-w32api mingw32-runtime mingw32-g++ mingw32-ada"
    4.20  PROVIDE="mingw32-gcc-c"
    4.21 -TARBALL="$SOURCE-core-$VERSION-src.tar.gz"
    4.22 +TARBALL="$SOURCE-$VERSION-src.tar.gz"
    4.23  WEB_SITE="http://www.mingw.org/"
    4.24  MINGW32_URL="$SF_MIRROR/mingw"
    4.25  WGET_URL="$MINGW32_URL/$TARBALL"
    4.26 @@ -28,34 +31,20 @@
    4.27  		return 1
    4.28  	fi
    4.29  
    4.30 -	MINGW32_DIR="$PWD"
    4.31 -	MINGW32_CPP_TARBALL="$SOURCE-g++-$VERSION-src.tar.gz"
    4.32 -	MINGW32_ADA_TARBALL="$SOURCE-ada-$VERSION-src.tar.gz"
    4.33 -	
    4.34 -	for gcc_tgz in $MINGW32_CPP_TARBALL $MINGW32_ADA_TARBALL ; do
    4.35 -		# Download the additional language tarballs
    4.36 -		if [ ! -f "$SOURCES_REPOSITORY/$gcc_tgz" ] ; then
    4.37 -			cd $SOURCES_REPOSITORY
    4.38 -			download $MINGW32_URL/$gcc_tgz
    4.39 -		fi
    4.40 -		
    4.41 -		# Extract the additional language tarballs
    4.42 -		if [ -f "$SOURCES_REPOSITORY/$gcc_tgz" ] ; then
    4.43 -			cd $MINGW32_DIR
    4.44 -			echo "Extracting $gcc_tgz ..."
    4.45 -			tar xzf "$SOURCES_REPOSITORY/$gcc_tgz"
    4.46 -		else
    4.47 -			# Exit if file not found to avoid errors.
    4.48 -			echo -e "\nDownload of $gcc_tgz failed, exiting. Please check the URL.\n"
    4.49 -			return 1
    4.50 -		fi
    4.51 +	report open-bloc
    4.52 +
    4.53 +	for s in mingw32-g++ mingw32-ada; do
    4.54 +		tazwok get-src $s --target=$PACKAGE-$VERSION && continue
    4.55 +		report close-bloc
    4.56 +		return 1
    4.57  	done
    4.58 -	
    4.59 -	cd $MINGW32_DIR
    4.60 +
    4.61 +	report step "Running compilation"
    4.62  
    4.63  	rm -f -r $src/binutils
    4.64  	mkdir -p $SOURCE-$VERSION-build
    4.65  	cd $SOURCE-$VERSION-build
    4.66 +	{
    4.67  	$src/configure \
    4.68  		--prefix=/usr \
    4.69  		--libexecdir=/usr/lib \
    4.70 @@ -71,7 +60,9 @@
    4.71  		--enable-sjlj-exceptions \
    4.72  		$CONFIGURE_ARGS &&
    4.73  	make -j 4 CFLAGS="-O2 -fomit-frame-pointer" LDFLAGS="-s"  &&
    4.74 -	make DESTDIR=$src/_pkg install
    4.75 +	make DESTDIR=$src/_pkg install &&
    4.76 +	report close-bloc
    4.77 +	} || { report close-bloc; return 1; }
    4.78  }
    4.79  
    4.80  # Rules to gen a SliTaz package suitable for Tazpkg.
    4.81 @@ -99,5 +90,5 @@
    4.82  # Rules to clean the package
    4.83  clean_wok()
    4.84  {
    4.85 -	rm -r $SOURCE-$VERSION-build
    4.86 +	rm -rf $SOURCE-$VERSION-build
    4.87  }