<?xml version="1.0"?>
<package name="binutils">
	<description>GNU binary utilities</description>
	<releases>
		<release version="2.18.50.0.8" revision="1" tag="stage1" branch="stable">
			<build>
				<script>
					<archive name="binutils-$VERSION" builddir="binutils-build">
						<cmd>../binutils-$VERSION/configure --prefix=/stage1 --build=$HOST --host=$HOST --target=$TARGET --with-sysroot=/upkg --with-lib-path=/stage2/lib --enable-shared --enable-64-bit-bfd --disable-nls --disable-werror</cmd>
						<cmd>make configure-host</cmd>
						<cmd>make -j 2</cmd>
						<cmd>make install</cmd>
					</archive>
				</script>
			</build>
		</release>
		<release version="2.18.50.0.8" revision="1" tag="stage2" branch="stable">
			<build>
				<script>
					<archive name="binutils-$VERSION" builddir="binutils-build">
						<cmd>../binutils-$VERSION/configure --prefix=/stage2 --build=$HOST --host=$TARGET --target=$TARGET --enable-shared --enable-64-bit-bfd --disable-nls --disable-werror</cmd>
						<cmd>make configure-host</cmd>
						<cmd>make -j 2</cmd>
						<cmd>make install</cmd>
					</archive>
				</script>
			</build>
		</release>
		<release version="2.18.50.0.8" revision="1" branch="stable">
			<build>
				<script>
					<archive name="binutils-$VERSION" builddir="binutils-build">
						<!-- don't install standards.info
						     more up-to-date version in autoconf package -->
						<cmd>sed -i -e 's/standards.info//g' ../binutils-$VERSION/etc/Makefile.in</cmd>
					
						<!-- there seems to be a bug in binutils with unsupported languages -->
						<cmd>unset LINGUAS</cmd>
						<cmd>../binutils-$VERSION/configure --prefix=/usr --enable-shared --enable-64-bit-bfd --disable-werror</cmd>
						<cmd>make configure-host</cmd>
						<cmd>make tooldir=/usr infodir=/usr/share/info mandir=/usr/share/man -j 2</cmd>
						
						<cmd>make tooldir=/usr infodir=/usr/share/info mandir=/usr/share/man install</cmd>
						<cmd>install -m 644 ../binutils-$VERSION/include/libiberty.h /usr/include/libiberty.h</cmd>
					</archive>
				</script>
			</build>
		</release>
		<release version="2.19.50.0.1" revision="1" tag="stage1" branch="unstable">
			<build>
				<script>
					<archive name="binutils-$VERSION" builddir="binutils-build">
						<cmd>../binutils-$VERSION/configure --prefix=/stage1 --build=$HOST --host=$HOST --target=$TARGET --with-sysroot=/upkg --with-lib-path=/stage2/lib --enable-shared --enable-64-bit-bfd --disable-nls --disable-werror</cmd>
						<cmd>make configure-host</cmd>
						<cmd>make -j 2</cmd>
						<cmd>make install</cmd>
					</archive>
				</script>
			</build>
		</release>
		<release version="2.19.50.0.1" revision="1" tag="stage2" branch="unstable">
			<build>
				<script>
					<archive name="binutils-$VERSION" builddir="binutils-build">
						<cmd>../binutils-$VERSION/configure --prefix=/stage2 --build=$HOST --host=$TARGET --target=$TARGET --enable-shared --enable-64-bit-bfd --disable-nls --disable-werror</cmd>
						<cmd>make configure-host</cmd>
						<cmd>make -j 2</cmd>
						<cmd>make install</cmd>
					</archive>
				</script>
			</build>
		</release>
		<release version="2.19.50.0.1" revision="1" branch="unstable">
			<build>
				<script>
					<archive name="binutils-$VERSION" builddir="binutils-build">
						<!-- don't install standards.info
						     more up-to-date version in autoconf package -->
						<cmd>sed -i -e 's/standards.info//g' ../binutils-$VERSION/etc/Makefile.in</cmd>
					
						<!-- there seems to be a bug in binutils with unsupported languages -->
						<cmd>unset LINGUAS</cmd>
						<cmd>../binutils-$VERSION/configure --prefix=/usr --enable-shared --enable-64-bit-bfd --disable-werror</cmd>
						<cmd>make configure-host</cmd>
						<cmd>make tooldir=/usr infodir=/usr/share/info mandir=/usr/share/man -j 2</cmd>
						
						<cmd>make tooldir=/usr infodir=/usr/share/info mandir=/usr/share/man install</cmd>
						<cmd>install -m 644 ../binutils-$VERSION/include/libiberty.h /usr/include/libiberty.h</cmd>
					</archive>
				</script>
			</build>
		</release>
	</releases>
</package>
