wok-undigest annotate mingw32-gcc-c/receipt @ rev 378

busybox/conspy: typo
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Aug 16 18:07:15 2011 +0200 (2011-08-16)
parents
children
rev   line source
pankso@251 1 # SliTaz package receipt.
pankso@251 2
pankso@251 3 PACKAGE="mingw32-gcc-c"
pankso@251 4 SOURCE="gcc-core"
pankso@251 5 VERSION="3.4.5-20060117-2"
pankso@251 6 CATEGORY="development"
pankso@251 7 SHORT_DESC="MinGW32 gcc, for the C language only."
pankso@251 8 MAINTAINER="rcx@zoominternet.net"
pankso@251 9 DEPENDS="glibc-base mingw32-binutils mingw32-w32api-headers mingw32-runtime-headers"
pankso@251 10 BUILD_DEPENDS="slitaz-toolchain bison flex mingw32-binutils mingw32-runtime-headers mingw32-w32api-headers"
pankso@251 11 TARBALL="$SOURCE-$VERSION-src.tar.gz"
pankso@251 12 WEB_SITE="http://www.mingw.org/"
pankso@251 13 MINGW32_URL="$SF_MIRROR/mingw"
pankso@251 14 WGET_URL="$MINGW32_URL/$TARBALL"
pankso@251 15 MINGW32_ID="i586-pc-mingw32"
pankso@251 16
pankso@251 17 # Configuration only needs included if we're in the build/wok environment
pankso@251 18 if [ -e $WOK/mingw32-toolchain/stuff/mingw32.conf ] ; then
pankso@251 19 . $WOK/mingw32-toolchain/stuff/mingw32.conf
pankso@251 20 fi
pankso@251 21
pankso@251 22 # Rules to configure and make the package.
pankso@251 23 compile_rules()
pankso@251 24 {
pankso@251 25 if [ "$MINGW32_ID" != "$MINGW32_TARGET" ] ; then
pankso@251 26 echo "ERROR: Conf 'TARGET' string differs from Receipt 'ID' string"
pankso@251 27 return 1
pankso@251 28 fi
pankso@251 29
pankso@251 30 rm -f -r $src/binutils
pankso@251 31 mkdir -p $SOURCE-$VERSION-build
pankso@251 32 cd $SOURCE-$VERSION-build
pankso@251 33 $src/configure \
pankso@251 34 --prefix=/usr \
pankso@251 35 --libexecdir=/usr/lib \
pankso@251 36 --infodir=/usr/share/info \
pankso@251 37 --mandir=/usr/share/man \
pankso@251 38 --with-sysroot=$MINGW32_ROOT \
pankso@251 39 --disable-shared \
pankso@251 40 --disable-debug \
pankso@251 41 --target=$MINGW32_TARGET \
pankso@251 42 --enable-languages=c \
pankso@251 43 --enable-threads=win32 \
pankso@251 44 --disable-win32-registry \
pankso@251 45 --enable-sjlj-exceptions \
pankso@251 46 $CONFIGURE_ARGS &&
pankso@251 47 make CFLAGS="-O2 -fomit-frame-pointer" LDFLAGS="-s" &&
pankso@251 48 make DESTDIR=$src/_pkg install
pankso@251 49 }
pankso@251 50
pankso@251 51 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@251 52 genpkg_rules()
pankso@251 53 {
pankso@251 54 mkdir -p $fs/usr
pankso@251 55 cp -a $_pkg/usr/bin $fs/usr
pankso@251 56 # do not need to copy lib/libiberty.a
pankso@251 57 mkdir -p $fs/usr/lib
pankso@251 58 cp -a $_pkg/usr/lib/gcc $fs/usr/lib
pankso@251 59 }
pankso@251 60
pankso@251 61 # Rules to setup after installation
pankso@251 62 post_install()
pankso@251 63 {
pankso@251 64 # Archives get stripped during packaging; need to run ranlib
pankso@251 65 local root
pankso@251 66 root=$1
pankso@251 67 find $root/usr/lib/gcc/$MINGW32_ID/ -name *.a -exec $MINGW32_ID-ranlib {} \;
pankso@251 68 }
pankso@251 69
pankso@251 70 # Rules to clean the package
pankso@251 71 clean_wok()
pankso@251 72 {
pankso@251 73 rm -r $SOURCE-$VERSION-build
pankso@251 74 }