wok view mingw32-binutils/receipt @ rev 13792

freeglut: update bdeps
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Jan 05 13:11:38 2013 +0100 (2013-01-05)
parents 42924af752bc
children 380ffe05937a
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 DEPENDS="glibc-base zlib"
10 BUILD_DEPENDS="slitaz-toolchain bison flex"
11 TARBALL="$SOURCE-$VERSION-src.tar.gz"
12 WEB_SITE="http://www.mingw.org/"
13 WGET_URL="$SF_MIRROR/mingw/$TARBALL"
14 TAGS="assembler linker"
16 # Configuration only needs included if we're in the build/wok environment
17 if [ -e $WOK/mingw32-toolchain/stuff/mingw32.conf ] ; then
18 . $WOK/mingw32-toolchain/stuff/mingw32.conf
19 fi
21 # Rules to configure and make the package.
22 compile_rules()
23 {
24 cd $src
25 ./configure \
26 --prefix=/usr \
27 --infodir=/usr/share/info \
28 --mandir=/usr/share/man \
29 --with-sysroot=$MINGW32_ROOT \
30 --disable-shared \
31 --disable-debug \
32 --target=$MINGW32_TARGET \
33 $CONFIGURE_ARGS &&
34 make CFLAGS="-O2 -fno-exceptions -Wno-error=unused-but-set-variable" LDFLAGS="-s" &&
35 make DESTDIR=$DESTDIR install
36 }
38 # Rules to gen a SliTaz package suitable for Tazpkg.
39 genpkg_rules()
40 {
41 mkdir -p $fs/usr/lib $fs$MINGW32_ROOT
42 cp -a $_pkg/usr/bin $fs/usr
43 cp -a $_pkg$MINGW32_ROOT/* $fs$MINGW32_ROOT
44 # do not need to copy lib/libiberty.a
46 strip -s $fs$MINGW32_ROOT/bin/*
48 #Create a symlink for --with-sysroot
49 ln -s . $fs$MINGW32_ROOT/usr
50 }