wok-stable annotate mingw32-gcc-c/receipt @ rev 3572

Add get-google-chrome (thanks rocky)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Jun 25 17:22:57 2009 +0200 (2009-06-25)
parents
children 05b5a901936b
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 \
rcx@3561 25 --infodir=/usr/share/info \
rcx@3561 26 --mandir=/usr/share/man \
rcx@3561 27 --with-sysroot=/usr/$MINGW32_TARGET \
rcx@3561 28 --disable-shared \
rcx@3561 29 --disable-debug \
rcx@3561 30 --target=$MINGW32_TARGET \
rcx@3561 31 --enable-languages=c \
rcx@3561 32 --enable-threads=win32 \
rcx@3561 33 --disable-win32-registry \
rcx@3561 34 --enable-sjlj-exceptions \
rcx@3561 35 $CONFIGURE_ARGS &&
rcx@3561 36 make CFLAGS="-O2 -fomit-frame-pointer" LDFLAGS="-s" &&
rcx@3561 37 $MINGW32_TARGET-ranlib gcc/*.a &&
rcx@3561 38 make DESTDIR=$src/_pkg install
rcx@3561 39 }
rcx@3561 40
rcx@3561 41 # Rules to gen a SliTaz package suitable for Tazpkg.
rcx@3561 42 genpkg_rules()
rcx@3561 43 {
rcx@3561 44 mkdir -p $fs/usr
rcx@3561 45 cp -a $_pkg/usr/bin $fs/usr
rcx@3561 46 # do not need to copy lib/libiberty.a
rcx@3561 47 mkdir -p $fs/usr/lib
rcx@3561 48 cp -a $_pkg/usr/lib/gcc $fs/usr/lib
rcx@3561 49 cp -a $_pkg/usr/libexec $fs/usr
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 }