blob: 811a1a101b2619059960cfc2b3de75946053667d (
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
41
42
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-util/xmingw-runtime/xmingw-runtime-3.1.ebuild,v 1.4 2005/02/09 17:13:34 blubb Exp $
MY_P=${P/xming/ming}
S=${WORKDIR}/${MY_P}
DESCRIPTION="Free Win32 runtime and import library definitions"
HOMEPAGE="http://www.mingw.org"
SRC_URI="mirror://sourceforge/mingw/${MY_P}-src.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="x86"
IUSE=""
DEPEND="dev-util/xmingw-binutils
dev-util/xmingw-gcc
dev-util/xmingw-w32api"
src_compile() {
export PATH=$PATH:/opt/xmingw/bin:/opt/xmingw/i386-mingw32msvc/bin
unset CFLAGS CXXFLAGS
RANLIB=i386-mingw32msvc-ranlib \
AR=i386-mingw32msvc-ar \
AS=i386-mingw32msvc-as \
CC=i386-mingw32msvc-gcc \
./configure \
--target=i386-mingw32msvc \
--prefix=/opt/mingw32/i386-mingw32msvc \
|| die "configure failed"
cd mingwex
make W32API_INCLUDE=-I/opt/xmingw/i386-mingw32msvc/include || die
cd ..
make W32API_INCLUDE=-I/opt/xmingw/i386-mingw32msvc/include || die
}
src_install() {
make install prefix=${D}/opt/xmingw/i386-mingw32msvc \
|| die "make install failed"
}
|