| 1 | # Copyright 1999-2010 Gentoo Foundation |
1 | # Copyright 1999-2010 Gentoo Foundation |
| 2 | # Distributed under the terms of the GNU General Public License v2 |
2 | # Distributed under the terms of the GNU General Public License v2 |
| 3 | # $Header: /var/cvsroot/gentoo-x86/app-emulation/wine/wine-9999.ebuild,v 1.58 2010/08/06 20:54:45 vapier Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/app-emulation/wine/wine-9999.ebuild,v 1.59 2010/09/07 17:10:15 vapier Exp $ |
| 4 | |
4 | |
| 5 | EAPI="2" |
5 | EAPI="2" |
| 6 | |
6 | |
| 7 | inherit eutils flag-o-matic multilib |
7 | inherit eutils flag-o-matic multilib |
| 8 | |
8 | |
| … | |
… | |
| 92 | xinerama? ( x11-proto/xineramaproto ) |
92 | xinerama? ( x11-proto/xineramaproto ) |
| 93 | sys-devel/bison |
93 | sys-devel/bison |
| 94 | sys-devel/flex" |
94 | sys-devel/flex" |
| 95 | |
95 | |
| 96 | src_unpack() { |
96 | src_unpack() { |
|
|
97 | if use win64 ; then |
| 97 | if [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]] ; then |
98 | [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]] \ |
| 98 | use win64 && die "you need gcc-4.4+ to build 64bit wine" |
99 | && die "you need gcc-4.4+ to build 64bit wine" |
| 99 | fi |
100 | fi |
| 100 | |
101 | |
| 101 | if [[ ${PV} == "9999" ]] ; then |
102 | if [[ ${PV} == "9999" ]] ; then |
| 102 | git_src_unpack |
103 | git_src_unpack |
| 103 | else |
104 | else |
| … | |
… | |
| 163 | } |
164 | } |
| 164 | src_configure() { |
165 | src_configure() { |
| 165 | export LDCONFIG=/bin/true |
166 | export LDCONFIG=/bin/true |
| 166 | use custom-cflags || strip-flags |
167 | use custom-cflags || strip-flags |
| 167 | |
168 | |
| 168 | if use win64 && use amd64 ; then |
169 | if use win64 ; then |
| 169 | do_configure 64 --enable-win64 |
170 | do_configure 64 --enable-win64 |
| 170 | use win32 && ABI=x86 do_configure 32 --with-wine64=../wine64 |
171 | use win32 && ABI=x86 do_configure 32 --with-wine64=../wine64 |
| 171 | else |
172 | else |
| 172 | ABI=x86 do_configure 32 --disable-win64 |
173 | ABI=x86 do_configure 32 --disable-win64 |
| 173 | fi |
174 | fi |