wok-stable view mingw32-binutils/receipt @ rev 4973
add/improve TAGS t* receipts
author | Rohit Joshi <jozee@slitaz.org> |
---|---|
date | Wed Feb 24 12:13:18 2010 +0000 (2010-02-24) |
parents | 05b5a901936b |
children | d1768332cee0 |
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"
15 # Configuration only needs included if we're in the build/wok environment
16 if [ -e $WOK/mingw32-toolchain/stuff/mingw32.conf ] ; then
17 . $WOK/mingw32-toolchain/stuff/mingw32.conf
18 fi
20 # Rules to configure and make the package.
21 compile_rules()
22 {
23 cd $src
24 ./configure \
25 --prefix=/usr \
26 --infodir=/usr/share/info \
27 --mandir=/usr/share/man \
28 --with-sysroot=$MINGW32_ROOT \
29 --disable-shared \
30 --disable-debug \
31 --target=$MINGW32_TARGET \
32 $CONFIGURE_ARGS &&
33 make CFLAGS="-O2 -fno-exceptions" LDFLAGS="-s" &&
34 make DESTDIR=$PWD/_pkg install
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 mkdir -p $fs/usr/lib $fs$MINGW32_ROOT
41 cp -a $_pkg/usr/bin $fs/usr
42 cp -a $_pkg$MINGW32_ROOT/* $fs$MINGW32_ROOT
43 # do not need to copy lib/libiberty.a
45 strip -s $fs$MINGW32_ROOT/bin/*
47 #Create a symlink for --with-sysroot
48 ln -s . $fs$MINGW32_ROOT/usr
49 }