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

updated codeblocks (10.05 -> 17.12)
author Hans-G?nter Theisgen
date Wed Dec 04 17:03:37 2019 +0100 (2019-12-04)
parents b19ddba309f9
children
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="devel@slitaz.org"
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 compile_rules() {
22 sed -i 's|2 << 31|0|' gas/config/tc-i386.c
23 ./configure \
24 --prefix=/usr \
25 --infodir=/usr/share/info \
26 --mandir=/usr/share/man \
27 --with-sysroot=$MINGW32_ROOT \
28 --disable-shared \
29 --disable-debug \
30 --target=$MINGW32_TARGET \
31 $CONFIGURE_ARGS &&
32 make CFLAGS="-O2 -fno-exceptions -Wno-error=unused-but-set-variable \
33 -Wno-error=unused-but-set-variable -Wno-error=unused-value \
34 -Wno-error=unused-but-set-parameter -Wno-error=logical-not-parentheses \
35 -Wno-error=maybe-uninitialized -Wno-error=shift-negative-value" LDFLAGS="-s" &&
36 make DESTDIR=$install install
37 }
39 genpkg_rules() {
40 mkdir -p $fs/usr/lib $fs$MINGW32_ROOT
41 cp -a $install/usr/bin $fs/usr
42 cp -a $install$MINGW32_ROOT/* $fs$MINGW32_ROOT
43 # do not need to copy lib/libiberty.a
45 strip -s $fs$MINGW32_ROOT/bin/*
47 #Create a symlink for --with-sysroot
48 ln -s . $fs$MINGW32_ROOT/usr
50 DEPENDS="glibc-base zlib"
51 TAGS="assembler linker"
52 }