wok-4.x annotate mingw32-binutils/receipt @ rev 3653

Add: libarchive, libarchive-dev
author Eric Joseph-Alexandre <erjo@slitaz.org>
date Mon Jul 06 23:52:56 2009 +0200 (2009-07-06)
parents
children 05b5a901936b
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 \
rcx@3561 24 --with-sysroot=/usr/$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 {
rcx@3561 36 mkdir -p $fs/usr
rcx@3561 37 cp -a $_pkg/usr/bin $fs/usr
rcx@3561 38 cp -a $_pkg/usr/$MINGW32_TARGET $fs/usr
rcx@3561 39 # do not need to copy lib/libiberty.a
rcx@3561 40
rcx@3561 41 #Create a symlink for --with-sysroot
rcx@3561 42 ( cd $fs/usr/$MINGW32_TARGET && ln -s . usr )
rcx@3561 43 }