# HG changeset patch # User Christophe Lincoln # Date 1306598888 -7200 # Node ID 0d1e21d67974b41b4606baab1aefcc4217c239f5 # Parent 6b80aa0a1e20aca624b5947c5b29ca361a96a3b8 mingw32-*: move to undigest (huge work to make them work and ok with MAINTAINER) diff -r 6b80aa0a1e20 -r 0d1e21d67974 mingw32-ada/receipt --- a/mingw32-ada/receipt Sat May 28 16:07:34 2011 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,19 +0,0 @@ -# SliTaz package receipt. - -PACKAGE="mingw32-ada" -SOURCE="gcc-ada" -VERSION="3.4.5-20060117-2" -CATEGORY="development" -SHORT_DESC="MinGW32 ada sources (empty package)." -MAINTAINER="gokhlayeh@mailoo.org" -TARBALL="$SOURCE-$VERSION-src.tar.gz" -WEB_SITE="http://www.mingw.org/" -MINGW32_URL="$SF_MIRROR/mingw" -WGET_URL="$MINGW32_URL/$TARBALL" - -# Rules to gen a SliTaz package suitable for Tazpkg. -genpkg_rules() -{ - mkdir -p $fs/usr -} - diff -r 6b80aa0a1e20 -r 0d1e21d67974 mingw32-binutils/receipt --- a/mingw32-binutils/receipt Sat May 28 16:07:34 2011 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,49 +0,0 @@ -# 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" LDFLAGS="-s" && - make DESTDIR=$PWD/_pkg 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 6b80aa0a1e20 -r 0d1e21d67974 mingw32-g++/receipt --- a/mingw32-g++/receipt Sat May 28 16:07:34 2011 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,19 +0,0 @@ -# SliTaz package receipt. - -PACKAGE="mingw32-g++" -SOURCE="gcc-g++" -VERSION="3.4.5-20060117-2" -CATEGORY="development" -SHORT_DESC="MinGW32 c++ sources (empty package)." -MAINTAINER="gokhlayeh@mailoo.org" -TARBALL="$SOURCE-$VERSION-src.tar.gz" -WEB_SITE="http://www.mingw.org/" -MINGW32_URL="$SF_MIRROR/mingw" -WGET_URL="$MINGW32_URL/$TARBALL" - -# Rules to gen a SliTaz package suitable for Tazpkg. -genpkg_rules() -{ - mkdir -p $fs/usr -} - diff -r 6b80aa0a1e20 -r 0d1e21d67974 mingw32-gcc-c/receipt --- a/mingw32-gcc-c/receipt Sat May 28 16:07:34 2011 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,74 +0,0 @@ -# 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 6b80aa0a1e20 -r 0d1e21d67974 mingw32-gcc/receipt --- a/mingw32-gcc/receipt Sat May 28 16:07:34 2011 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,95 +0,0 @@ -# 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 mingw32-g++ mingw32-ada" -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 - - report open-bloc - - for s in mingw32-g++ mingw32-ada; do - tazwok get-src $s --target=$PACKAGE-$VERSION && continue - report close-bloc - return 1 - done - - report step "Running compilation" - - 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=$src/_pkg install && - report close-bloc - } || { report close-bloc; return 1; } -} - -# 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 6b80aa0a1e20 -r 0d1e21d67974 mingw32-runtime-headers/receipt --- a/mingw32-runtime-headers/receipt Sat May 28 16:07:34 2011 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,35 +0,0 @@ -# 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 6b80aa0a1e20 -r 0d1e21d67974 mingw32-runtime/receipt --- a/mingw32-runtime/receipt Sat May 28 16:07:34 2011 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,63 +0,0 @@ -# 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 - - 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$MINGW32_ROOT/include" LDFLAGS="-s" && - make DESTDIR=$src/_pkg 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 6b80aa0a1e20 -r 0d1e21d67974 mingw32-toolchain/receipt --- a/mingw32-toolchain/receipt Sat May 28 16:07:34 2011 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,15 +0,0 @@ -# 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 6b80aa0a1e20 -r 0d1e21d67974 mingw32-toolchain/stuff/mingw32.conf --- a/mingw32-toolchain/stuff/mingw32.conf Sat May 28 16:07:34 2011 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,6 +0,0 @@ - -MINGW32_TARGET="i586-pc-mingw32" -MINGW32_ROOT="/usr/$MINGW32_TARGET" - -# Need exception for FSH incompleteness -FSH="$FSH $MINGW32_ROOT" diff -r 6b80aa0a1e20 -r 0d1e21d67974 mingw32-w32api-headers/receipt --- a/mingw32-w32api-headers/receipt Sat May 28 16:07:34 2011 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,34 +0,0 @@ -# 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 6b80aa0a1e20 -r 0d1e21d67974 mingw32-w32api/receipt --- a/mingw32-w32api/receipt Sat May 28 16:07:34 2011 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,62 +0,0 @@ -# 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 - - 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$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 -}