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