wok-current diff mingw32-binutils/receipt @ rev 12952

wv: fix configure
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu May 31 13:01:06 2012 +0200 (2012-05-31)
parents
children 4c16797dce28
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/mingw32-binutils/receipt	Thu May 31 13:01:06 2012 +0200
     1.3 @@ -0,0 +1,49 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="mingw32-binutils"
     1.7 +SOURCE="binutils"
     1.8 +VERSION="2.19.1"
     1.9 +CATEGORY="development"
    1.10 +SHORT_DESC="MinGW32 binutils."
    1.11 +MAINTAINER="rcx@zoominternet.net"
    1.12 +DEPENDS="glibc-base zlib"
    1.13 +BUILD_DEPENDS="slitaz-toolchain bison flex"
    1.14 +TARBALL="$SOURCE-$VERSION-src.tar.gz"
    1.15 +WEB_SITE="http://www.mingw.org/"
    1.16 +WGET_URL="$SF_MIRROR/mingw/$TARBALL"
    1.17 +
    1.18 +# Configuration only needs included if we're in the build/wok environment
    1.19 +if [ -e $WOK/mingw32-toolchain/stuff/mingw32.conf ] ; then
    1.20 +	. $WOK/mingw32-toolchain/stuff/mingw32.conf
    1.21 +fi
    1.22 +
    1.23 +# Rules to configure and make the package.
    1.24 +compile_rules()
    1.25 +{
    1.26 +	cd $src
    1.27 +	./configure \
    1.28 +		--prefix=/usr \
    1.29 +		--infodir=/usr/share/info \
    1.30 +		--mandir=/usr/share/man \
    1.31 +		--with-sysroot=$MINGW32_ROOT \
    1.32 +		--disable-shared \
    1.33 +		--disable-debug \
    1.34 +		--target=$MINGW32_TARGET \
    1.35 +		$CONFIGURE_ARGS &&
    1.36 +	make CFLAGS="-O2 -fno-exceptions -Wno-error=unused-but-set-variable" LDFLAGS="-s" &&
    1.37 +	make DESTDIR=$DESTDIR install
    1.38 +}
    1.39 +
    1.40 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.41 +genpkg_rules()
    1.42 +{
    1.43 +	mkdir -p $fs/usr/lib $fs$MINGW32_ROOT
    1.44 +	cp -a $_pkg/usr/bin $fs/usr
    1.45 +	cp -a $_pkg$MINGW32_ROOT/* $fs$MINGW32_ROOT
    1.46 +	# do not need to copy lib/libiberty.a
    1.47 +
    1.48 +	strip -s $fs$MINGW32_ROOT/bin/*
    1.49 +	
    1.50 +	#Create a symlink for --with-sysroot
    1.51 +	ln -s . $fs$MINGW32_ROOT/usr
    1.52 +}