wok rev 3561

Add: mingw32
author Matthew Sheets <rcx@zoominternet.net>
date Wed Jun 24 10:32:56 2009 +0000 (2009-06-24)
parents da120b55e030
children c7273ab63c41
files mingw32-binutils/receipt mingw32-gcc-c/receipt mingw32-gcc/receipt mingw32-runtime-headers/receipt mingw32-runtime/receipt mingw32-w32api-headers/receipt mingw32-w32api/receipt
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/mingw32-binutils/receipt	Wed Jun 24 10:32:56 2009 +0000
     1.3 @@ -0,0 +1,43 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="mingw32-binutils"
     1.7 +SOURCE="binutils"
     1.8 +VERSION="2.19.1"
     1.9 +CATEGORY="development"
    1.10 +SHORT_DESC="MinGW32 binutils."
    1.11 +MAINTAINER="rcx@zoominternet.net"
    1.12 +DEPENDS="glibc-base zlib"
    1.13 +BUILD_DEPENDS="slitaz-toolchain bison flex"
    1.14 +TARBALL="$SOURCE-$VERSION-src.tar.gz"
    1.15 +WEB_SITE="http://www.mingw.org/"
    1.16 +WGET_URL="$SF_MIRROR/mingw/$TARBALL"
    1.17 +MINGW32_TARGET="i586-pc-mingw32"
    1.18 +
    1.19 +# Rules to configure and make the package.
    1.20 +compile_rules()
    1.21 +{
    1.22 +	cd $src
    1.23 +	./configure \
    1.24 +		--prefix=/usr \
    1.25 +		--infodir=/usr/share/info \
    1.26 +		--mandir=/usr/share/man \
    1.27 +		--with-sysroot=/usr/$MINGW32_TARGET \
    1.28 +		--disable-shared \
    1.29 +		--disable-debug \
    1.30 +		--target=$MINGW32_TARGET \
    1.31 +		$CONFIGURE_ARGS &&
    1.32 +	make CFLAGS="-O2 -fno-exceptions" LDFLAGS="-s" &&
    1.33 +	make DESTDIR=$PWD/_pkg install
    1.34 +}
    1.35 +
    1.36 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.37 +genpkg_rules()
    1.38 +{
    1.39 +	mkdir -p $fs/usr
    1.40 +	cp -a $_pkg/usr/bin $fs/usr
    1.41 +	cp -a $_pkg/usr/$MINGW32_TARGET $fs/usr
    1.42 +	# do not need to copy lib/libiberty.a
    1.43 +	
    1.44 +	#Create a symlink for --with-sysroot
    1.45 +	( cd $fs/usr/$MINGW32_TARGET && ln -s . usr )
    1.46 +}
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/mingw32-gcc-c/receipt	Wed Jun 24 10:32:56 2009 +0000
     2.3 @@ -0,0 +1,65 @@
     2.4 +# SliTaz package receipt.
     2.5 +
     2.6 +PACKAGE="mingw32-gcc-c"
     2.7 +SOURCE="gcc"
     2.8 +VERSION="3.4.5-20060117-2"
     2.9 +CATEGORY="development"
    2.10 +SHORT_DESC="MinGW32 gcc, for the C language only."
    2.11 +MAINTAINER="rcx@zoominternet.net"
    2.12 +DEPENDS="glibc-base mingw32-binutils mingw32-w32api-headers mingw32-runtime-headers"
    2.13 +BUILD_DEPENDS="slitaz-toolchain bison flex mingw32-binutils mingw32-runtime-headers mingw32-w32api-headers"
    2.14 +TARBALL="$SOURCE-core-$VERSION-src.tar.gz"
    2.15 +WEB_SITE="http://www.mingw.org/"
    2.16 +MINGW32_URL="$SF_MIRROR/mingw"
    2.17 +WGET_URL="$MINGW32_URL/$TARBALL"
    2.18 +MINGW32_TARGET="i586-pc-mingw32"
    2.19 +
    2.20 +# Rules to configure and make the package.
    2.21 +compile_rules()
    2.22 +{
    2.23 +	rm -f -r $src/binutils
    2.24 +	mkdir -p $SOURCE-$VERSION-build
    2.25 +	cd $SOURCE-$VERSION-build
    2.26 +	$src/configure \
    2.27 +		--prefix=/usr \
    2.28 +		--infodir=/usr/share/info \
    2.29 +		--mandir=/usr/share/man \
    2.30 +		--with-sysroot=/usr/$MINGW32_TARGET \
    2.31 +		--disable-shared \
    2.32 +		--disable-debug \
    2.33 +		--target=$MINGW32_TARGET \
    2.34 +		--enable-languages=c \
    2.35 +		--enable-threads=win32 \
    2.36 +		--disable-win32-registry \
    2.37 +		--enable-sjlj-exceptions \
    2.38 +		$CONFIGURE_ARGS &&
    2.39 +	make CFLAGS="-O2 -fomit-frame-pointer" LDFLAGS="-s"  &&
    2.40 +	$MINGW32_TARGET-ranlib gcc/*.a &&
    2.41 +	make DESTDIR=$src/_pkg install
    2.42 +}
    2.43 +
    2.44 +# Rules to gen a SliTaz package suitable for Tazpkg.
    2.45 +genpkg_rules()
    2.46 +{
    2.47 +	mkdir -p $fs/usr
    2.48 +	cp -a $_pkg/usr/bin $fs/usr
    2.49 +	# do not need to copy lib/libiberty.a
    2.50 +	mkdir -p $fs/usr/lib
    2.51 +	cp -a $_pkg/usr/lib/gcc $fs/usr/lib
    2.52 +	cp -a $_pkg/usr/libexec $fs/usr
    2.53 +}
    2.54 +
    2.55 +# Rules to setup after installation
    2.56 +post_install()
    2.57 +{
    2.58 +	# Archives get stripped during packaging; need to run ranlib
    2.59 +	local root
    2.60 +	root=$1
    2.61 +	find $root/usr/lib/gcc/$MINGW32_TARGET/ -name *.a -exec $MINGW32_TARGET-ranlib {} \;
    2.62 +}
    2.63 +
    2.64 +# Rules to clean the package
    2.65 +clean_wok()
    2.66 +{
    2.67 +	rm -r $SOURCE-$VERSION-build
    2.68 +}
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/mingw32-gcc/receipt	Wed Jun 24 10:32:56 2009 +0000
     3.3 @@ -0,0 +1,92 @@
     3.4 +# SliTaz package receipt.
     3.5 +
     3.6 +PACKAGE="mingw32-gcc"
     3.7 +SOURCE="gcc"
     3.8 +VERSION="3.4.5-20060117-2"
     3.9 +CATEGORY="development"
    3.10 +SHORT_DESC="MinGW32 gcc, for C, C++, and Ada."
    3.11 +MAINTAINER="rcx@zoominternet.net"
    3.12 +DEPENDS="glibc-base mingw32-binutils mingw32-w32api-headers mingw32-runtime-headers mingw32-w32api mingw32-runtime"
    3.13 +BUILD_DEPENDS="slitaz-toolchain bison flex mingw32-binutils mingw32-runtime-headers mingw32-w32api-headers mingw32-gcc-c mingw32-w32api mingw32-runtime"
    3.14 +PROVIDE="mingw32-gcc-c"
    3.15 +TARBALL="$SOURCE-core-$VERSION-src.tar.gz"
    3.16 +WEB_SITE="http://www.mingw.org/"
    3.17 +MINGW32_URL="$SF_MIRROR/mingw"
    3.18 +WGET_URL="$MINGW32_URL/$TARBALL"
    3.19 +MINGW32_TARGET="i586-pc-mingw32"
    3.20 +
    3.21 +# Rules to configure and make the package.
    3.22 +compile_rules()
    3.23 +{
    3.24 +	MINGW32_DIR="$PWD"
    3.25 +	MINGW32_CPP_TARBALL="$SOURCE-g++-$VERSION-src.tar.gz"
    3.26 +	MINGW32_ADA_TARBALL="$SOURCE-ada-$VERSION-src.tar.gz"
    3.27 +	
    3.28 +	for gcc_tgz in $MINGW32_CPP_TARBALL $MINGW32_ADA_TARBALL ; do
    3.29 +		# Download the additional language tarballs
    3.30 +		if [ ! -f "$SOURCES_REPOSITORY/$gcc_tgz" ] ; then
    3.31 +			cd $SOURCES_REPOSITORY
    3.32 +			download $MINGW32_URL/$gcc_tgz
    3.33 +		fi
    3.34 +		
    3.35 +		# Extract the additional language tarballs
    3.36 +		if [ -f "$SOURCES_REPOSITORY/$gcc_tgz" ] ; then
    3.37 +			cd $MINGW32_DIR
    3.38 +			echo "Extracting $gcc_tgz ..."
    3.39 +			tar xzf "$SOURCES_REPOSITORY/$gcc_tgz"
    3.40 +		else
    3.41 +			# Exit if file not found to avoid errors.
    3.42 +			echo -e "\nDownload of $gcc_tgz failed, exiting. Please check the URL.\n"
    3.43 +			exit 1
    3.44 +		fi
    3.45 +	done
    3.46 +	
    3.47 +	cd $MINGW32_DIR
    3.48 +
    3.49 +	rm -f -r $src/binutils
    3.50 +	mkdir -p $SOURCE-$VERSION-build
    3.51 +	cd $SOURCE-$VERSION-build
    3.52 +	$src/configure \
    3.53 +		--prefix=/usr \
    3.54 +		--infodir=/usr/share/info \
    3.55 +		--mandir=/usr/share/man \
    3.56 +		--with-sysroot=/usr/$MINGW32_TARGET \
    3.57 +		--disable-shared \
    3.58 +		--disable-debug \
    3.59 +		--target=$MINGW32_TARGET \
    3.60 +		--enable-languages=c,c++,ada \
    3.61 +		--enable-threads=win32 \
    3.62 +		--disable-win32-registry \
    3.63 +		--enable-sjlj-exceptions \
    3.64 +		$CONFIGURE_ARGS &&
    3.65 +	make CFLAGS="-O2 -fomit-frame-pointer" LDFLAGS="-s"  &&
    3.66 +	make DESTDIR=$src/_pkg install
    3.67 +}
    3.68 +
    3.69 +# Rules to gen a SliTaz package suitable for Tazpkg.
    3.70 +genpkg_rules()
    3.71 +{
    3.72 +	mkdir -p $fs/usr
    3.73 +	cp -a $_pkg/usr/bin $fs/usr
    3.74 +	cp -a $_pkg/usr/$MINGW32_TARGET $fs/usr
    3.75 +	cp -a $_pkg/usr/include $fs/usr
    3.76 +	# do not need to copy lib/libiberty.a
    3.77 +	mkdir -p $fs/usr/lib
    3.78 +	cp -a $_pkg/usr/lib/gcc $fs/usr/lib
    3.79 +	cp -a $_pkg/usr/libexec $fs/usr
    3.80 +}
    3.81 +
    3.82 +# Rules to setup after installation
    3.83 +post_install()
    3.84 +{
    3.85 +	# Archives get stripped during packaging; need to run ranlib
    3.86 +	local root
    3.87 +	root=$1
    3.88 +	find $root/usr/lib/gcc/$MINGW32_TARGET/ -name *.a -exec $MINGW32_TARGET-ranlib {} \;
    3.89 +}
    3.90 +
    3.91 +# Rules to clean the package
    3.92 +clean_wok()
    3.93 +{
    3.94 +	rm -r $SOURCE-$VERSION-build
    3.95 +}
     4.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.2 +++ b/mingw32-runtime-headers/receipt	Wed Jun 24 10:32:56 2009 +0000
     4.3 @@ -0,0 +1,30 @@
     4.4 +# SliTaz package receipt.
     4.5 +
     4.6 +PACKAGE="mingw32-runtime-headers"
     4.7 +SOURCE="mingwrt"
     4.8 +VERSION="3.15.2-mingw32"
     4.9 +CATEGORY="development"
    4.10 +SHORT_DESC="MinGW32 runtime headers."
    4.11 +MAINTAINER="rcx@zoominternet.net"
    4.12 +DEPENDS=""
    4.13 +BUILD_DEPENDS=""
    4.14 +TARBALL="$SOURCE-$VERSION-src.tar.gz"
    4.15 +WEB_SITE="http://www.mingw.org/"
    4.16 +WGET_URL="$SF_MIRROR/mingw/$TARBALL"
    4.17 +MINGW32_TARGET="i586-pc-mingw32"
    4.18 +
    4.19 +# Rules to configure and make the package.
    4.20 +compile_rules()
    4.21 +{
    4.22 +	cd $src
    4.23 +	
    4.24 +	mkdir -p _pkg/usr/$MINGW32_TARGET
    4.25 +	cp -a include _pkg/usr/$MINGW32_TARGET
    4.26 +}
    4.27 +
    4.28 +# Rules to gen a SliTaz package suitable for Tazpkg.
    4.29 +genpkg_rules()
    4.30 +{
    4.31 +	mkdir -p $fs
    4.32 +	cp -a $_pkg/* $fs
    4.33 +}
     5.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     5.2 +++ b/mingw32-runtime/receipt	Wed Jun 24 10:32:56 2009 +0000
     5.3 @@ -0,0 +1,59 @@
     5.4 +# SliTaz package receipt.
     5.5 +
     5.6 +PACKAGE="mingw32-runtime"
     5.7 +SOURCE="mingwrt"
     5.8 +VERSION="3.15.2-mingw32"
     5.9 +CATEGORY="development"
    5.10 +SHORT_DESC="MinGW32 runtime."
    5.11 +MAINTAINER="rcx@zoominternet.net"
    5.12 +DEPENDS="mingw32-w32api"
    5.13 +BUILD_DEPENDS="slitaz-toolchain mingw32-binutils mingw32-runtime-headers mingw32-w32api-headers mingw32-gcc-c mingw32-w32api"
    5.14 +TARBALL="$SOURCE-$VERSION-src.tar.gz"
    5.15 +WEB_SITE="http://www.mingw.org/"
    5.16 +WGET_URL="$SF_MIRROR/mingw/$TARBALL"
    5.17 +MINGW32_TARGET="i586-pc-mingw32"
    5.18 +
    5.19 +# Rules to configure and make the package.
    5.20 +compile_rules()
    5.21 +{
    5.22 +	# Set a default value for BUILD_HOST if it is not defined in tazwok.conf as it should be
    5.23 +	if [ -z "$BUILD_HOST" ] ; then
    5.24 +		BUILD_HOST=i486-pc-linux-gnu
    5.25 +	fi
    5.26 +
    5.27 +	rm -f -r $src/binutils
    5.28 +	mkdir -p $SOURCE-$VERSION-build
    5.29 +	cd $SOURCE-$VERSION-build
    5.30 +	
    5.31 +	# NOTE: DESTDIR not handled correctly; have to fudge --prefix
    5.32 +	$src/configure \
    5.33 +		--prefix=$src/_pkg/usr \
    5.34 +		--host=$MINGW32_TARGET \
    5.35 +		--build=$BUILD_HOST &&
    5.36 +	make CFLAGS="-O2 -mms-bitfields -march=${TARGET_CPU-i386} -I/usr/$MINGW32_TARGET/include" LDFLAGS="-s" &&
    5.37 +	make DESTDIR=$src/_pkg install
    5.38 +}
    5.39 +
    5.40 +# Rules to gen a SliTaz package suitable for Tazpkg.
    5.41 +genpkg_rules()
    5.42 +{
    5.43 +	mkdir -p $fs/usr/$MINGW32_TARGET
    5.44 +	cp -a $_pkg/usr/bin $fs/usr/$MINGW32_TARGET
    5.45 +	cp -a $_pkg/usr/include $fs/usr/$MINGW32_TARGET
    5.46 +	cp -a $_pkg/usr/lib $fs/usr/$MINGW32_TARGET
    5.47 +}
    5.48 +
    5.49 +# Rules to setup after installation
    5.50 +post_install()
    5.51 +{
    5.52 +	# Archives get stripped during packaging; need to run ranlib
    5.53 +	local root
    5.54 +	root=$1
    5.55 +	find $root/usr/$MINGW32_TARGET/lib/ -name *.a -exec $MINGW32_TARGET-ranlib {} \;
    5.56 +}
    5.57 +
    5.58 +# Rules to clean the package
    5.59 +clean_wok()
    5.60 +{
    5.61 +	rm -r $SOURCE-$VERSION-build
    5.62 +}
     6.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     6.2 +++ b/mingw32-w32api-headers/receipt	Wed Jun 24 10:32:56 2009 +0000
     6.3 @@ -0,0 +1,30 @@
     6.4 +# SliTaz package receipt.
     6.5 +
     6.6 +PACKAGE="mingw32-w32api-headers"
     6.7 +SOURCE="w32api"
     6.8 +VERSION="3.13-mingw32"
     6.9 +CATEGORY="development"
    6.10 +SHORT_DESC="MinGW32 w32api 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 +MINGW32_TARGET="i586-pc-mingw32"
    6.18 +
    6.19 +# Rules to configure and make the package.
    6.20 +compile_rules()
    6.21 +{
    6.22 +	cd $src
    6.23 +	
    6.24 +	mkdir -p _pkg/usr/$MINGW32_TARGET
    6.25 +	cp -a include _pkg/usr/$MINGW32_TARGET
    6.26 +}
    6.27 +
    6.28 +# Rules to gen a SliTaz package suitable for Tazpkg.
    6.29 +genpkg_rules()
    6.30 +{
    6.31 +	mkdir -p $fs
    6.32 +	cp -a $_pkg/* $fs
    6.33 +}
     7.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     7.2 +++ b/mingw32-w32api/receipt	Wed Jun 24 10:32:56 2009 +0000
     7.3 @@ -0,0 +1,57 @@
     7.4 +# SliTaz package receipt.
     7.5 +
     7.6 +PACKAGE="mingw32-w32api"
     7.7 +SOURCE="w32api"
     7.8 +VERSION="3.13-mingw32"
     7.9 +CATEGORY="development"
    7.10 +SHORT_DESC="MinGW32 w32api."
    7.11 +MAINTAINER="rcx@zoominternet.net"
    7.12 +DEPENDS=""
    7.13 +BUILD_DEPENDS="slitaz-toolchain mingw32-binutils mingw32-runtime-headers mingw32-w32api-headers mingw32-gcc-c"
    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_TARGET="i586-pc-mingw32"
    7.18 +
    7.19 +# Rules to configure and make the package.
    7.20 +compile_rules()
    7.21 +{
    7.22 +	# Set a default value for BUILD_HOST if it is not defined in tazwok.conf as it should be
    7.23 +	if [ -z "$BUILD_HOST" ] ; then
    7.24 +		BUILD_HOST=i486-pc-linux-gnu
    7.25 +	fi
    7.26 +
    7.27 +	rm -f -r $src/binutils
    7.28 +	mkdir -p $SOURCE-$VERSION-build
    7.29 +	cd $SOURCE-$VERSION-build
    7.30 +	
    7.31 +	# NOTE: DESTDIR not handled correctly; have to fudge --prefix
    7.32 +	$src/configure \
    7.33 +		--prefix=$src/_pkg/usr \
    7.34 +		--host=$MINGW32_TARGET \
    7.35 +		--build=$BUILD_HOST &&
    7.36 +	make CFLAGS="-O2 -mms-bitfields -march=${TARGET_CPU-i386}" LDFLAGS="-s" &&
    7.37 +	make DESTDIR=$src/_pkg install
    7.38 +}
    7.39 +
    7.40 +# Rules to gen a SliTaz package suitable for Tazpkg.
    7.41 +genpkg_rules()
    7.42 +{
    7.43 +	mkdir -p $fs/usr/$MINGW32_TARGET
    7.44 +	cp -a $_pkg/usr/lib $fs/usr/$MINGW32_TARGET
    7.45 +}
    7.46 +
    7.47 +# Rules to setup after installation
    7.48 +post_install()
    7.49 +{
    7.50 +	# Archives get stripped during packaging; need to run ranlib
    7.51 +	local root
    7.52 +	root=$1
    7.53 +	find $root/usr/$MINGW32_TARGET/lib/ -name *.a -exec $MINGW32_TARGET-ranlib {} \;
    7.54 +}
    7.55 +
    7.56 +# Rules to clean the package
    7.57 +clean_wok()
    7.58 +{
    7.59 +	rm -r $SOURCE-$VERSION-build
    7.60 +}