wok-next annotate mingw32-binutils/receipt @ rev 21476
updated abiword (3.0.2 -> 3.0.4)
author | Hans-G?nter Theisgen |
---|---|
date | Thu Jun 18 10:04:29 2020 +0100 (2020-06-18) |
parents | b19ddba309f9 |
children |
rev | line source |
---|---|
al@20519 | 1 # SliTaz package receipt v2. |
pascal@12905 | 2 |
pascal@12905 | 3 PACKAGE="mingw32-binutils" |
al@20519 | 4 VERSION="2.28-1" |
pascal@12905 | 5 CATEGORY="development" |
al@20519 | 6 SHORT_DESC="MinGW32 binutils" |
al@21020 | 7 MAINTAINER="devel@slitaz.org" |
pascal@15000 | 8 LICENSE="GPL2" |
pascal@12905 | 9 WEB_SITE="http://www.mingw.org/" |
al@20519 | 10 |
al@20519 | 11 TARBALL="binutils-$VERSION-mingw32-src.tar.xz" |
pascal@12905 | 12 WGET_URL="$SF_MIRROR/mingw/$TARBALL" |
pascal@12905 | 13 |
al@20519 | 14 BUILD_DEPENDS="slitaz-toolchain bison flex texinfo" |
pascal@15000 | 15 |
pascal@12905 | 16 # Configuration only needs included if we're in the build/wok environment |
al@21020 | 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 |
al@21020 | 21 compile_rules() { |
pascal@20247 | 22 sed -i 's|2 << 31|0|' gas/config/tc-i386.c |
pascal@12905 | 23 ./configure \ |
pascal@12905 | 24 --prefix=/usr \ |
pascal@12905 | 25 --infodir=/usr/share/info \ |
pascal@12905 | 26 --mandir=/usr/share/man \ |
pascal@12905 | 27 --with-sysroot=$MINGW32_ROOT \ |
pascal@12905 | 28 --disable-shared \ |
pascal@12905 | 29 --disable-debug \ |
pascal@12905 | 30 --target=$MINGW32_TARGET \ |
pascal@12905 | 31 $CONFIGURE_ARGS && |
pascal@20319 | 32 make CFLAGS="-O2 -fno-exceptions -Wno-error=unused-but-set-variable \ |
pascal@20319 | 33 -Wno-error=unused-but-set-variable -Wno-error=unused-value \ |
pascal@20319 | 34 -Wno-error=unused-but-set-parameter -Wno-error=logical-not-parentheses \ |
pascal@20319 | 35 -Wno-error=maybe-uninitialized -Wno-error=shift-negative-value" LDFLAGS="-s" && |
al@21020 | 36 make DESTDIR=$install install |
pascal@12905 | 37 } |
pascal@12905 | 38 |
al@21020 | 39 genpkg_rules() { |
pascal@12905 | 40 mkdir -p $fs/usr/lib $fs$MINGW32_ROOT |
pascal@15000 | 41 cp -a $install/usr/bin $fs/usr |
pascal@15000 | 42 cp -a $install$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/* |
al@21020 | 46 |
pascal@12905 | 47 #Create a symlink for --with-sysroot |
pascal@12905 | 48 ln -s . $fs$MINGW32_ROOT/usr |
al@20519 | 49 |
al@20519 | 50 DEPENDS="glibc-base zlib" |
al@20519 | 51 TAGS="assembler linker" |
pascal@12905 | 52 } |