wok diff mingw32-binutils/receipt @ rev 3771

Add: commoncpp2 (1.7.3)
author Matthew Sheets <rcx@zoominternet.net>
date Wed Jul 29 16:43:43 2009 +0000 (2009-07-29)
parents
children 05b5a901936b
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/mingw32-binutils/receipt	Wed Jul 29 16:43:43 2009 +0000
     1.3 @@ -0,0 +1,43 @@
     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 +MINGW32_TARGET="i586-pc-mingw32"
    1.18 +
    1.19 +# Rules to configure and make the package.
    1.20 +compile_rules()
    1.21 +{
    1.22 +	cd $src
    1.23 +	./configure \
    1.24 +		--prefix=/usr \
    1.25 +		--infodir=/usr/share/info \
    1.26 +		--mandir=/usr/share/man \
    1.27 +		--with-sysroot=/usr/$MINGW32_TARGET \
    1.28 +		--disable-shared \
    1.29 +		--disable-debug \
    1.30 +		--target=$MINGW32_TARGET \
    1.31 +		$CONFIGURE_ARGS &&
    1.32 +	make CFLAGS="-O2 -fno-exceptions" LDFLAGS="-s" &&
    1.33 +	make DESTDIR=$PWD/_pkg install
    1.34 +}
    1.35 +
    1.36 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.37 +genpkg_rules()
    1.38 +{
    1.39 +	mkdir -p $fs/usr
    1.40 +	cp -a $_pkg/usr/bin $fs/usr
    1.41 +	cp -a $_pkg/usr/$MINGW32_TARGET $fs/usr
    1.42 +	# do not need to copy lib/libiberty.a
    1.43 +	
    1.44 +	#Create a symlink for --with-sysroot
    1.45 +	( cd $fs/usr/$MINGW32_TARGET && ln -s . usr )
    1.46 +}