wok-current diff mingw32-gcc-c/receipt @ 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 | |
children | 4c16797dce28 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/mingw32-gcc-c/receipt Tue May 29 17:22:16 2012 +0200 1.3 @@ -0,0 +1,74 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="mingw32-gcc-c" 1.7 +SOURCE="gcc-core" 1.8 +VERSION="3.4.5-20060117-2" 1.9 +CATEGORY="development" 1.10 +SHORT_DESC="MinGW32 gcc, for the C language only." 1.11 +MAINTAINER="rcx@zoominternet.net" 1.12 +DEPENDS="glibc-base mingw32-binutils mingw32-w32api-headers mingw32-runtime-headers" 1.13 +BUILD_DEPENDS="slitaz-toolchain bison flex mingw32-binutils mingw32-runtime-headers mingw32-w32api-headers" 1.14 +TARBALL="$SOURCE-$VERSION-src.tar.gz" 1.15 +WEB_SITE="http://www.mingw.org/" 1.16 +MINGW32_URL="$SF_MIRROR/mingw" 1.17 +WGET_URL="$MINGW32_URL/$TARBALL" 1.18 +MINGW32_ID="i586-pc-mingw32" 1.19 + 1.20 +# Configuration only needs included if we're in the build/wok environment 1.21 +if [ -e $WOK/mingw32-toolchain/stuff/mingw32.conf ] ; then 1.22 + . $WOK/mingw32-toolchain/stuff/mingw32.conf 1.23 +fi 1.24 + 1.25 +# Rules to configure and make the package. 1.26 +compile_rules() 1.27 +{ 1.28 + if [ "$MINGW32_ID" != "$MINGW32_TARGET" ] ; then 1.29 + echo "ERROR: Conf 'TARGET' string differs from Receipt 'ID' string" 1.30 + return 1 1.31 + fi 1.32 + 1.33 + rm -f -r $src/binutils 1.34 + mkdir -p $SOURCE-$VERSION-build 1.35 + cd $SOURCE-$VERSION-build 1.36 + $src/configure \ 1.37 + --prefix=/usr \ 1.38 + --libexecdir=/usr/lib \ 1.39 + --infodir=/usr/share/info \ 1.40 + --mandir=/usr/share/man \ 1.41 + --with-sysroot=$MINGW32_ROOT \ 1.42 + --disable-shared \ 1.43 + --disable-debug \ 1.44 + --target=$MINGW32_TARGET \ 1.45 + --enable-languages=c \ 1.46 + --enable-threads=win32 \ 1.47 + --disable-win32-registry \ 1.48 + --enable-sjlj-exceptions \ 1.49 + $CONFIGURE_ARGS && 1.50 + make CFLAGS="-O2 -fomit-frame-pointer" LDFLAGS="-s" && 1.51 + make DESTDIR=$src/_pkg install 1.52 +} 1.53 + 1.54 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.55 +genpkg_rules() 1.56 +{ 1.57 + mkdir -p $fs/usr 1.58 + cp -a $_pkg/usr/bin $fs/usr 1.59 + # do not need to copy lib/libiberty.a 1.60 + mkdir -p $fs/usr/lib 1.61 + cp -a $_pkg/usr/lib/gcc $fs/usr/lib 1.62 +} 1.63 + 1.64 +# Rules to setup after installation 1.65 +post_install() 1.66 +{ 1.67 + # Archives get stripped during packaging; need to run ranlib 1.68 + local root 1.69 + root=$1 1.70 + find $root/usr/lib/gcc/$MINGW32_ID/ -name *.a -exec $MINGW32_ID-ranlib {} \; 1.71 +} 1.72 + 1.73 +# Rules to clean the package 1.74 +clean_wok() 1.75 +{ 1.76 + rm -r $SOURCE-$VERSION-build 1.77 +}