wok-next view mingw32-binutils/receipt @ rev 20486

outguess: fix install path
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Mar 12 10:46:52 2018 +0100 (2018-03-12)
parents a2f95ddd93db
children b19ddba309f9
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 sed -i 's|2 << 31|0|' gas/config/tc-i386.c
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 \
37 -Wno-error=unused-but-set-variable -Wno-error=unused-value \
38 -Wno-error=unused-but-set-parameter -Wno-error=logical-not-parentheses \
39 -Wno-error=maybe-uninitialized -Wno-error=shift-negative-value" LDFLAGS="-s" &&
40 make DESTDIR=$DESTDIR install
41 }
43 # Rules to gen a SliTaz package suitable for Tazpkg.
44 genpkg_rules()
45 {
46 mkdir -p $fs/usr/lib $fs$MINGW32_ROOT
47 cp -a $install/usr/bin $fs/usr
48 cp -a $install$MINGW32_ROOT/* $fs$MINGW32_ROOT
49 # do not need to copy lib/libiberty.a
51 strip -s $fs$MINGW32_ROOT/bin/*
53 #Create a symlink for --with-sysroot
54 ln -s . $fs$MINGW32_ROOT/usr
55 }