wok-undigest rev 710

move mingw32-* to wok
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue May 29 17:24:19 2012 +0200 (2012-05-29)
parents 8751cfc604ef
children d5da97bfc0f8
files mingw32-ada/receipt mingw32-binutils/receipt mingw32-g++/receipt mingw32-gcc-c/receipt mingw32-gcc/receipt mingw32-runtime-headers/receipt mingw32-runtime/receipt mingw32-toolchain/receipt mingw32-toolchain/stuff/mingw32.conf mingw32-w32api-headers/receipt mingw32-w32api/receipt
line diff
     1.1 --- a/mingw32-ada/receipt	Tue May 29 16:51:30 2012 +0200
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,19 +0,0 @@
     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="meta"
    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 --- a/mingw32-binutils/receipt	Tue May 29 16:51:30 2012 +0200
     2.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.3 @@ -1,49 +0,0 @@
     2.4 -# SliTaz package receipt.
     2.5 -
     2.6 -PACKAGE="mingw32-binutils"
     2.7 -SOURCE="binutils"
     2.8 -VERSION="2.19.1"
     2.9 -CATEGORY="development"
    2.10 -SHORT_DESC="MinGW32 binutils."
    2.11 -MAINTAINER="rcx@zoominternet.net"
    2.12 -DEPENDS="glibc-base zlib"
    2.13 -BUILD_DEPENDS="slitaz-toolchain bison flex"
    2.14 -TARBALL="$SOURCE-$VERSION-src.tar.gz"
    2.15 -WEB_SITE="http://www.mingw.org/"
    2.16 -WGET_URL="$SF_MIRROR/mingw/$TARBALL"
    2.17 -
    2.18 -# Configuration only needs included if we're in the build/wok environment
    2.19 -if [ -e $WOK/mingw32-toolchain/stuff/mingw32.conf ] ; then
    2.20 -	. $WOK/mingw32-toolchain/stuff/mingw32.conf
    2.21 -fi
    2.22 -
    2.23 -# Rules to configure and make the package.
    2.24 -compile_rules()
    2.25 -{
    2.26 -	cd $src
    2.27 -	./configure \
    2.28 -		--prefix=/usr \
    2.29 -		--infodir=/usr/share/info \
    2.30 -		--mandir=/usr/share/man \
    2.31 -		--with-sysroot=$MINGW32_ROOT \
    2.32 -		--disable-shared \
    2.33 -		--disable-debug \
    2.34 -		--target=$MINGW32_TARGET \
    2.35 -		$CONFIGURE_ARGS &&
    2.36 -	make CFLAGS="-O2 -fno-exceptions -Wno-error=unused-but-set-variable" LDFLAGS="-s" &&
    2.37 -	make DESTDIR=$DESTDIR install
    2.38 -}
    2.39 -
    2.40 -# Rules to gen a SliTaz package suitable for Tazpkg.
    2.41 -genpkg_rules()
    2.42 -{
    2.43 -	mkdir -p $fs/usr/lib $fs$MINGW32_ROOT
    2.44 -	cp -a $_pkg/usr/bin $fs/usr
    2.45 -	cp -a $_pkg$MINGW32_ROOT/* $fs$MINGW32_ROOT
    2.46 -	# do not need to copy lib/libiberty.a
    2.47 -
    2.48 -	strip -s $fs$MINGW32_ROOT/bin/*
    2.49 -	
    2.50 -	#Create a symlink for --with-sysroot
    2.51 -	ln -s . $fs$MINGW32_ROOT/usr
    2.52 -}
     3.1 --- a/mingw32-g++/receipt	Tue May 29 16:51:30 2012 +0200
     3.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.3 @@ -1,19 +0,0 @@
     3.4 -# SliTaz package receipt.
     3.5 -
     3.6 -PACKAGE="mingw32-g++"
     3.7 -SOURCE="gcc-g++"
     3.8 -VERSION="3.4.5-20060117-2"
     3.9 -CATEGORY="meta"
    3.10 -SHORT_DESC="MinGW32 c++ sources (empty package)."
    3.11 -MAINTAINER="gokhlayeh@mailoo.org"
    3.12 -TARBALL="$SOURCE-$VERSION-src.tar.gz"
    3.13 -WEB_SITE="http://www.mingw.org/"
    3.14 -MINGW32_URL="$SF_MIRROR/mingw"
    3.15 -WGET_URL="$MINGW32_URL/$TARBALL"
    3.16 -
    3.17 -# Rules to gen a SliTaz package suitable for Tazpkg.
    3.18 -genpkg_rules()
    3.19 -{
    3.20 -	mkdir -p $fs/usr
    3.21 -}
    3.22 -
     4.1 --- a/mingw32-gcc-c/receipt	Tue May 29 16:51:30 2012 +0200
     4.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.3 @@ -1,74 +0,0 @@
     4.4 -# SliTaz package receipt.
     4.5 -
     4.6 -PACKAGE="mingw32-gcc-c"
     4.7 -SOURCE="gcc-core"
     4.8 -VERSION="3.4.5-20060117-2"
     4.9 -CATEGORY="development"
    4.10 -SHORT_DESC="MinGW32 gcc, for the C language only."
    4.11 -MAINTAINER="rcx@zoominternet.net"
    4.12 -DEPENDS="glibc-base mingw32-binutils mingw32-w32api-headers mingw32-runtime-headers"
    4.13 -BUILD_DEPENDS="slitaz-toolchain bison flex mingw32-binutils mingw32-runtime-headers mingw32-w32api-headers"
    4.14 -TARBALL="$SOURCE-$VERSION-src.tar.gz"
    4.15 -WEB_SITE="http://www.mingw.org/"
    4.16 -MINGW32_URL="$SF_MIRROR/mingw"
    4.17 -WGET_URL="$MINGW32_URL/$TARBALL"
    4.18 -MINGW32_ID="i586-pc-mingw32"
    4.19 -
    4.20 -# Configuration only needs included if we're in the build/wok environment
    4.21 -if [ -e $WOK/mingw32-toolchain/stuff/mingw32.conf ] ; then
    4.22 -	. $WOK/mingw32-toolchain/stuff/mingw32.conf
    4.23 -fi
    4.24 -
    4.25 -# Rules to configure and make the package.
    4.26 -compile_rules()
    4.27 -{
    4.28 -	if [ "$MINGW32_ID" != "$MINGW32_TARGET" ] ; then
    4.29 -		echo "ERROR: Conf 'TARGET' string differs from Receipt 'ID' string"
    4.30 -		return 1
    4.31 -	fi
    4.32 -
    4.33 -	rm -f -r $src/binutils
    4.34 -	mkdir -p $SOURCE-$VERSION-build
    4.35 -	cd $SOURCE-$VERSION-build
    4.36 -	$src/configure \
    4.37 -		--prefix=/usr \
    4.38 -		--libexecdir=/usr/lib \
    4.39 -		--infodir=/usr/share/info \
    4.40 -		--mandir=/usr/share/man \
    4.41 -		--with-sysroot=$MINGW32_ROOT \
    4.42 -		--disable-shared \
    4.43 -		--disable-debug \
    4.44 -		--target=$MINGW32_TARGET \
    4.45 -		--enable-languages=c \
    4.46 -		--enable-threads=win32 \
    4.47 -		--disable-win32-registry \
    4.48 -		--enable-sjlj-exceptions \
    4.49 -		$CONFIGURE_ARGS &&
    4.50 -	make CFLAGS="-O2 -fomit-frame-pointer" LDFLAGS="-s"  &&
    4.51 -	make DESTDIR=$src/_pkg install
    4.52 -}
    4.53 -
    4.54 -# Rules to gen a SliTaz package suitable for Tazpkg.
    4.55 -genpkg_rules()
    4.56 -{
    4.57 -	mkdir -p $fs/usr
    4.58 -	cp -a $_pkg/usr/bin $fs/usr
    4.59 -	# do not need to copy lib/libiberty.a
    4.60 -	mkdir -p $fs/usr/lib
    4.61 -	cp -a $_pkg/usr/lib/gcc $fs/usr/lib
    4.62 -}
    4.63 -
    4.64 -# Rules to setup after installation
    4.65 -post_install()
    4.66 -{
    4.67 -	# Archives get stripped during packaging; need to run ranlib
    4.68 -	local root
    4.69 -	root=$1
    4.70 -	find $root/usr/lib/gcc/$MINGW32_ID/ -name *.a -exec $MINGW32_ID-ranlib {} \;
    4.71 -}
    4.72 -
    4.73 -# Rules to clean the package
    4.74 -clean_wok()
    4.75 -{
    4.76 -	rm -r $SOURCE-$VERSION-build
    4.77 -}
     5.1 --- a/mingw32-gcc/receipt	Tue May 29 16:51:30 2012 +0200
     5.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     5.3 @@ -1,91 +0,0 @@
     5.4 -# SliTaz package receipt.
     5.5 -
     5.6 -PACKAGE="mingw32-gcc"
     5.7 -SOURCE="gcc-core"
     5.8 -VERSION="3.4.5-20060117-2"
     5.9 -CATEGORY="development"
    5.10 -SHORT_DESC="MinGW32 gcc, for C, C++, and Ada."
    5.11 -MAINTAINER="rcx@zoominternet.net"
    5.12 -DEPENDS="glibc-base mingw32-binutils mingw32-w32api-headers \
    5.13 -mingw32-runtime-headers mingw32-w32api mingw32-runtime"
    5.14 -BUILD_DEPENDS="slitaz-toolchain bison flex mingw32-binutils \
    5.15 -mingw32-runtime-headers mingw32-w32api-headers mingw32-gcc-c \
    5.16 -mingw32-w32api mingw32-runtime"
    5.17 -PROVIDE="mingw32-gcc-c"
    5.18 -TARBALL="$SOURCE-$VERSION-src.tar.gz"
    5.19 -WEB_SITE="http://www.mingw.org/"
    5.20 -MINGW32_URL="$SF_MIRROR/mingw"
    5.21 -WGET_URL="$MINGW32_URL/$TARBALL"
    5.22 -MINGW32_ID="i586-pc-mingw32"
    5.23 -
    5.24 -# Configuration only needs included if we're in the build/wok environment
    5.25 -if [ -e $WOK/mingw32-toolchain/stuff/mingw32.conf ] ; then
    5.26 -	. $WOK/mingw32-toolchain/stuff/mingw32.conf
    5.27 -fi
    5.28 -
    5.29 -# Rules to configure and make the package.
    5.30 -compile_rules()
    5.31 -{
    5.32 -	if [ "$MINGW32_ID" != "$MINGW32_TARGET" ] ; then
    5.33 -		echo "ERROR: Conf 'TARGET' string differs from Receipt 'ID' string"
    5.34 -		return 1
    5.35 -	fi
    5.36 -
    5.37 -	for tgz in gcc-g++-$VERSION-src.tar.gz gcc-ada-$VERSION-src.tar.gz; do
    5.38 -		[ -s $SOURCES_REPOSITORY/$tgz ] ||
    5.39 -			wget -P $SOURCES_REPOSITORY $MINGW32_URL/$tgz
    5.40 -		[ -s $SOURCES_REPOSITORY/$tgz ] &&
    5.41 -			tar xzf $SOURCES_REPOSITORY/$tgz && continue
    5.42 -		echo "Can't download $MINGW32_URL/$tgz abort."
    5.43 -		return 1
    5.44 -	done
    5.45 -
    5.46 -	rm -f -r $src/binutils
    5.47 -	mkdir -p $SOURCE-$VERSION-build
    5.48 -	cd $SOURCE-$VERSION-build
    5.49 -	$src/configure \
    5.50 -		--prefix=/usr \
    5.51 -		--libexecdir=/usr/lib \
    5.52 -		--infodir=/usr/share/info \
    5.53 -		--mandir=/usr/share/man \
    5.54 -		--with-sysroot=$MINGW32_ROOT \
    5.55 -		--disable-shared \
    5.56 -		--disable-debug \
    5.57 -		--target=$MINGW32_TARGET \
    5.58 -		--enable-languages=c,c++,ada \
    5.59 -		--enable-threads=win32 \
    5.60 -		--disable-win32-registry \
    5.61 -		--enable-sjlj-exceptions \
    5.62 -		$CONFIGURE_ARGS &&
    5.63 -	make -j 4 CFLAGS="-O2 -fomit-frame-pointer" LDFLAGS="-s"  &&
    5.64 -	make DESTDIR=$DESTDIR install
    5.65 -}
    5.66 -
    5.67 -# Rules to gen a SliTaz package suitable for Tazpkg.
    5.68 -genpkg_rules()
    5.69 -{
    5.70 -	mkdir -p $fs/usr/lib $fs$MINGW32_ROOT
    5.71 -	cp -a $_pkg$MINGW32_ROOT/* $fs$MINGW32_ROOT
    5.72 -	rm $fs$MINGW32_ROOT/lib/*.la
    5.73 -	cp -a $_pkg/usr/bin $fs/usr
    5.74 -	cp -a $_pkg/usr/include $fs/usr
    5.75 -	# do not need to copy lib/libiberty.a
    5.76 -	mkdir -p $fs/usr/lib
    5.77 -	cp -a $_pkg/usr/lib/gcc $fs/usr/lib
    5.78 -}
    5.79 -
    5.80 -# Rules to setup after installation
    5.81 -post_install()
    5.82 -{
    5.83 -	# Archives get stripped during packaging; need to run ranlib
    5.84 -	local root
    5.85 -	root=$1
    5.86 -	find $root/usr/lib/gcc/$MINGW32_ID/ -name *.a -exec $MINGW32_ID-ranlib {} \;
    5.87 -	find $root/usr/$MINGW32_ID/lib/ -name *.a -exec $MINGW32_ID-ranlib {} \;
    5.88 -}
    5.89 -
    5.90 -# Rules to clean the package
    5.91 -clean_wok()
    5.92 -{
    5.93 -	rm -rf $SOURCE-$VERSION-build
    5.94 -}
     6.1 --- a/mingw32-runtime-headers/receipt	Tue May 29 16:51:30 2012 +0200
     6.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     6.3 @@ -1,35 +0,0 @@
     6.4 -# SliTaz package receipt.
     6.5 -
     6.6 -PACKAGE="mingw32-runtime-headers"
     6.7 -SOURCE="mingwrt"
     6.8 -VERSION="3.15.2-mingw32"
     6.9 -CATEGORY="development"
    6.10 -SHORT_DESC="MinGW32 runtime headers."
    6.11 -MAINTAINER="rcx@zoominternet.net"
    6.12 -DEPENDS=""
    6.13 -BUILD_DEPENDS=""
    6.14 -TARBALL="$SOURCE-$VERSION-src.tar.gz"
    6.15 -WEB_SITE="http://www.mingw.org/"
    6.16 -WGET_URL="$SF_MIRROR/mingw/$TARBALL"
    6.17 -
    6.18 -# Configuration only needs included if we're in the build/wok environment
    6.19 -if [ -e $WOK/mingw32-toolchain/stuff/mingw32.conf ] ; then
    6.20 -	. $WOK/mingw32-toolchain/stuff/mingw32.conf
    6.21 -fi
    6.22 -
    6.23 -# Rules to configure and make the package.
    6.24 -compile_rules()
    6.25 -{
    6.26 -	cd $src
    6.27 -	
    6.28 -	mkdir -p _pkg$MINGW32_ROOT
    6.29 -	cp -a include _pkg$MINGW32_ROOT
    6.30 -	cp -a profile/*.h _pkg$MINGW32_ROOT/include
    6.31 -}
    6.32 -
    6.33 -# Rules to gen a SliTaz package suitable for Tazpkg.
    6.34 -genpkg_rules()
    6.35 -{
    6.36 -	mkdir -p $fs
    6.37 -	cp -a $_pkg/* $fs
    6.38 -}
     7.1 --- a/mingw32-runtime/receipt	Tue May 29 16:51:30 2012 +0200
     7.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     7.3 @@ -1,64 +0,0 @@
     7.4 -# SliTaz package receipt.
     7.5 -
     7.6 -PACKAGE="mingw32-runtime"
     7.7 -SOURCE="mingwrt"
     7.8 -VERSION="3.15.2-mingw32"
     7.9 -CATEGORY="development"
    7.10 -SHORT_DESC="MinGW32 runtime."
    7.11 -MAINTAINER="rcx@zoominternet.net"
    7.12 -DEPENDS="mingw32-w32api"
    7.13 -BUILD_DEPENDS="slitaz-toolchain mingw32-binutils mingw32-runtime-headers mingw32-w32api-headers mingw32-gcc-c mingw32-w32api"
    7.14 -TARBALL="$SOURCE-$VERSION-src.tar.gz"
    7.15 -WEB_SITE="http://www.mingw.org/"
    7.16 -WGET_URL="$SF_MIRROR/mingw/$TARBALL"
    7.17 -MINGW32_ID="i586-pc-mingw32"
    7.18 -
    7.19 -# Configuration only needs included if we're in the build/wok environment
    7.20 -if [ -e $WOK/mingw32-toolchain/stuff/mingw32.conf ] ; then
    7.21 -	. $WOK/mingw32-toolchain/stuff/mingw32.conf
    7.22 -fi
    7.23 -
    7.24 -# Rules to configure and make the package.
    7.25 -compile_rules()
    7.26 -{
    7.27 -	if [ "$MINGW32_ID" != "$MINGW32_TARGET" ] ; then
    7.28 -		echo "ERROR: Conf 'TARGET' string differs from Receipt 'ID' string"
    7.29 -		return 1
    7.30 -	fi
    7.31 -
    7.32 -	find $src -name 'Makefile*' | xargs sed -i "s|^inst_.*:= *|&$DESTDIR/|"
    7.33 -	mkdir -p $DESTDIR/usr/bin
    7.34 -	rm -f -r $src/binutils
    7.35 -	mkdir -p $SOURCE-$VERSION-build
    7.36 -	cd $SOURCE-$VERSION-build
    7.37 -	
    7.38 -	$src/configure \
    7.39 -		--prefix=/usr/$MINGW32_TARGET \
    7.40 -		--host=$MINGW32_TARGET \
    7.41 -		--build=$BUILD_HOST &&
    7.42 -	make CFLAGS="-O2 -mms-bitfields -march=${TARGET_CPU-i386} -I$MINGW32_ROOT/include" LDFLAGS="-s" &&
    7.43 -	make install
    7.44 -}
    7.45 -
    7.46 -# Rules to gen a SliTaz package suitable for Tazpkg.
    7.47 -genpkg_rules()
    7.48 -{
    7.49 -	mkdir -p $fs$MINGW32_ROOT
    7.50 -	cp -a $_pkg/usr/bin $fs$MINGW32_ROOT
    7.51 -	cp -a $_pkg/usr/lib $fs$MINGW32_ROOT
    7.52 -}
    7.53 -
    7.54 -# Rules to setup after installation
    7.55 -post_install()
    7.56 -{
    7.57 -	# Archives get stripped during packaging; need to run ranlib
    7.58 -	local root
    7.59 -	root=$1
    7.60 -	find $root/usr/$MINGW32_ID/lib/ -name *.a -exec $MINGW32_ID-ranlib {} \;
    7.61 -}
    7.62 -
    7.63 -# Rules to clean the package
    7.64 -clean_wok()
    7.65 -{
    7.66 -	rm -r $SOURCE-$VERSION-build
    7.67 -}
     8.1 --- a/mingw32-toolchain/receipt	Tue May 29 16:51:30 2012 +0200
     8.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     8.3 @@ -1,15 +0,0 @@
     8.4 -# SliTaz package receipt.
     8.5 -
     8.6 -PACKAGE="mingw32-toolchain"
     8.7 -VERSION="1.0"
     8.8 -CATEGORY="meta"
     8.9 -SHORT_DESC="MinGW32 toolchain meta package for devel."
    8.10 -MAINTAINER="rcx@zoominternet.net"
    8.11 -DEPENDS="mingw32-gcc"
    8.12 -WEB_SITE="http://www.slitaz.org/"
    8.13 -
    8.14 -# Rules to gen a SliTaz package suitable for Tazpkg.
    8.15 -genpkg_rules()
    8.16 -{
    8.17 -	mkdir -p $fs/var
    8.18 -}
     9.1 --- a/mingw32-toolchain/stuff/mingw32.conf	Tue May 29 16:51:30 2012 +0200
     9.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     9.3 @@ -1,6 +0,0 @@
     9.4 -
     9.5 -MINGW32_TARGET="i586-pc-mingw32"
     9.6 -MINGW32_ROOT="/usr/$MINGW32_TARGET"
     9.7 -
     9.8 -# Need exception for FSH incompleteness
     9.9 -FSH="$FSH $MINGW32_ROOT"
    10.1 --- a/mingw32-w32api-headers/receipt	Tue May 29 16:51:30 2012 +0200
    10.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    10.3 @@ -1,34 +0,0 @@
    10.4 -# SliTaz package receipt.
    10.5 -
    10.6 -PACKAGE="mingw32-w32api-headers"
    10.7 -SOURCE="w32api"
    10.8 -VERSION="3.13-mingw32"
    10.9 -CATEGORY="development"
   10.10 -SHORT_DESC="MinGW32 w32api headers."
   10.11 -MAINTAINER="rcx@zoominternet.net"
   10.12 -DEPENDS=""
   10.13 -BUILD_DEPENDS=""
   10.14 -TARBALL="$SOURCE-$VERSION-src.tar.gz"
   10.15 -WEB_SITE="http://www.mingw.org/"
   10.16 -WGET_URL="$SF_MIRROR/mingw/$TARBALL"
   10.17 -
   10.18 -# Configuration only needs included if we're in the build/wok environment
   10.19 -if [ -e $WOK/mingw32-toolchain/stuff/mingw32.conf ] ; then
   10.20 -	. $WOK/mingw32-toolchain/stuff/mingw32.conf
   10.21 -fi
   10.22 -
   10.23 -# Rules to configure and make the package.
   10.24 -compile_rules()
   10.25 -{
   10.26 -	cd $src
   10.27 -	
   10.28 -	mkdir -p _pkg$MINGW32_ROOT
   10.29 -	cp -a include _pkg$MINGW32_ROOT
   10.30 -}
   10.31 -
   10.32 -# Rules to gen a SliTaz package suitable for Tazpkg.
   10.33 -genpkg_rules()
   10.34 -{
   10.35 -	mkdir -p $fs
   10.36 -	cp -a $_pkg/* $fs
   10.37 -}
    11.1 --- a/mingw32-w32api/receipt	Tue May 29 16:51:30 2012 +0200
    11.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    11.3 @@ -1,64 +0,0 @@
    11.4 -# SliTaz package receipt.
    11.5 -
    11.6 -PACKAGE="mingw32-w32api"
    11.7 -SOURCE="w32api"
    11.8 -VERSION="3.13-mingw32"
    11.9 -CATEGORY="development"
   11.10 -SHORT_DESC="MinGW32 w32api."
   11.11 -MAINTAINER="rcx@zoominternet.net"
   11.12 -DEPENDS=""
   11.13 -BUILD_DEPENDS="slitaz-toolchain mingw32-binutils mingw32-runtime-headers mingw32-w32api-headers mingw32-gcc-c"
   11.14 -TARBALL="$SOURCE-$VERSION-src.tar.gz"
   11.15 -WEB_SITE="http://www.mingw.org/"
   11.16 -WGET_URL="$SF_MIRROR/mingw/$TARBALL"
   11.17 -MINGW32_ID="i586-pc-mingw32"
   11.18 -
   11.19 -# Configuration only needs included if we're in the build/wok environment
   11.20 -if [ -e $WOK/mingw32-toolchain/stuff/mingw32.conf ] ; then
   11.21 -	. $WOK/mingw32-toolchain/stuff/mingw32.conf
   11.22 -fi
   11.23 -
   11.24 -# Rules to configure and make the package.
   11.25 -compile_rules()
   11.26 -{
   11.27 -	if [ "$MINGW32_ID" != "$MINGW32_TARGET" ] ; then
   11.28 -		echo "ERROR: Conf 'TARGET' string differs from Receipt 'ID' string"
   11.29 -		return 1
   11.30 -	fi
   11.31 -
   11.32 -	find $src -name 'Makefile*' | xargs sed -i "s|^inst_.*:= *|&$DESTDIR/|"
   11.33 -	rm -f -r $src/binutils
   11.34 -	mkdir -p $SOURCE-$VERSION-build $DESTDIR/usr/lib
   11.35 -	cd $SOURCE-$VERSION-build
   11.36 -	
   11.37 -	# NOTE: DESTDIR not handled correctly; have to fudge --prefix
   11.38 -	$src/configure \
   11.39 -		--prefix=/usr/$MINGW32_TARGET \
   11.40 -		--host=$MINGW32_TARGET \
   11.41 -		--build=$BUILD_HOST &&
   11.42 -	make CFLAGS="-O2 -mms-bitfields -march=${TARGET_CPU-i386}" LDFLAGS="-s" &&
   11.43 -	make install
   11.44 -}
   11.45 -
   11.46 -# Rules to gen a SliTaz package suitable for Tazpkg.
   11.47 -genpkg_rules()
   11.48 -{
   11.49 -	mkdir -p $fs$MINGW32_ROOT
   11.50 -	cp -a $_pkg/usr/lib $fs$MINGW32_ROOT
   11.51 -	chown -R root.root $fs
   11.52 -}
   11.53 -
   11.54 -# Rules to setup after installation
   11.55 -post_install()
   11.56 -{
   11.57 -	# Archives get stripped during packaging; need to run ranlib
   11.58 -	local root
   11.59 -	root=$1
   11.60 -	find $root/usr/$MINGW32_ID/lib/ -name *.a -exec $MINGW32_ID-ranlib {} \;
   11.61 -}
   11.62 -
   11.63 -# Rules to clean the package
   11.64 -clean_wok()
   11.65 -{
   11.66 -	rm -r $SOURCE-$VERSION-build
   11.67 -}