wok-current view mingw32-binutils/receipt @ rev 24962

updated ndiswrapper packages (1.62 -> 1.63)
author Hans-G?nter Theisgen
date Sun Apr 24 07:20:09 2022 +0100 (2022-04-24)
parents 380ffe05937a
children a23978bfa665
line source
1 # SliTaz package receipt.
3 PACKAGE="mingw32-binutils"
4 SOURCE="binutils"
5 VERSION="2.19.1"
6 CATEGORY="development"
7 SHORT_DESC="MinGW32 binutils."
8 MAINTAINER="rcx@zoominternet.net"
9 LICENSE="GPL2"
10 TARBALL="$SOURCE-$VERSION-src.tar.gz"
11 WEB_SITE="http://www.mingw.org/"
12 WGET_URL="$SF_MIRROR/mingw/$TARBALL"
13 TAGS="assembler linker"
15 DEPENDS="glibc-base zlib"
16 BUILD_DEPENDS="slitaz-toolchain bison flex"
18 # Configuration only needs included if we're in the build/wok environment
19 if [ -e $WOK/mingw32-toolchain/stuff/mingw32.conf ] ; then
20 . $WOK/mingw32-toolchain/stuff/mingw32.conf
21 fi
23 # What is the latest version available today?
24 current_version()
25 {
26 wget -O - https://sourceforge.net/projects/mingw/files/MinGW/Base/binutils/ 2>/dev/null | \
27 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
28 sed '/scope="row/!d;s|.*/binutils-||;s|/.*||;q'
29 }
31 # Rules to configure and make the package.
32 compile_rules()
33 {
34 cd $src
35 ./configure \
36 --prefix=/usr \
37 --infodir=/usr/share/info \
38 --mandir=/usr/share/man \
39 --with-sysroot=$MINGW32_ROOT \
40 --disable-shared \
41 --disable-debug \
42 --target=$MINGW32_TARGET \
43 $CONFIGURE_ARGS &&
44 make CFLAGS="-O2 -fno-exceptions -Wno-error=unused-but-set-variable" LDFLAGS="-s" &&
45 make DESTDIR=$DESTDIR install
46 }
48 # Rules to gen a SliTaz package suitable for Tazpkg.
49 genpkg_rules()
50 {
51 mkdir -p $fs/usr/lib $fs$MINGW32_ROOT
52 cp -a $install/usr/bin $fs/usr
53 cp -a $install$MINGW32_ROOT/* $fs$MINGW32_ROOT
54 # do not need to copy lib/libiberty.a
56 strip -s $fs$MINGW32_ROOT/bin/*
58 #Create a symlink for --with-sysroot
59 ln -s . $fs$MINGW32_ROOT/usr
60 }