DESCRIPTION="Binutils for Win x64 targets."
HOMEPAGE="http://www.gnu.org/software/binutils/"
SRC_URI="http://ftp.gnu.org/gnu/binutils/binutils-${PV}.tar.bz2"
PKG_NAMES="${PN} ${PN}-doc"
PKG_CONTENTS[0]="usr/bin/ usr/x86_64-w64-mingw32/ usr/share/locale/"
PKG_CONTENTS[1]="usr/share/doc/ usr/share/info/ usr/share/man/"
SRC_DIR="binutils-${PV}"
PKG_HINTS="setup doc"

src_compile(){
	cd ${B}
	cygconf --build=i686-pc-cygwin --host=i686-pc-cygwin --target=x86_64-w64-mingw32
	cygmake
}

