wok-6.x diff mingw32-gcc-c/receipt @ rev 3561
Add: mingw32
author | Matthew Sheets <rcx@zoominternet.net> |
---|---|
date | Wed Jun 24 10:32:56 2009 +0000 (2009-06-24) |
parents | |
children | 05b5a901936b |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/mingw32-gcc-c/receipt Wed Jun 24 10:32:56 2009 +0000 1.3 @@ -0,0 +1,65 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="mingw32-gcc-c" 1.7 +SOURCE="gcc" 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-core-$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_TARGET="i586-pc-mingw32" 1.19 + 1.20 +# Rules to configure and make the package. 1.21 +compile_rules() 1.22 +{ 1.23 + rm -f -r $src/binutils 1.24 + mkdir -p $SOURCE-$VERSION-build 1.25 + cd $SOURCE-$VERSION-build 1.26 + $src/configure \ 1.27 + --prefix=/usr \ 1.28 + --infodir=/usr/share/info \ 1.29 + --mandir=/usr/share/man \ 1.30 + --with-sysroot=/usr/$MINGW32_TARGET \ 1.31 + --disable-shared \ 1.32 + --disable-debug \ 1.33 + --target=$MINGW32_TARGET \ 1.34 + --enable-languages=c \ 1.35 + --enable-threads=win32 \ 1.36 + --disable-win32-registry \ 1.37 + --enable-sjlj-exceptions \ 1.38 + $CONFIGURE_ARGS && 1.39 + make CFLAGS="-O2 -fomit-frame-pointer" LDFLAGS="-s" && 1.40 + $MINGW32_TARGET-ranlib gcc/*.a && 1.41 + make DESTDIR=$src/_pkg install 1.42 +} 1.43 + 1.44 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.45 +genpkg_rules() 1.46 +{ 1.47 + mkdir -p $fs/usr 1.48 + cp -a $_pkg/usr/bin $fs/usr 1.49 + # do not need to copy lib/libiberty.a 1.50 + mkdir -p $fs/usr/lib 1.51 + cp -a $_pkg/usr/lib/gcc $fs/usr/lib 1.52 + cp -a $_pkg/usr/libexec $fs/usr 1.53 +} 1.54 + 1.55 +# Rules to setup after installation 1.56 +post_install() 1.57 +{ 1.58 + # Archives get stripped during packaging; need to run ranlib 1.59 + local root 1.60 + root=$1 1.61 + find $root/usr/lib/gcc/$MINGW32_TARGET/ -name *.a -exec $MINGW32_TARGET-ranlib {} \; 1.62 +} 1.63 + 1.64 +# Rules to clean the package 1.65 +clean_wok() 1.66 +{ 1.67 + rm -r $SOURCE-$VERSION-build 1.68 +}