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

Fix dep for libglamoregl.so (libepoxy), and miss file for amdgpu (thanks alanyih)
author Stanislas Leduc <shann@slitaz.org>
date Fri Apr 19 12:48:51 2024 +0000 (8 weeks ago)
parents afae00265386
children
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 gcc49"
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
36 # https://bugzilla.redhat.com/show_bug.cgi?id=1230079
37 patch -p1 < $stuff/fix_right_hand.patch
39 ./configure \
40 CC=gcc-49 \
41 CXX=gcc-49 \
42 --prefix=/usr \
43 --infodir=/usr/share/info \
44 --mandir=/usr/share/man \
45 --with-sysroot=$MINGW32_ROOT \
46 --disable-shared \
47 --disable-debug \
48 --disable-werror \
49 --target=$MINGW32_TARGET \
50 $CONFIGURE_ARGS &&
51 make CFLAGS="-O2 -fno-exceptions -Wno-error=unused-but-set-variable" LDFLAGS="-s" &&
52 make DESTDIR=$DESTDIR install
53 }
55 # Rules to gen a SliTaz package suitable for Tazpkg.
56 genpkg_rules()
57 {
58 mkdir -p $fs/usr/lib $fs$MINGW32_ROOT
59 cp -a $install/usr/bin $fs/usr
60 cp -a $install$MINGW32_ROOT/* $fs$MINGW32_ROOT
61 # do not need to copy lib/libiberty.a
63 strip -s $fs$MINGW32_ROOT/bin/*
65 #Create a symlink for --with-sysroot
66 ln -s . $fs$MINGW32_ROOT/usr
67 }