wok-next annotate mingw32-binutils/receipt @ rev 20752

mate-control-center, volume_key, xpaint: update bdeps.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Jun 01 15:40:27 2018 +0300 (2018-06-01)
parents 99d1d45ec006
children d5aab818505e
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"
pascal@12905 7 MAINTAINER="rcx@zoominternet.net"
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
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@20247 24 sed -i 's|2 << 31|0|' gas/config/tc-i386.c
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@20319 34 make CFLAGS="-O2 -fno-exceptions -Wno-error=unused-but-set-variable \
pascal@20319 35 -Wno-error=unused-but-set-variable -Wno-error=unused-value \
pascal@20319 36 -Wno-error=unused-but-set-parameter -Wno-error=logical-not-parentheses \
pascal@20319 37 -Wno-error=maybe-uninitialized -Wno-error=shift-negative-value" LDFLAGS="-s" &&
pascal@12905 38 make DESTDIR=$DESTDIR install
pascal@12905 39 }
pascal@12905 40
pascal@12905 41 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@12905 42 genpkg_rules()
pascal@12905 43 {
pascal@12905 44 mkdir -p $fs/usr/lib $fs$MINGW32_ROOT
pascal@15000 45 cp -a $install/usr/bin $fs/usr
pascal@15000 46 cp -a $install$MINGW32_ROOT/* $fs$MINGW32_ROOT
pascal@12905 47 # do not need to copy lib/libiberty.a
pascal@12905 48
pascal@12905 49 strip -s $fs$MINGW32_ROOT/bin/*
pascal@12905 50
pascal@12905 51 #Create a symlink for --with-sysroot
pascal@12905 52 ln -s . $fs$MINGW32_ROOT/usr
al@20519 53
al@20519 54 DEPENDS="glibc-base zlib"
al@20519 55 TAGS="assembler linker"
pascal@12905 56 }