wok-current view mingw32-binutils/receipt @ rev 23650
updated smartmontools (7.0 -> 7.1)
author | Hans-G?nter Theisgen |
---|---|
date | Mon Apr 20 14:57:44 2020 +0100 (2020-04-20) |
parents | 4c16797dce28 |
children | afae00265386 |
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 # Rules to configure and make the package.
24 compile_rules()
25 {
26 cd $src
27 ./configure \
28 --prefix=/usr \
29 --infodir=/usr/share/info \
30 --mandir=/usr/share/man \
31 --with-sysroot=$MINGW32_ROOT \
32 --disable-shared \
33 --disable-debug \
34 --target=$MINGW32_TARGET \
35 $CONFIGURE_ARGS &&
36 make CFLAGS="-O2 -fno-exceptions -Wno-error=unused-but-set-variable" LDFLAGS="-s" &&
37 make DESTDIR=$DESTDIR install
38 }
40 # Rules to gen a SliTaz package suitable for Tazpkg.
41 genpkg_rules()
42 {
43 mkdir -p $fs/usr/lib $fs$MINGW32_ROOT
44 cp -a $install/usr/bin $fs/usr
45 cp -a $install$MINGW32_ROOT/* $fs$MINGW32_ROOT
46 # do not need to copy lib/libiberty.a
48 strip -s $fs$MINGW32_ROOT/bin/*
50 #Create a symlink for --with-sysroot
51 ln -s . $fs$MINGW32_ROOT/usr
52 }