# HG changeset patch # User Matthew Sheets # Date 1245839576 0 # Node ID 1aa4817e0affc06b55be17a4f0d33d8266396a16 # Parent da120b55e030f6ddfc927920f01bce04c27928bb Add: mingw32 diff -r da120b55e030 -r 1aa4817e0aff mingw32-binutils/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mingw32-binutils/receipt Wed Jun 24 10:32:56 2009 +0000 @@ -0,0 +1,43 @@ +# SliTaz package receipt. + +PACKAGE="mingw32-binutils" +SOURCE="binutils" +VERSION="2.19.1" +CATEGORY="development" +SHORT_DESC="MinGW32 binutils." +MAINTAINER="rcx@zoominternet.net" +DEPENDS="glibc-base zlib" +BUILD_DEPENDS="slitaz-toolchain bison flex" +TARBALL="$SOURCE-$VERSION-src.tar.gz" +WEB_SITE="http://www.mingw.org/" +WGET_URL="$SF_MIRROR/mingw/$TARBALL" +MINGW32_TARGET="i586-pc-mingw32" + +# Rules to configure and make the package. +compile_rules() +{ + cd $src + ./configure \ + --prefix=/usr \ + --infodir=/usr/share/info \ + --mandir=/usr/share/man \ + --with-sysroot=/usr/$MINGW32_TARGET \ + --disable-shared \ + --disable-debug \ + --target=$MINGW32_TARGET \ + $CONFIGURE_ARGS && + make CFLAGS="-O2 -fno-exceptions" LDFLAGS="-s" && + make DESTDIR=$PWD/_pkg install +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr + cp -a $_pkg/usr/bin $fs/usr + cp -a $_pkg/usr/$MINGW32_TARGET $fs/usr + # do not need to copy lib/libiberty.a + + #Create a symlink for --with-sysroot + ( cd $fs/usr/$MINGW32_TARGET && ln -s . usr ) +} diff -r da120b55e030 -r 1aa4817e0aff mingw32-gcc-c/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mingw32-gcc-c/receipt Wed Jun 24 10:32:56 2009 +0000 @@ -0,0 +1,65 @@ +# SliTaz package receipt. + +PACKAGE="mingw32-gcc-c" +SOURCE="gcc" +VERSION="3.4.5-20060117-2" +CATEGORY="development" +SHORT_DESC="MinGW32 gcc, for the C language only." +MAINTAINER="rcx@zoominternet.net" +DEPENDS="glibc-base mingw32-binutils mingw32-w32api-headers mingw32-runtime-headers" +BUILD_DEPENDS="slitaz-toolchain bison flex mingw32-binutils mingw32-runtime-headers mingw32-w32api-headers" +TARBALL="$SOURCE-core-$VERSION-src.tar.gz" +WEB_SITE="http://www.mingw.org/" +MINGW32_URL="$SF_MIRROR/mingw" +WGET_URL="$MINGW32_URL/$TARBALL" +MINGW32_TARGET="i586-pc-mingw32" + +# Rules to configure and make the package. +compile_rules() +{ + rm -f -r $src/binutils + mkdir -p $SOURCE-$VERSION-build + cd $SOURCE-$VERSION-build + $src/configure \ + --prefix=/usr \ + --infodir=/usr/share/info \ + --mandir=/usr/share/man \ + --with-sysroot=/usr/$MINGW32_TARGET \ + --disable-shared \ + --disable-debug \ + --target=$MINGW32_TARGET \ + --enable-languages=c \ + --enable-threads=win32 \ + --disable-win32-registry \ + --enable-sjlj-exceptions \ + $CONFIGURE_ARGS && + make CFLAGS="-O2 -fomit-frame-pointer" LDFLAGS="-s" && + $MINGW32_TARGET-ranlib gcc/*.a && + make DESTDIR=$src/_pkg install +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr + cp -a $_pkg/usr/bin $fs/usr + # do not need to copy lib/libiberty.a + mkdir -p $fs/usr/lib + cp -a $_pkg/usr/lib/gcc $fs/usr/lib + cp -a $_pkg/usr/libexec $fs/usr +} + +# Rules to setup after installation +post_install() +{ + # Archives get stripped during packaging; need to run ranlib + local root + root=$1 + find $root/usr/lib/gcc/$MINGW32_TARGET/ -name *.a -exec $MINGW32_TARGET-ranlib {} \; +} + +# Rules to clean the package +clean_wok() +{ + rm -r $SOURCE-$VERSION-build +} diff -r da120b55e030 -r 1aa4817e0aff mingw32-gcc/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mingw32-gcc/receipt Wed Jun 24 10:32:56 2009 +0000 @@ -0,0 +1,92 @@ +# SliTaz package receipt. + +PACKAGE="mingw32-gcc" +SOURCE="gcc" +VERSION="3.4.5-20060117-2" +CATEGORY="development" +SHORT_DESC="MinGW32 gcc, for C, C++, and Ada." +MAINTAINER="rcx@zoominternet.net" +DEPENDS="glibc-base mingw32-binutils mingw32-w32api-headers mingw32-runtime-headers mingw32-w32api mingw32-runtime" +BUILD_DEPENDS="slitaz-toolchain bison flex mingw32-binutils mingw32-runtime-headers mingw32-w32api-headers mingw32-gcc-c mingw32-w32api mingw32-runtime" +PROVIDE="mingw32-gcc-c" +TARBALL="$SOURCE-core-$VERSION-src.tar.gz" +WEB_SITE="http://www.mingw.org/" +MINGW32_URL="$SF_MIRROR/mingw" +WGET_URL="$MINGW32_URL/$TARBALL" +MINGW32_TARGET="i586-pc-mingw32" + +# Rules to configure and make the package. +compile_rules() +{ + MINGW32_DIR="$PWD" + MINGW32_CPP_TARBALL="$SOURCE-g++-$VERSION-src.tar.gz" + MINGW32_ADA_TARBALL="$SOURCE-ada-$VERSION-src.tar.gz" + + for gcc_tgz in $MINGW32_CPP_TARBALL $MINGW32_ADA_TARBALL ; do + # Download the additional language tarballs + if [ ! -f "$SOURCES_REPOSITORY/$gcc_tgz" ] ; then + cd $SOURCES_REPOSITORY + download $MINGW32_URL/$gcc_tgz + fi + + # Extract the additional language tarballs + if [ -f "$SOURCES_REPOSITORY/$gcc_tgz" ] ; then + cd $MINGW32_DIR + echo "Extracting $gcc_tgz ..." + tar xzf "$SOURCES_REPOSITORY/$gcc_tgz" + else + # Exit if file not found to avoid errors. + echo -e "\nDownload of $gcc_tgz failed, exiting. Please check the URL.\n" + exit 1 + fi + done + + cd $MINGW32_DIR + + rm -f -r $src/binutils + mkdir -p $SOURCE-$VERSION-build + cd $SOURCE-$VERSION-build + $src/configure \ + --prefix=/usr \ + --infodir=/usr/share/info \ + --mandir=/usr/share/man \ + --with-sysroot=/usr/$MINGW32_TARGET \ + --disable-shared \ + --disable-debug \ + --target=$MINGW32_TARGET \ + --enable-languages=c,c++,ada \ + --enable-threads=win32 \ + --disable-win32-registry \ + --enable-sjlj-exceptions \ + $CONFIGURE_ARGS && + make CFLAGS="-O2 -fomit-frame-pointer" LDFLAGS="-s" && + make DESTDIR=$src/_pkg install +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr + cp -a $_pkg/usr/bin $fs/usr + cp -a $_pkg/usr/$MINGW32_TARGET $fs/usr + cp -a $_pkg/usr/include $fs/usr + # do not need to copy lib/libiberty.a + mkdir -p $fs/usr/lib + cp -a $_pkg/usr/lib/gcc $fs/usr/lib + cp -a $_pkg/usr/libexec $fs/usr +} + +# Rules to setup after installation +post_install() +{ + # Archives get stripped during packaging; need to run ranlib + local root + root=$1 + find $root/usr/lib/gcc/$MINGW32_TARGET/ -name *.a -exec $MINGW32_TARGET-ranlib {} \; +} + +# Rules to clean the package +clean_wok() +{ + rm -r $SOURCE-$VERSION-build +} diff -r da120b55e030 -r 1aa4817e0aff mingw32-runtime-headers/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mingw32-runtime-headers/receipt Wed Jun 24 10:32:56 2009 +0000 @@ -0,0 +1,30 @@ +# SliTaz package receipt. + +PACKAGE="mingw32-runtime-headers" +SOURCE="mingwrt" +VERSION="3.15.2-mingw32" +CATEGORY="development" +SHORT_DESC="MinGW32 runtime headers." +MAINTAINER="rcx@zoominternet.net" +DEPENDS="" +BUILD_DEPENDS="" +TARBALL="$SOURCE-$VERSION-src.tar.gz" +WEB_SITE="http://www.mingw.org/" +WGET_URL="$SF_MIRROR/mingw/$TARBALL" +MINGW32_TARGET="i586-pc-mingw32" + +# Rules to configure and make the package. +compile_rules() +{ + cd $src + + mkdir -p _pkg/usr/$MINGW32_TARGET + cp -a include _pkg/usr/$MINGW32_TARGET +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs + cp -a $_pkg/* $fs +} diff -r da120b55e030 -r 1aa4817e0aff mingw32-runtime/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mingw32-runtime/receipt Wed Jun 24 10:32:56 2009 +0000 @@ -0,0 +1,59 @@ +# SliTaz package receipt. + +PACKAGE="mingw32-runtime" +SOURCE="mingwrt" +VERSION="3.15.2-mingw32" +CATEGORY="development" +SHORT_DESC="MinGW32 runtime." +MAINTAINER="rcx@zoominternet.net" +DEPENDS="mingw32-w32api" +BUILD_DEPENDS="slitaz-toolchain mingw32-binutils mingw32-runtime-headers mingw32-w32api-headers mingw32-gcc-c mingw32-w32api" +TARBALL="$SOURCE-$VERSION-src.tar.gz" +WEB_SITE="http://www.mingw.org/" +WGET_URL="$SF_MIRROR/mingw/$TARBALL" +MINGW32_TARGET="i586-pc-mingw32" + +# Rules to configure and make the package. +compile_rules() +{ + # Set a default value for BUILD_HOST if it is not defined in tazwok.conf as it should be + if [ -z "$BUILD_HOST" ] ; then + BUILD_HOST=i486-pc-linux-gnu + fi + + rm -f -r $src/binutils + mkdir -p $SOURCE-$VERSION-build + cd $SOURCE-$VERSION-build + + # NOTE: DESTDIR not handled correctly; have to fudge --prefix + $src/configure \ + --prefix=$src/_pkg/usr \ + --host=$MINGW32_TARGET \ + --build=$BUILD_HOST && + make CFLAGS="-O2 -mms-bitfields -march=${TARGET_CPU-i386} -I/usr/$MINGW32_TARGET/include" LDFLAGS="-s" && + make DESTDIR=$src/_pkg install +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/$MINGW32_TARGET + cp -a $_pkg/usr/bin $fs/usr/$MINGW32_TARGET + cp -a $_pkg/usr/include $fs/usr/$MINGW32_TARGET + cp -a $_pkg/usr/lib $fs/usr/$MINGW32_TARGET +} + +# Rules to setup after installation +post_install() +{ + # Archives get stripped during packaging; need to run ranlib + local root + root=$1 + find $root/usr/$MINGW32_TARGET/lib/ -name *.a -exec $MINGW32_TARGET-ranlib {} \; +} + +# Rules to clean the package +clean_wok() +{ + rm -r $SOURCE-$VERSION-build +} diff -r da120b55e030 -r 1aa4817e0aff mingw32-w32api-headers/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mingw32-w32api-headers/receipt Wed Jun 24 10:32:56 2009 +0000 @@ -0,0 +1,30 @@ +# SliTaz package receipt. + +PACKAGE="mingw32-w32api-headers" +SOURCE="w32api" +VERSION="3.13-mingw32" +CATEGORY="development" +SHORT_DESC="MinGW32 w32api headers." +MAINTAINER="rcx@zoominternet.net" +DEPENDS="" +BUILD_DEPENDS="" +TARBALL="$SOURCE-$VERSION-src.tar.gz" +WEB_SITE="http://www.mingw.org/" +WGET_URL="$SF_MIRROR/mingw/$TARBALL" +MINGW32_TARGET="i586-pc-mingw32" + +# Rules to configure and make the package. +compile_rules() +{ + cd $src + + mkdir -p _pkg/usr/$MINGW32_TARGET + cp -a include _pkg/usr/$MINGW32_TARGET +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs + cp -a $_pkg/* $fs +} diff -r da120b55e030 -r 1aa4817e0aff mingw32-w32api/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mingw32-w32api/receipt Wed Jun 24 10:32:56 2009 +0000 @@ -0,0 +1,57 @@ +# SliTaz package receipt. + +PACKAGE="mingw32-w32api" +SOURCE="w32api" +VERSION="3.13-mingw32" +CATEGORY="development" +SHORT_DESC="MinGW32 w32api." +MAINTAINER="rcx@zoominternet.net" +DEPENDS="" +BUILD_DEPENDS="slitaz-toolchain mingw32-binutils mingw32-runtime-headers mingw32-w32api-headers mingw32-gcc-c" +TARBALL="$SOURCE-$VERSION-src.tar.gz" +WEB_SITE="http://www.mingw.org/" +WGET_URL="$SF_MIRROR/mingw/$TARBALL" +MINGW32_TARGET="i586-pc-mingw32" + +# Rules to configure and make the package. +compile_rules() +{ + # Set a default value for BUILD_HOST if it is not defined in tazwok.conf as it should be + if [ -z "$BUILD_HOST" ] ; then + BUILD_HOST=i486-pc-linux-gnu + fi + + rm -f -r $src/binutils + mkdir -p $SOURCE-$VERSION-build + cd $SOURCE-$VERSION-build + + # NOTE: DESTDIR not handled correctly; have to fudge --prefix + $src/configure \ + --prefix=$src/_pkg/usr \ + --host=$MINGW32_TARGET \ + --build=$BUILD_HOST && + make CFLAGS="-O2 -mms-bitfields -march=${TARGET_CPU-i386}" LDFLAGS="-s" && + make DESTDIR=$src/_pkg install +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/$MINGW32_TARGET + cp -a $_pkg/usr/lib $fs/usr/$MINGW32_TARGET +} + +# Rules to setup after installation +post_install() +{ + # Archives get stripped during packaging; need to run ranlib + local root + root=$1 + find $root/usr/$MINGW32_TARGET/lib/ -name *.a -exec $MINGW32_TARGET-ranlib {} \; +} + +# Rules to clean the package +clean_wok() +{ + rm -r $SOURCE-$VERSION-build +}