wok-next annotate mingw32-binutils/receipt @ rev 10569

putty: update bdeps
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed May 25 23:29:00 2011 +0200 (2011-05-25)
parents d1768332cee0
children
rev   line source
rcx@3561 1 # SliTaz package receipt.
rcx@3561 2
rcx@3561 3 PACKAGE="mingw32-binutils"
rcx@3561 4 SOURCE="binutils"
rcx@3561 5 VERSION="2.19.1"
rcx@3561 6 CATEGORY="development"
rcx@3561 7 SHORT_DESC="MinGW32 binutils."
rcx@3561 8 MAINTAINER="rcx@zoominternet.net"
rcx@3561 9 DEPENDS="glibc-base zlib"
rcx@3561 10 BUILD_DEPENDS="slitaz-toolchain bison flex"
rcx@3561 11 TARBALL="$SOURCE-$VERSION-src.tar.gz"
rcx@3561 12 WEB_SITE="http://www.mingw.org/"
rcx@3561 13 WGET_URL="$SF_MIRROR/mingw/$TARBALL"
rcx@4036 14
rcx@4036 15 # Configuration only needs included if we're in the build/wok environment
slaxemulator@9701 16 if [ -e $WOK/mingw32-toolchain/stuff/mingw32.conf ] ; then
slaxemulator@9701 17 . $WOK/mingw32-toolchain/stuff/mingw32.conf
rcx@4036 18 fi
rcx@3561 19
rcx@3561 20 # Rules to configure and make the package.
rcx@3561 21 compile_rules()
rcx@3561 22 {
rcx@3561 23 cd $src
rcx@3561 24 ./configure \
rcx@3561 25 --prefix=/usr \
rcx@3561 26 --infodir=/usr/share/info \
rcx@3561 27 --mandir=/usr/share/man \
rcx@4036 28 --with-sysroot=$MINGW32_ROOT \
rcx@3561 29 --disable-shared \
rcx@3561 30 --disable-debug \
rcx@3561 31 --target=$MINGW32_TARGET \
rcx@3561 32 $CONFIGURE_ARGS &&
rcx@3561 33 make CFLAGS="-O2 -fno-exceptions" LDFLAGS="-s" &&
rcx@3561 34 make DESTDIR=$PWD/_pkg install
rcx@3561 35 }
rcx@3561 36
rcx@3561 37 # Rules to gen a SliTaz package suitable for Tazpkg.
rcx@3561 38 genpkg_rules()
rcx@3561 39 {
rcx@4036 40 mkdir -p $fs/usr/lib $fs$MINGW32_ROOT
rcx@3561 41 cp -a $_pkg/usr/bin $fs/usr
rcx@4036 42 cp -a $_pkg$MINGW32_ROOT/* $fs$MINGW32_ROOT
rcx@3561 43 # do not need to copy lib/libiberty.a
rcx@4036 44
rcx@4036 45 strip -s $fs$MINGW32_ROOT/bin/*
rcx@3561 46
rcx@3561 47 #Create a symlink for --with-sysroot
rcx@4036 48 ln -s . $fs$MINGW32_ROOT/usr
rcx@3561 49 }