wok annotate mingw32-binutils/receipt @ rev 14835
xfce4-session: remove wrong trigger
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Jul 17 15:47:34 2013 +0200 (2013-07-17) |
parents | 42924af752bc |
children | 380ffe05937a |
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@13033 | 14 TAGS="assembler linker" |
pascal@12905 | 15 |
pascal@12905 | 16 # Configuration only needs included if we're in the build/wok environment |
pascal@12905 | 17 if [ -e $WOK/mingw32-toolchain/stuff/mingw32.conf ] ; then |
pascal@12905 | 18 . $WOK/mingw32-toolchain/stuff/mingw32.conf |
pascal@12905 | 19 fi |
pascal@12905 | 20 |
pascal@12905 | 21 # Rules to configure and make the package. |
pascal@12905 | 22 compile_rules() |
pascal@12905 | 23 { |
pascal@12905 | 24 cd $src |
pascal@12905 | 25 ./configure \ |
pascal@12905 | 26 --prefix=/usr \ |
pascal@12905 | 27 --infodir=/usr/share/info \ |
pascal@12905 | 28 --mandir=/usr/share/man \ |
pascal@12905 | 29 --with-sysroot=$MINGW32_ROOT \ |
pascal@12905 | 30 --disable-shared \ |
pascal@12905 | 31 --disable-debug \ |
pascal@12905 | 32 --target=$MINGW32_TARGET \ |
pascal@12905 | 33 $CONFIGURE_ARGS && |
pascal@12905 | 34 make CFLAGS="-O2 -fno-exceptions -Wno-error=unused-but-set-variable" LDFLAGS="-s" && |
pascal@12905 | 35 make DESTDIR=$DESTDIR install |
pascal@12905 | 36 } |
pascal@12905 | 37 |
pascal@12905 | 38 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@12905 | 39 genpkg_rules() |
pascal@12905 | 40 { |
pascal@12905 | 41 mkdir -p $fs/usr/lib $fs$MINGW32_ROOT |
pascal@12905 | 42 cp -a $_pkg/usr/bin $fs/usr |
pascal@12905 | 43 cp -a $_pkg$MINGW32_ROOT/* $fs$MINGW32_ROOT |
pascal@12905 | 44 # do not need to copy lib/libiberty.a |
pascal@12905 | 45 |
pascal@12905 | 46 strip -s $fs$MINGW32_ROOT/bin/* |
pascal@12905 | 47 |
pascal@12905 | 48 #Create a symlink for --with-sysroot |
pascal@12905 | 49 ln -s . $fs$MINGW32_ROOT/usr |
pascal@12905 | 50 } |