wok-current annotate mingw32-binutils/receipt @ rev 4015
mingw32*: fix FSH
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Sep 03 21:46:00 2009 +0200 (2009-09-03) |
parents | 1aa4817e0aff |
children | d437e141264c |
rev | line source |
---|---|
rcx@3561 | 1 # SliTaz package receipt. |
rcx@3561 | 2 |
rcx@3561 | 3 PACKAGE="mingw32-binutils" |
rcx@3561 | 4 SOURCE="binutils" |
rcx@3561 | 5 VERSION="2.19.1" |
rcx@3561 | 6 CATEGORY="development" |
rcx@3561 | 7 SHORT_DESC="MinGW32 binutils." |
rcx@3561 | 8 MAINTAINER="rcx@zoominternet.net" |
rcx@3561 | 9 DEPENDS="glibc-base zlib" |
rcx@3561 | 10 BUILD_DEPENDS="slitaz-toolchain bison flex" |
rcx@3561 | 11 TARBALL="$SOURCE-$VERSION-src.tar.gz" |
rcx@3561 | 12 WEB_SITE="http://www.mingw.org/" |
rcx@3561 | 13 WGET_URL="$SF_MIRROR/mingw/$TARBALL" |
rcx@3561 | 14 MINGW32_TARGET="i586-pc-mingw32" |
rcx@3561 | 15 |
rcx@3561 | 16 # Rules to configure and make the package. |
rcx@3561 | 17 compile_rules() |
rcx@3561 | 18 { |
rcx@3561 | 19 cd $src |
rcx@3561 | 20 ./configure \ |
rcx@3561 | 21 --prefix=/usr \ |
rcx@3561 | 22 --infodir=/usr/share/info \ |
rcx@3561 | 23 --mandir=/usr/share/man \ |
pascal@4015 | 24 --with-sysroot=/usr/lib/$MINGW32_TARGET \ |
rcx@3561 | 25 --disable-shared \ |
rcx@3561 | 26 --disable-debug \ |
rcx@3561 | 27 --target=$MINGW32_TARGET \ |
rcx@3561 | 28 $CONFIGURE_ARGS && |
rcx@3561 | 29 make CFLAGS="-O2 -fno-exceptions" LDFLAGS="-s" && |
rcx@3561 | 30 make DESTDIR=$PWD/_pkg install |
rcx@3561 | 31 } |
rcx@3561 | 32 |
rcx@3561 | 33 # Rules to gen a SliTaz package suitable for Tazpkg. |
rcx@3561 | 34 genpkg_rules() |
rcx@3561 | 35 { |
pascal@4015 | 36 mkdir -p $fs/usr/lib |
rcx@3561 | 37 cp -a $_pkg/usr/bin $fs/usr |
pascal@4015 | 38 cp -a $_pkg/usr/lib/$MINGW32_TARGET $fs/usr/lib |
rcx@3561 | 39 # do not need to copy lib/libiberty.a |
rcx@3561 | 40 |
rcx@3561 | 41 #Create a symlink for --with-sysroot |
pascal@4015 | 42 ( cd $fs/usr/lib/$MINGW32_TARGET && ln -s . usr ) |
rcx@3561 | 43 } |