wok annotate mingw32-binutils/receipt @ rev 24985

Add python-future
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue May 10 07:46:58 2022 +0000 (2022-05-10)
parents 380ffe05937a
children d3556b8f5c3d
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@15000 9 LICENSE="GPL2"
pascal@12905 10 TARBALL="$SOURCE-$VERSION-src.tar.gz"
pascal@12905 11 WEB_SITE="http://www.mingw.org/"
pascal@12905 12 WGET_URL="$SF_MIRROR/mingw/$TARBALL"
pascal@13033 13 TAGS="assembler linker"
pascal@12905 14
pascal@15000 15 DEPENDS="glibc-base zlib"
pascal@15000 16 BUILD_DEPENDS="slitaz-toolchain bison flex"
pascal@15000 17
pascal@12905 18 # Configuration only needs included if we're in the build/wok environment
pascal@12905 19 if [ -e $WOK/mingw32-toolchain/stuff/mingw32.conf ] ; then
pascal@12905 20 . $WOK/mingw32-toolchain/stuff/mingw32.conf
pascal@12905 21 fi
pascal@12905 22
pascal@24402 23 # What is the latest version available today?
pascal@24402 24 current_version()
pascal@24402 25 {
pascal@24402 26 wget -O - https://sourceforge.net/projects/mingw/files/MinGW/Base/binutils/ 2>/dev/null | \
pascal@24402 27 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
pascal@24402 28 sed '/scope="row/!d;s|.*/binutils-||;s|/.*||;q'
pascal@24402 29 }
pascal@24402 30
pascal@12905 31 # Rules to configure and make the package.
pascal@12905 32 compile_rules()
pascal@12905 33 {
pascal@12905 34 cd $src
pascal@12905 35 ./configure \
pascal@12905 36 --prefix=/usr \
pascal@12905 37 --infodir=/usr/share/info \
pascal@12905 38 --mandir=/usr/share/man \
pascal@12905 39 --with-sysroot=$MINGW32_ROOT \
pascal@12905 40 --disable-shared \
pascal@12905 41 --disable-debug \
pascal@12905 42 --target=$MINGW32_TARGET \
pascal@12905 43 $CONFIGURE_ARGS &&
pascal@12905 44 make CFLAGS="-O2 -fno-exceptions -Wno-error=unused-but-set-variable" LDFLAGS="-s" &&
pascal@12905 45 make DESTDIR=$DESTDIR install
pascal@12905 46 }
pascal@12905 47
pascal@12905 48 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@12905 49 genpkg_rules()
pascal@12905 50 {
pascal@12905 51 mkdir -p $fs/usr/lib $fs$MINGW32_ROOT
pascal@15000 52 cp -a $install/usr/bin $fs/usr
pascal@15000 53 cp -a $install$MINGW32_ROOT/* $fs$MINGW32_ROOT
pascal@12905 54 # do not need to copy lib/libiberty.a
pascal@12905 55
pascal@12905 56 strip -s $fs$MINGW32_ROOT/bin/*
pascal@12905 57
pascal@12905 58 #Create a symlink for --with-sysroot
pascal@12905 59 ln -s . $fs$MINGW32_ROOT/usr
pascal@12905 60 }