wok-6.x annotate mingw32-gcc-c/receipt @ rev 4178

xfce4, fix DEPENDS
author Eric Joseph-Alexandre <erjo@slitaz.org>
date Tue Sep 22 20:26:37 2009 +0000 (2009-09-22)
parents 589a78b28bb2
children 0b4cf0d9e1b5
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@4036 15 MINGW32_ID="i586-pc-mingw32"
rcx@4036 16
rcx@4036 17 # Configuration only needs included if we're in the build/wok environment
rcx@4036 18 if [ -e $WOK/mingw32-toolchain/stuff/mingw32.conf ] ; then
rcx@4036 19 . $WOK/mingw32-toolchain/stuff/mingw32.conf
rcx@4036 20 fi
rcx@3561 21
rcx@3561 22 # Rules to configure and make the package.
rcx@3561 23 compile_rules()
rcx@3561 24 {
rcx@4036 25 if [ "$MINGW32_ID" != "$MINGW32_TARGET" ] ; then
rcx@4036 26 echo "ERROR: Conf 'TARGET' string differs from Receipt 'ID' string"
rcx@4036 27 exit 1
rcx@4036 28 fi
rcx@4036 29
rcx@3561 30 rm -f -r $src/binutils
rcx@3561 31 mkdir -p $SOURCE-$VERSION-build
rcx@3561 32 cd $SOURCE-$VERSION-build
rcx@3561 33 $src/configure \
rcx@3561 34 --prefix=/usr \
pascal@4015 35 --libexecdir=/usr/lib \
rcx@3561 36 --infodir=/usr/share/info \
rcx@3561 37 --mandir=/usr/share/man \
rcx@4036 38 --with-sysroot=$MINGW32_ROOT \
rcx@3561 39 --disable-shared \
rcx@3561 40 --disable-debug \
rcx@3561 41 --target=$MINGW32_TARGET \
rcx@3561 42 --enable-languages=c \
rcx@3561 43 --enable-threads=win32 \
rcx@3561 44 --disable-win32-registry \
rcx@3561 45 --enable-sjlj-exceptions \
rcx@3561 46 $CONFIGURE_ARGS &&
rcx@3561 47 make CFLAGS="-O2 -fomit-frame-pointer" LDFLAGS="-s" &&
rcx@3561 48 make DESTDIR=$src/_pkg install
rcx@3561 49 }
rcx@3561 50
rcx@3561 51 # Rules to gen a SliTaz package suitable for Tazpkg.
rcx@3561 52 genpkg_rules()
rcx@3561 53 {
rcx@3561 54 mkdir -p $fs/usr
rcx@3561 55 cp -a $_pkg/usr/bin $fs/usr
rcx@3561 56 # do not need to copy lib/libiberty.a
rcx@3561 57 mkdir -p $fs/usr/lib
rcx@3561 58 cp -a $_pkg/usr/lib/gcc $fs/usr/lib
rcx@3561 59 }
rcx@3561 60
rcx@3561 61 # Rules to setup after installation
rcx@3561 62 post_install()
rcx@3561 63 {
rcx@3561 64 # Archives get stripped during packaging; need to run ranlib
rcx@3561 65 local root
rcx@3561 66 root=$1
rcx@4036 67 find $root/usr/lib/gcc/$MINGW32_ID/ -name *.a -exec $MINGW32_ID-ranlib {} \;
rcx@3561 68 }
rcx@3561 69
rcx@3561 70 # Rules to clean the package
rcx@3561 71 clean_wok()
rcx@3561 72 {
rcx@3561 73 rm -r $SOURCE-$VERSION-build
rcx@3561 74 }