wok-stable view mingw32-binutils/receipt @ rev 3633
Up: sqlite (3.6.16)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Fri Jul 03 10:42:30 2009 +0200 (2009-07-03) |
parents | |
children | 05b5a901936b |
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 MINGW32_TARGET="i586-pc-mingw32"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 cd $src
20 ./configure \
21 --prefix=/usr \
22 --infodir=/usr/share/info \
23 --mandir=/usr/share/man \
24 --with-sysroot=/usr/$MINGW32_TARGET \
25 --disable-shared \
26 --disable-debug \
27 --target=$MINGW32_TARGET \
28 $CONFIGURE_ARGS &&
29 make CFLAGS="-O2 -fno-exceptions" LDFLAGS="-s" &&
30 make DESTDIR=$PWD/_pkg install
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 mkdir -p $fs/usr
37 cp -a $_pkg/usr/bin $fs/usr
38 cp -a $_pkg/usr/$MINGW32_TARGET $fs/usr
39 # do not need to copy lib/libiberty.a
41 #Create a symlink for --with-sysroot
42 ( cd $fs/usr/$MINGW32_TARGET && ln -s . usr )
43 }