|
Lines 18-24
Link Here
|
| 18 |
LICENSE="GPL-2 LGPL-2.1" |
18 |
LICENSE="GPL-2 LGPL-2.1" |
| 19 |
SLOT="0" |
19 |
SLOT="0" |
| 20 |
KEYWORDS="~x86" |
20 |
KEYWORDS="~x86" |
| 21 |
IUSE="" |
21 |
IUSE="gcj" |
| 22 |
|
22 |
|
| 23 |
DEPEND="dev-util/xmingw-binutils" |
23 |
DEPEND="dev-util/xmingw-binutils" |
| 24 |
|
24 |
|
|
Lines 37-50
Link Here
|
| 37 |
src_compile() { |
37 |
src_compile() { |
| 38 |
export PATH=$PATH:/opt/xmingw/bin:/opt/xmingw/i386-mingw32msvc/bin |
38 |
export PATH=$PATH:/opt/xmingw/bin:/opt/xmingw/i386-mingw32msvc/bin |
| 39 |
unset CFLAGS CXXFLAGS |
39 |
unset CFLAGS CXXFLAGS |
|
|
40 |
$myconf="" |
| 40 |
if has_version dev-util/xmingw-runtime \ |
41 |
if has_version dev-util/xmingw-runtime \ |
| 41 |
&& has_version dev-util/xmingw-w32api |
42 |
&& has_version dev-util/xmingw-w32api |
| 42 |
then |
43 |
then |
| 43 |
lang=c,c++ |
44 |
lang=c,c++ |
|
|
45 |
|
| 46 |
if use gcj; then |
| 47 |
lang=${lang},java |
| 48 |
${myconf}="${myconf} --enable-libgcj --disable-libgcj-debug --disable-java-awt --enable-java-gc=boehm --enable-interpreter --enable-version-specific-runtime-libs --enable-hash-sychronization" |
| 49 |
fi |
| 44 |
else |
50 |
else |
| 45 |
lang=c |
51 |
lang=c |
| 46 |
fi |
52 |
fi |
| 47 |
|
53 |
|
|
|
54 |
if use debug; then |
| 55 |
${config}="${config} --enable-debug" |
| 56 |
else |
| 57 |
${config}="${config} --disable-debug" |
| 58 |
fi |
| 59 |
|
| 48 |
./configure \ |
60 |
./configure \ |
| 49 |
--target=i386-mingw32msvc \ |
61 |
--target=i386-mingw32msvc \ |
| 50 |
--prefix=/opt/xmingw \ |
62 |
--prefix=/opt/xmingw \ |
|
Lines 59-65
Link Here
|
| 59 |
--enable-sjlj-exceptions \ |
71 |
--enable-sjlj-exceptions \ |
| 60 |
--without-x \ |
72 |
--without-x \ |
| 61 |
--without-newlib \ |
73 |
--without-newlib \ |
| 62 |
|| die "configure failed" |
74 |
${myconf} || die "configure failed" |
| 63 |
|
75 |
|
| 64 |
emake || die "emake failed" |
76 |
emake || die "emake failed" |
| 65 |
} |
77 |
} |