summaryrefslogtreecommitdiff
blob: b6bc59befd869791888887563568c139521f7cf1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-util/xmingw-binutils/xmingw-binutils-2.14.90.0.6.ebuild,v 1.1 2003/10/02 10:15:30 cretin Exp $

DESCRIPTION="Tools necessary to build Win32 programs"

HOMEPAGE="http://sources.redhat.com/binutils/"

MINGW_PATCH=binutils-2.14.90-20030807-1-src.diff.gz

P=${P/xmingw-/}

SRC_URI="mirror://kernel/linux/devel/binutils/${P}.tar.bz2
		mirror://sourceforge/mingw/${MINGW_PATCH}"
LICENSE="GPL-2 | LGPL-2"

SLOT="0"

KEYWORDS="x86"

IUSE=""

DEPEND=""

S=${WORKDIR}/${P}

src_unpack() {
	unpack ${P}.tar.bz2
	cd ${S}; gzip -dc ${DISTDIR}/${MINGW_PATCH} | patch -p1
}

src_compile() {
	./configure --target=i386-mingw32msvc --prefix=/opt/xmingw || die

	make || die
}

src_install() {
	make DESTDIR=${D} install || die
}