# HG changeset patch # User Pascal Bellard # Date 1338304936 -7200 # Node ID 42924af752bc50d30a117c7ea457873a217a632d # Parent 5b69768015ffc5d37470423b17f256813f2e9f44 move mingw32* from undigest diff -r 5b69768015ff -r 42924af752bc mingw32-binutils/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mingw32-binutils/receipt Tue May 29 17:22:16 2012 +0200 @@ -0,0 +1,49 @@ +# 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" + +# Configuration only needs included if we're in the build/wok environment +if [ -e $WOK/mingw32-toolchain/stuff/mingw32.conf ] ; then + . $WOK/mingw32-toolchain/stuff/mingw32.conf +fi + +# Rules to configure and make the package. +compile_rules() +{ + cd $src + ./configure \ + --prefix=/usr \ + --infodir=/usr/share/info \ + --mandir=/usr/share/man \ + --with-sysroot=$MINGW32_ROOT \ + --disable-shared \ + --disable-debug \ + --target=$MINGW32_TARGET \ + $CONFIGURE_ARGS && + make CFLAGS="-O2 -fno-exceptions -Wno-error=unused-but-set-variable" LDFLAGS="-s" && + make DESTDIR=$DESTDIR install +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/lib $fs$MINGW32_ROOT + cp -a $_pkg/usr/bin $fs/usr + cp -a $_pkg$MINGW32_ROOT/* $fs$MINGW32_ROOT + # do not need to copy lib/libiberty.a + + strip -s $fs$MINGW32_ROOT/bin/* + + #Create a symlink for --with-sysroot + ln -s . $fs$MINGW32_ROOT/usr +} diff -r 5b69768015ff -r 42924af752bc mingw32-gcc-c/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mingw32-gcc-c/receipt Tue May 29 17:22:16 2012 +0200 @@ -0,0 +1,74 @@ +# SliTaz package receipt. + +PACKAGE="mingw32-gcc-c" +SOURCE="gcc-core" +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-$VERSION-src.tar.gz" +WEB_SITE="http://www.mingw.org/" +MINGW32_URL="$SF_MIRROR/mingw" +WGET_URL="$MINGW32_URL/$TARBALL" +MINGW32_ID="i586-pc-mingw32" + +# Configuration only needs included if we're in the build/wok environment +if [ -e $WOK/mingw32-toolchain/stuff/mingw32.conf ] ; then + . $WOK/mingw32-toolchain/stuff/mingw32.conf +fi + +# Rules to configure and make the package. +compile_rules() +{ + if [ "$MINGW32_ID" != "$MINGW32_TARGET" ] ; then + echo "ERROR: Conf 'TARGET' string differs from Receipt 'ID' string" + return 1 + fi + + rm -f -r $src/binutils + mkdir -p $SOURCE-$VERSION-build + cd $SOURCE-$VERSION-build + $src/configure \ + --prefix=/usr \ + --libexecdir=/usr/lib \ + --infodir=/usr/share/info \ + --mandir=/usr/share/man \ + --with-sysroot=$MINGW32_ROOT \ + --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" && + 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 +} + +# 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_ID/ -name *.a -exec $MINGW32_ID-ranlib {} \; +} + +# Rules to clean the package +clean_wok() +{ + rm -r $SOURCE-$VERSION-build +} diff -r 5b69768015ff -r 42924af752bc mingw32-gcc/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mingw32-gcc/receipt Tue May 29 17:22:16 2012 +0200 @@ -0,0 +1,92 @@ +# SliTaz package receipt. + +PACKAGE="mingw32-gcc" +SOURCE="gcc-core" +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-$VERSION-src.tar.gz" +WEB_SITE="http://www.mingw.org/" +MINGW32_URL="$SF_MIRROR/mingw" +WGET_URL="$MINGW32_URL/$TARBALL" +MINGW32_ID="i586-pc-mingw32" + +# Configuration only needs included if we're in the build/wok environment +if [ -e $WOK/mingw32-toolchain/stuff/mingw32.conf ] ; then + . $WOK/mingw32-toolchain/stuff/mingw32.conf +fi + +# Rules to configure and make the package. +compile_rules() +{ + if [ "$MINGW32_ID" != "$MINGW32_TARGET" ] ; then + echo "ERROR: Conf 'TARGET' string differs from Receipt 'ID' string" + return 1 + fi + + ln -s . gcc-$VERSION + for tgz in gcc-g++-$VERSION-src.tar.gz gcc-ada-$VERSION-src.tar.gz; do + [ -s $SOURCES_REPOSITORY/$tgz ] || + wget -P $SOURCES_REPOSITORY $MINGW32_URL/$tgz + [ -s $SOURCES_REPOSITORY/$tgz ] && + tar xzf $SOURCES_REPOSITORY/$tgz && continue + echo "Can't download $MINGW32_URL/$tgz abort." + return 1 + done + + rm -f -r $src/binutils + mkdir -p $SOURCE-$VERSION-build + cd $SOURCE-$VERSION-build + $src/configure \ + --prefix=/usr \ + --libexecdir=/usr/lib \ + --infodir=/usr/share/info \ + --mandir=/usr/share/man \ + --with-sysroot=$MINGW32_ROOT \ + --disable-shared \ + --disable-debug \ + --target=$MINGW32_TARGET \ + --enable-languages=c,c++,ada \ + --enable-threads=win32 \ + --disable-win32-registry \ + --enable-sjlj-exceptions \ + $CONFIGURE_ARGS && + make -j 4 CFLAGS="-O2 -fomit-frame-pointer" LDFLAGS="-s" && + make DESTDIR=$DESTDIR install +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/lib $fs$MINGW32_ROOT + cp -a $_pkg$MINGW32_ROOT/* $fs$MINGW32_ROOT + rm $fs$MINGW32_ROOT/lib/*.la + cp -a $_pkg/usr/bin $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 +} + +# 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_ID/ -name *.a -exec $MINGW32_ID-ranlib {} \; + find $root/usr/$MINGW32_ID/lib/ -name *.a -exec $MINGW32_ID-ranlib {} \; +} + +# Rules to clean the package +clean_wok() +{ + rm -rf $SOURCE-$VERSION-build +} diff -r 5b69768015ff -r 42924af752bc mingw32-runtime-headers/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mingw32-runtime-headers/receipt Tue May 29 17:22:16 2012 +0200 @@ -0,0 +1,35 @@ +# 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" + +# Configuration only needs included if we're in the build/wok environment +if [ -e $WOK/mingw32-toolchain/stuff/mingw32.conf ] ; then + . $WOK/mingw32-toolchain/stuff/mingw32.conf +fi + +# Rules to configure and make the package. +compile_rules() +{ + cd $src + + mkdir -p _pkg$MINGW32_ROOT + cp -a include _pkg$MINGW32_ROOT + cp -a profile/*.h _pkg$MINGW32_ROOT/include +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs + cp -a $_pkg/* $fs +} diff -r 5b69768015ff -r 42924af752bc mingw32-runtime/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mingw32-runtime/receipt Tue May 29 17:22:16 2012 +0200 @@ -0,0 +1,64 @@ +# 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_ID="i586-pc-mingw32" + +# Configuration only needs included if we're in the build/wok environment +if [ -e $WOK/mingw32-toolchain/stuff/mingw32.conf ] ; then + . $WOK/mingw32-toolchain/stuff/mingw32.conf +fi + +# Rules to configure and make the package. +compile_rules() +{ + if [ "$MINGW32_ID" != "$MINGW32_TARGET" ] ; then + echo "ERROR: Conf 'TARGET' string differs from Receipt 'ID' string" + return 1 + fi + + find $src -name 'Makefile*' | xargs sed -i "s|^inst_.*:= *|&$DESTDIR/|" + mkdir -p $DESTDIR/usr/bin + rm -f -r $src/binutils + mkdir -p $SOURCE-$VERSION-build + cd $SOURCE-$VERSION-build + + $src/configure \ + --prefix=/usr/$MINGW32_TARGET \ + --host=$MINGW32_TARGET \ + --build=$BUILD_HOST && + make CFLAGS="-O2 -mms-bitfields -march=${TARGET_CPU-i386} -I$MINGW32_ROOT/include" LDFLAGS="-s" && + make install +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs$MINGW32_ROOT + cp -a $_pkg/usr/bin $fs$MINGW32_ROOT + cp -a $_pkg/usr/lib $fs$MINGW32_ROOT +} + +# Rules to setup after installation +post_install() +{ + # Archives get stripped during packaging; need to run ranlib + local root + root=$1 + find $root/usr/$MINGW32_ID/lib/ -name *.a -exec $MINGW32_ID-ranlib {} \; +} + +# Rules to clean the package +clean_wok() +{ + rm -r $SOURCE-$VERSION-build +} diff -r 5b69768015ff -r 42924af752bc mingw32-toolchain/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mingw32-toolchain/receipt Tue May 29 17:22:16 2012 +0200 @@ -0,0 +1,15 @@ +# SliTaz package receipt. + +PACKAGE="mingw32-toolchain" +VERSION="1.0" +CATEGORY="meta" +SHORT_DESC="MinGW32 toolchain meta package for devel." +MAINTAINER="rcx@zoominternet.net" +DEPENDS="mingw32-gcc" +WEB_SITE="http://www.slitaz.org/" + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/var +} diff -r 5b69768015ff -r 42924af752bc mingw32-toolchain/stuff/mingw32.conf --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mingw32-toolchain/stuff/mingw32.conf Tue May 29 17:22:16 2012 +0200 @@ -0,0 +1,6 @@ + +MINGW32_TARGET="i586-pc-mingw32" +MINGW32_ROOT="/usr/$MINGW32_TARGET" + +# Need exception for FSH incompleteness +FSH="$FSH $MINGW32_ROOT" diff -r 5b69768015ff -r 42924af752bc mingw32-w32api-headers/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mingw32-w32api-headers/receipt Tue May 29 17:22:16 2012 +0200 @@ -0,0 +1,34 @@ +# 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" + +# Configuration only needs included if we're in the build/wok environment +if [ -e $WOK/mingw32-toolchain/stuff/mingw32.conf ] ; then + . $WOK/mingw32-toolchain/stuff/mingw32.conf +fi + +# Rules to configure and make the package. +compile_rules() +{ + cd $src + + mkdir -p _pkg$MINGW32_ROOT + cp -a include _pkg$MINGW32_ROOT +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs + cp -a $_pkg/* $fs +} diff -r 5b69768015ff -r 42924af752bc mingw32-w32api/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mingw32-w32api/receipt Tue May 29 17:22:16 2012 +0200 @@ -0,0 +1,64 @@ +# 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_ID="i586-pc-mingw32" + +# Configuration only needs included if we're in the build/wok environment +if [ -e $WOK/mingw32-toolchain/stuff/mingw32.conf ] ; then + . $WOK/mingw32-toolchain/stuff/mingw32.conf +fi + +# Rules to configure and make the package. +compile_rules() +{ + if [ "$MINGW32_ID" != "$MINGW32_TARGET" ] ; then + echo "ERROR: Conf 'TARGET' string differs from Receipt 'ID' string" + return 1 + fi + + find $src -name 'Makefile*' | xargs sed -i "s|^inst_.*:= *|&$DESTDIR/|" + rm -f -r $src/binutils + mkdir -p $SOURCE-$VERSION-build $DESTDIR/usr/lib + cd $SOURCE-$VERSION-build + + # NOTE: DESTDIR not handled correctly; have to fudge --prefix + $src/configure \ + --prefix=/usr/$MINGW32_TARGET \ + --host=$MINGW32_TARGET \ + --build=$BUILD_HOST && + make CFLAGS="-O2 -mms-bitfields -march=${TARGET_CPU-i386}" LDFLAGS="-s" && + make install +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs$MINGW32_ROOT + cp -a $_pkg/usr/lib $fs$MINGW32_ROOT + chown -R root.root $fs +} + +# Rules to setup after installation +post_install() +{ + # Archives get stripped during packaging; need to run ranlib + local root + root=$1 + find $root/usr/$MINGW32_ID/lib/ -name *.a -exec $MINGW32_ID-ranlib {} \; +} + +# Rules to clean the package +clean_wok() +{ + rm -r $SOURCE-$VERSION-build +}