wok-next view mingw32-binutils/receipt @ rev 20519

Synchronize wok-hg with wok. Some yesterday's patches are lost :(
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Mar 23 10:45:35 2018 +0200 (2018-03-23)
parents 99d1d45ec006
children d5aab818505e
line source
1 # SliTaz package receipt v2.
3 PACKAGE="mingw32-binutils"
4 VERSION="2.28-1"
5 CATEGORY="development"
6 SHORT_DESC="MinGW32 binutils"
7 MAINTAINER="rcx@zoominternet.net"
8 LICENSE="GPL2"
9 WEB_SITE="http://www.mingw.org/"
11 TARBALL="binutils-$VERSION-mingw32-src.tar.xz"
12 WGET_URL="$SF_MIRROR/mingw/$TARBALL"
14 BUILD_DEPENDS="slitaz-toolchain bison flex texinfo"
16 # Configuration only needs included if we're in the build/wok environment
17 if [ -e $WOK/mingw32-toolchain/stuff/mingw32.conf ] ; then
18 . $WOK/mingw32-toolchain/stuff/mingw32.conf
19 fi
21 # Rules to configure and make the package.
22 compile_rules()
23 {
24 sed -i 's|2 << 31|0|' gas/config/tc-i386.c
25 ./configure \
26 --prefix=/usr \
27 --infodir=/usr/share/info \
28 --mandir=/usr/share/man \
29 --with-sysroot=$MINGW32_ROOT \
30 --disable-shared \
31 --disable-debug \
32 --target=$MINGW32_TARGET \
33 $CONFIGURE_ARGS &&
34 make CFLAGS="-O2 -fno-exceptions -Wno-error=unused-but-set-variable \
35 -Wno-error=unused-but-set-variable -Wno-error=unused-value \
36 -Wno-error=unused-but-set-parameter -Wno-error=logical-not-parentheses \
37 -Wno-error=maybe-uninitialized -Wno-error=shift-negative-value" LDFLAGS="-s" &&
38 make DESTDIR=$DESTDIR install
39 }
41 # Rules to gen a SliTaz package suitable for Tazpkg.
42 genpkg_rules()
43 {
44 mkdir -p $fs/usr/lib $fs$MINGW32_ROOT
45 cp -a $install/usr/bin $fs/usr
46 cp -a $install$MINGW32_ROOT/* $fs$MINGW32_ROOT
47 # do not need to copy lib/libiberty.a
49 strip -s $fs$MINGW32_ROOT/bin/*
51 #Create a symlink for --with-sysroot
52 ln -s . $fs$MINGW32_ROOT/usr
54 DEPENDS="glibc-base zlib"
55 TAGS="assembler linker"
56 }