wok-6.x rev 12905
move mingw32* from undigest
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue May 29 17:22:16 2012 +0200 (2012-05-29) |
parents | 5b69768015ff |
children | 1edf8ba1ba4e |
files | mingw32-binutils/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 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/mingw32-binutils/receipt Tue May 29 17:22:16 2012 +0200 1.3 @@ -0,0 +1,49 @@ 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 + 1.18 +# Configuration only needs included if we're in the build/wok environment 1.19 +if [ -e $WOK/mingw32-toolchain/stuff/mingw32.conf ] ; then 1.20 + . $WOK/mingw32-toolchain/stuff/mingw32.conf 1.21 +fi 1.22 + 1.23 +# Rules to configure and make the package. 1.24 +compile_rules() 1.25 +{ 1.26 + cd $src 1.27 + ./configure \ 1.28 + --prefix=/usr \ 1.29 + --infodir=/usr/share/info \ 1.30 + --mandir=/usr/share/man \ 1.31 + --with-sysroot=$MINGW32_ROOT \ 1.32 + --disable-shared \ 1.33 + --disable-debug \ 1.34 + --target=$MINGW32_TARGET \ 1.35 + $CONFIGURE_ARGS && 1.36 + make CFLAGS="-O2 -fno-exceptions -Wno-error=unused-but-set-variable" LDFLAGS="-s" && 1.37 + make DESTDIR=$DESTDIR install 1.38 +} 1.39 + 1.40 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.41 +genpkg_rules() 1.42 +{ 1.43 + mkdir -p $fs/usr/lib $fs$MINGW32_ROOT 1.44 + cp -a $_pkg/usr/bin $fs/usr 1.45 + cp -a $_pkg$MINGW32_ROOT/* $fs$MINGW32_ROOT 1.46 + # do not need to copy lib/libiberty.a 1.47 + 1.48 + strip -s $fs$MINGW32_ROOT/bin/* 1.49 + 1.50 + #Create a symlink for --with-sysroot 1.51 + ln -s . $fs$MINGW32_ROOT/usr 1.52 +}
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/mingw32-gcc-c/receipt Tue May 29 17:22:16 2012 +0200 2.3 @@ -0,0 +1,74 @@ 2.4 +# SliTaz package receipt. 2.5 + 2.6 +PACKAGE="mingw32-gcc-c" 2.7 +SOURCE="gcc-core" 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-$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_ID="i586-pc-mingw32" 2.19 + 2.20 +# Configuration only needs included if we're in the build/wok environment 2.21 +if [ -e $WOK/mingw32-toolchain/stuff/mingw32.conf ] ; then 2.22 + . $WOK/mingw32-toolchain/stuff/mingw32.conf 2.23 +fi 2.24 + 2.25 +# Rules to configure and make the package. 2.26 +compile_rules() 2.27 +{ 2.28 + if [ "$MINGW32_ID" != "$MINGW32_TARGET" ] ; then 2.29 + echo "ERROR: Conf 'TARGET' string differs from Receipt 'ID' string" 2.30 + return 1 2.31 + fi 2.32 + 2.33 + rm -f -r $src/binutils 2.34 + mkdir -p $SOURCE-$VERSION-build 2.35 + cd $SOURCE-$VERSION-build 2.36 + $src/configure \ 2.37 + --prefix=/usr \ 2.38 + --libexecdir=/usr/lib \ 2.39 + --infodir=/usr/share/info \ 2.40 + --mandir=/usr/share/man \ 2.41 + --with-sysroot=$MINGW32_ROOT \ 2.42 + --disable-shared \ 2.43 + --disable-debug \ 2.44 + --target=$MINGW32_TARGET \ 2.45 + --enable-languages=c \ 2.46 + --enable-threads=win32 \ 2.47 + --disable-win32-registry \ 2.48 + --enable-sjlj-exceptions \ 2.49 + $CONFIGURE_ARGS && 2.50 + make CFLAGS="-O2 -fomit-frame-pointer" LDFLAGS="-s" && 2.51 + make DESTDIR=$src/_pkg install 2.52 +} 2.53 + 2.54 +# Rules to gen a SliTaz package suitable for Tazpkg. 2.55 +genpkg_rules() 2.56 +{ 2.57 + mkdir -p $fs/usr 2.58 + cp -a $_pkg/usr/bin $fs/usr 2.59 + # do not need to copy lib/libiberty.a 2.60 + mkdir -p $fs/usr/lib 2.61 + cp -a $_pkg/usr/lib/gcc $fs/usr/lib 2.62 +} 2.63 + 2.64 +# Rules to setup after installation 2.65 +post_install() 2.66 +{ 2.67 + # Archives get stripped during packaging; need to run ranlib 2.68 + local root 2.69 + root=$1 2.70 + find $root/usr/lib/gcc/$MINGW32_ID/ -name *.a -exec $MINGW32_ID-ranlib {} \; 2.71 +} 2.72 + 2.73 +# Rules to clean the package 2.74 +clean_wok() 2.75 +{ 2.76 + rm -r $SOURCE-$VERSION-build 2.77 +}
3.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 3.2 +++ b/mingw32-gcc/receipt Tue May 29 17:22:16 2012 +0200 3.3 @@ -0,0 +1,92 @@ 3.4 +# SliTaz package receipt. 3.5 + 3.6 +PACKAGE="mingw32-gcc" 3.7 +SOURCE="gcc-core" 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 \ 3.13 +mingw32-runtime-headers mingw32-w32api mingw32-runtime" 3.14 +BUILD_DEPENDS="slitaz-toolchain bison flex mingw32-binutils \ 3.15 +mingw32-runtime-headers mingw32-w32api-headers mingw32-gcc-c \ 3.16 +mingw32-w32api mingw32-runtime" 3.17 +PROVIDE="mingw32-gcc-c" 3.18 +TARBALL="$SOURCE-$VERSION-src.tar.gz" 3.19 +WEB_SITE="http://www.mingw.org/" 3.20 +MINGW32_URL="$SF_MIRROR/mingw" 3.21 +WGET_URL="$MINGW32_URL/$TARBALL" 3.22 +MINGW32_ID="i586-pc-mingw32" 3.23 + 3.24 +# Configuration only needs included if we're in the build/wok environment 3.25 +if [ -e $WOK/mingw32-toolchain/stuff/mingw32.conf ] ; then 3.26 + . $WOK/mingw32-toolchain/stuff/mingw32.conf 3.27 +fi 3.28 + 3.29 +# Rules to configure and make the package. 3.30 +compile_rules() 3.31 +{ 3.32 + if [ "$MINGW32_ID" != "$MINGW32_TARGET" ] ; then 3.33 + echo "ERROR: Conf 'TARGET' string differs from Receipt 'ID' string" 3.34 + return 1 3.35 + fi 3.36 + 3.37 + ln -s . gcc-$VERSION 3.38 + for tgz in gcc-g++-$VERSION-src.tar.gz gcc-ada-$VERSION-src.tar.gz; do 3.39 + [ -s $SOURCES_REPOSITORY/$tgz ] || 3.40 + wget -P $SOURCES_REPOSITORY $MINGW32_URL/$tgz 3.41 + [ -s $SOURCES_REPOSITORY/$tgz ] && 3.42 + tar xzf $SOURCES_REPOSITORY/$tgz && continue 3.43 + echo "Can't download $MINGW32_URL/$tgz abort." 3.44 + return 1 3.45 + done 3.46 + 3.47 + rm -f -r $src/binutils 3.48 + mkdir -p $SOURCE-$VERSION-build 3.49 + cd $SOURCE-$VERSION-build 3.50 + $src/configure \ 3.51 + --prefix=/usr \ 3.52 + --libexecdir=/usr/lib \ 3.53 + --infodir=/usr/share/info \ 3.54 + --mandir=/usr/share/man \ 3.55 + --with-sysroot=$MINGW32_ROOT \ 3.56 + --disable-shared \ 3.57 + --disable-debug \ 3.58 + --target=$MINGW32_TARGET \ 3.59 + --enable-languages=c,c++,ada \ 3.60 + --enable-threads=win32 \ 3.61 + --disable-win32-registry \ 3.62 + --enable-sjlj-exceptions \ 3.63 + $CONFIGURE_ARGS && 3.64 + make -j 4 CFLAGS="-O2 -fomit-frame-pointer" LDFLAGS="-s" && 3.65 + make DESTDIR=$DESTDIR install 3.66 +} 3.67 + 3.68 +# Rules to gen a SliTaz package suitable for Tazpkg. 3.69 +genpkg_rules() 3.70 +{ 3.71 + mkdir -p $fs/usr/lib $fs$MINGW32_ROOT 3.72 + cp -a $_pkg$MINGW32_ROOT/* $fs$MINGW32_ROOT 3.73 + rm $fs$MINGW32_ROOT/lib/*.la 3.74 + cp -a $_pkg/usr/bin $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 +} 3.80 + 3.81 +# Rules to setup after installation 3.82 +post_install() 3.83 +{ 3.84 + # Archives get stripped during packaging; need to run ranlib 3.85 + local root 3.86 + root=$1 3.87 + find $root/usr/lib/gcc/$MINGW32_ID/ -name *.a -exec $MINGW32_ID-ranlib {} \; 3.88 + find $root/usr/$MINGW32_ID/lib/ -name *.a -exec $MINGW32_ID-ranlib {} \; 3.89 +} 3.90 + 3.91 +# Rules to clean the package 3.92 +clean_wok() 3.93 +{ 3.94 + rm -rf $SOURCE-$VERSION-build 3.95 +}
4.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 4.2 +++ b/mingw32-runtime-headers/receipt Tue May 29 17:22:16 2012 +0200 4.3 @@ -0,0 +1,35 @@ 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 + 4.18 +# Configuration only needs included if we're in the build/wok environment 4.19 +if [ -e $WOK/mingw32-toolchain/stuff/mingw32.conf ] ; then 4.20 + . $WOK/mingw32-toolchain/stuff/mingw32.conf 4.21 +fi 4.22 + 4.23 +# Rules to configure and make the package. 4.24 +compile_rules() 4.25 +{ 4.26 + cd $src 4.27 + 4.28 + mkdir -p _pkg$MINGW32_ROOT 4.29 + cp -a include _pkg$MINGW32_ROOT 4.30 + cp -a profile/*.h _pkg$MINGW32_ROOT/include 4.31 +} 4.32 + 4.33 +# Rules to gen a SliTaz package suitable for Tazpkg. 4.34 +genpkg_rules() 4.35 +{ 4.36 + mkdir -p $fs 4.37 + cp -a $_pkg/* $fs 4.38 +}
5.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 5.2 +++ b/mingw32-runtime/receipt Tue May 29 17:22:16 2012 +0200 5.3 @@ -0,0 +1,64 @@ 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_ID="i586-pc-mingw32" 5.18 + 5.19 +# Configuration only needs included if we're in the build/wok environment 5.20 +if [ -e $WOK/mingw32-toolchain/stuff/mingw32.conf ] ; then 5.21 + . $WOK/mingw32-toolchain/stuff/mingw32.conf 5.22 +fi 5.23 + 5.24 +# Rules to configure and make the package. 5.25 +compile_rules() 5.26 +{ 5.27 + if [ "$MINGW32_ID" != "$MINGW32_TARGET" ] ; then 5.28 + echo "ERROR: Conf 'TARGET' string differs from Receipt 'ID' string" 5.29 + return 1 5.30 + fi 5.31 + 5.32 + find $src -name 'Makefile*' | xargs sed -i "s|^inst_.*:= *|&$DESTDIR/|" 5.33 + mkdir -p $DESTDIR/usr/bin 5.34 + rm -f -r $src/binutils 5.35 + mkdir -p $SOURCE-$VERSION-build 5.36 + cd $SOURCE-$VERSION-build 5.37 + 5.38 + $src/configure \ 5.39 + --prefix=/usr/$MINGW32_TARGET \ 5.40 + --host=$MINGW32_TARGET \ 5.41 + --build=$BUILD_HOST && 5.42 + make CFLAGS="-O2 -mms-bitfields -march=${TARGET_CPU-i386} -I$MINGW32_ROOT/include" LDFLAGS="-s" && 5.43 + make install 5.44 +} 5.45 + 5.46 +# Rules to gen a SliTaz package suitable for Tazpkg. 5.47 +genpkg_rules() 5.48 +{ 5.49 + mkdir -p $fs$MINGW32_ROOT 5.50 + cp -a $_pkg/usr/bin $fs$MINGW32_ROOT 5.51 + cp -a $_pkg/usr/lib $fs$MINGW32_ROOT 5.52 +} 5.53 + 5.54 +# Rules to setup after installation 5.55 +post_install() 5.56 +{ 5.57 + # Archives get stripped during packaging; need to run ranlib 5.58 + local root 5.59 + root=$1 5.60 + find $root/usr/$MINGW32_ID/lib/ -name *.a -exec $MINGW32_ID-ranlib {} \; 5.61 +} 5.62 + 5.63 +# Rules to clean the package 5.64 +clean_wok() 5.65 +{ 5.66 + rm -r $SOURCE-$VERSION-build 5.67 +}
6.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 6.2 +++ b/mingw32-toolchain/receipt Tue May 29 17:22:16 2012 +0200 6.3 @@ -0,0 +1,15 @@ 6.4 +# SliTaz package receipt. 6.5 + 6.6 +PACKAGE="mingw32-toolchain" 6.7 +VERSION="1.0" 6.8 +CATEGORY="meta" 6.9 +SHORT_DESC="MinGW32 toolchain meta package for devel." 6.10 +MAINTAINER="rcx@zoominternet.net" 6.11 +DEPENDS="mingw32-gcc" 6.12 +WEB_SITE="http://www.slitaz.org/" 6.13 + 6.14 +# Rules to gen a SliTaz package suitable for Tazpkg. 6.15 +genpkg_rules() 6.16 +{ 6.17 + mkdir -p $fs/var 6.18 +}
7.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 7.2 +++ b/mingw32-toolchain/stuff/mingw32.conf Tue May 29 17:22:16 2012 +0200 7.3 @@ -0,0 +1,6 @@ 7.4 + 7.5 +MINGW32_TARGET="i586-pc-mingw32" 7.6 +MINGW32_ROOT="/usr/$MINGW32_TARGET" 7.7 + 7.8 +# Need exception for FSH incompleteness 7.9 +FSH="$FSH $MINGW32_ROOT"
8.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 8.2 +++ b/mingw32-w32api-headers/receipt Tue May 29 17:22:16 2012 +0200 8.3 @@ -0,0 +1,34 @@ 8.4 +# SliTaz package receipt. 8.5 + 8.6 +PACKAGE="mingw32-w32api-headers" 8.7 +SOURCE="w32api" 8.8 +VERSION="3.13-mingw32" 8.9 +CATEGORY="development" 8.10 +SHORT_DESC="MinGW32 w32api headers." 8.11 +MAINTAINER="rcx@zoominternet.net" 8.12 +DEPENDS="" 8.13 +BUILD_DEPENDS="" 8.14 +TARBALL="$SOURCE-$VERSION-src.tar.gz" 8.15 +WEB_SITE="http://www.mingw.org/" 8.16 +WGET_URL="$SF_MIRROR/mingw/$TARBALL" 8.17 + 8.18 +# Configuration only needs included if we're in the build/wok environment 8.19 +if [ -e $WOK/mingw32-toolchain/stuff/mingw32.conf ] ; then 8.20 + . $WOK/mingw32-toolchain/stuff/mingw32.conf 8.21 +fi 8.22 + 8.23 +# Rules to configure and make the package. 8.24 +compile_rules() 8.25 +{ 8.26 + cd $src 8.27 + 8.28 + mkdir -p _pkg$MINGW32_ROOT 8.29 + cp -a include _pkg$MINGW32_ROOT 8.30 +} 8.31 + 8.32 +# Rules to gen a SliTaz package suitable for Tazpkg. 8.33 +genpkg_rules() 8.34 +{ 8.35 + mkdir -p $fs 8.36 + cp -a $_pkg/* $fs 8.37 +}
9.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 9.2 +++ b/mingw32-w32api/receipt Tue May 29 17:22:16 2012 +0200 9.3 @@ -0,0 +1,64 @@ 9.4 +# SliTaz package receipt. 9.5 + 9.6 +PACKAGE="mingw32-w32api" 9.7 +SOURCE="w32api" 9.8 +VERSION="3.13-mingw32" 9.9 +CATEGORY="development" 9.10 +SHORT_DESC="MinGW32 w32api." 9.11 +MAINTAINER="rcx@zoominternet.net" 9.12 +DEPENDS="" 9.13 +BUILD_DEPENDS="slitaz-toolchain mingw32-binutils mingw32-runtime-headers mingw32-w32api-headers mingw32-gcc-c" 9.14 +TARBALL="$SOURCE-$VERSION-src.tar.gz" 9.15 +WEB_SITE="http://www.mingw.org/" 9.16 +WGET_URL="$SF_MIRROR/mingw/$TARBALL" 9.17 +MINGW32_ID="i586-pc-mingw32" 9.18 + 9.19 +# Configuration only needs included if we're in the build/wok environment 9.20 +if [ -e $WOK/mingw32-toolchain/stuff/mingw32.conf ] ; then 9.21 + . $WOK/mingw32-toolchain/stuff/mingw32.conf 9.22 +fi 9.23 + 9.24 +# Rules to configure and make the package. 9.25 +compile_rules() 9.26 +{ 9.27 + if [ "$MINGW32_ID" != "$MINGW32_TARGET" ] ; then 9.28 + echo "ERROR: Conf 'TARGET' string differs from Receipt 'ID' string" 9.29 + return 1 9.30 + fi 9.31 + 9.32 + find $src -name 'Makefile*' | xargs sed -i "s|^inst_.*:= *|&$DESTDIR/|" 9.33 + rm -f -r $src/binutils 9.34 + mkdir -p $SOURCE-$VERSION-build $DESTDIR/usr/lib 9.35 + cd $SOURCE-$VERSION-build 9.36 + 9.37 + # NOTE: DESTDIR not handled correctly; have to fudge --prefix 9.38 + $src/configure \ 9.39 + --prefix=/usr/$MINGW32_TARGET \ 9.40 + --host=$MINGW32_TARGET \ 9.41 + --build=$BUILD_HOST && 9.42 + make CFLAGS="-O2 -mms-bitfields -march=${TARGET_CPU-i386}" LDFLAGS="-s" && 9.43 + make install 9.44 +} 9.45 + 9.46 +# Rules to gen a SliTaz package suitable for Tazpkg. 9.47 +genpkg_rules() 9.48 +{ 9.49 + mkdir -p $fs$MINGW32_ROOT 9.50 + cp -a $_pkg/usr/lib $fs$MINGW32_ROOT 9.51 + chown -R root.root $fs 9.52 +} 9.53 + 9.54 +# Rules to setup after installation 9.55 +post_install() 9.56 +{ 9.57 + # Archives get stripped during packaging; need to run ranlib 9.58 + local root 9.59 + root=$1 9.60 + find $root/usr/$MINGW32_ID/lib/ -name *.a -exec $MINGW32_ID-ranlib {} \; 9.61 +} 9.62 + 9.63 +# Rules to clean the package 9.64 +clean_wok() 9.65 +{ 9.66 + rm -r $SOURCE-$VERSION-build 9.67 +}