wok-6.x annotate mingw32-gcc-c/receipt @ rev 4015
mingw32*: fix FSH
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Sep 03 21:46:00 2009 +0200 (2009-09-03) |
parents | 1aa4817e0aff |
children | 589a78b28bb2 |
rev | line source |
---|---|
rcx@3561 | 1 # SliTaz package receipt. |
rcx@3561 | 2 |
rcx@3561 | 3 PACKAGE="mingw32-gcc-c" |
rcx@3561 | 4 SOURCE="gcc" |
rcx@3561 | 5 VERSION="3.4.5-20060117-2" |
rcx@3561 | 6 CATEGORY="development" |
rcx@3561 | 7 SHORT_DESC="MinGW32 gcc, for the C language only." |
rcx@3561 | 8 MAINTAINER="rcx@zoominternet.net" |
rcx@3561 | 9 DEPENDS="glibc-base mingw32-binutils mingw32-w32api-headers mingw32-runtime-headers" |
rcx@3561 | 10 BUILD_DEPENDS="slitaz-toolchain bison flex mingw32-binutils mingw32-runtime-headers mingw32-w32api-headers" |
rcx@3561 | 11 TARBALL="$SOURCE-core-$VERSION-src.tar.gz" |
rcx@3561 | 12 WEB_SITE="http://www.mingw.org/" |
rcx@3561 | 13 MINGW32_URL="$SF_MIRROR/mingw" |
rcx@3561 | 14 WGET_URL="$MINGW32_URL/$TARBALL" |
rcx@3561 | 15 MINGW32_TARGET="i586-pc-mingw32" |
rcx@3561 | 16 |
rcx@3561 | 17 # Rules to configure and make the package. |
rcx@3561 | 18 compile_rules() |
rcx@3561 | 19 { |
rcx@3561 | 20 rm -f -r $src/binutils |
rcx@3561 | 21 mkdir -p $SOURCE-$VERSION-build |
rcx@3561 | 22 cd $SOURCE-$VERSION-build |
rcx@3561 | 23 $src/configure \ |
rcx@3561 | 24 --prefix=/usr \ |
pascal@4015 | 25 --libexecdir=/usr/lib \ |
rcx@3561 | 26 --infodir=/usr/share/info \ |
rcx@3561 | 27 --mandir=/usr/share/man \ |
rcx@3561 | 28 --with-sysroot=/usr/$MINGW32_TARGET \ |
rcx@3561 | 29 --disable-shared \ |
rcx@3561 | 30 --disable-debug \ |
rcx@3561 | 31 --target=$MINGW32_TARGET \ |
rcx@3561 | 32 --enable-languages=c \ |
rcx@3561 | 33 --enable-threads=win32 \ |
rcx@3561 | 34 --disable-win32-registry \ |
rcx@3561 | 35 --enable-sjlj-exceptions \ |
rcx@3561 | 36 $CONFIGURE_ARGS && |
rcx@3561 | 37 make CFLAGS="-O2 -fomit-frame-pointer" LDFLAGS="-s" && |
rcx@3561 | 38 $MINGW32_TARGET-ranlib gcc/*.a && |
rcx@3561 | 39 make DESTDIR=$src/_pkg install |
rcx@3561 | 40 } |
rcx@3561 | 41 |
rcx@3561 | 42 # Rules to gen a SliTaz package suitable for Tazpkg. |
rcx@3561 | 43 genpkg_rules() |
rcx@3561 | 44 { |
rcx@3561 | 45 mkdir -p $fs/usr |
rcx@3561 | 46 cp -a $_pkg/usr/bin $fs/usr |
rcx@3561 | 47 # do not need to copy lib/libiberty.a |
rcx@3561 | 48 mkdir -p $fs/usr/lib |
rcx@3561 | 49 cp -a $_pkg/usr/lib/gcc $fs/usr/lib |
rcx@3561 | 50 } |
rcx@3561 | 51 |
rcx@3561 | 52 # Rules to setup after installation |
rcx@3561 | 53 post_install() |
rcx@3561 | 54 { |
rcx@3561 | 55 # Archives get stripped during packaging; need to run ranlib |
rcx@3561 | 56 local root |
rcx@3561 | 57 root=$1 |
rcx@3561 | 58 find $root/usr/lib/gcc/$MINGW32_TARGET/ -name *.a -exec $MINGW32_TARGET-ranlib {} \; |
rcx@3561 | 59 } |
rcx@3561 | 60 |
rcx@3561 | 61 # Rules to clean the package |
rcx@3561 | 62 clean_wok() |
rcx@3561 | 63 { |
rcx@3561 | 64 rm -r $SOURCE-$VERSION-build |
rcx@3561 | 65 } |