/[gentoo-x86]/app-emulation/wine/wine-1.5.10.ebuild
Gentoo

Contents of /app-emulation/wine/wine-1.5.10.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Mon Oct 29 23:36:46 2012 UTC (21 months, 4 weeks ago) by tetromino
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +1 -1 lines
FILE REMOVED
Enable osmesa for win32 on amd64 since emul-linux-x86-opengl-20121028 now includes libOSMesa.so

(Portage version: 2.2.0_alpha142/cvs/Linux x86_64, signed Manifest commit with key CF0ADD61)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-emulation/wine/wine-1.5.10.ebuild,v 1.6 2012/10/26 16:46:37 tetromino Exp $
4
5 EAPI="4"
6
7 inherit autotools eutils flag-o-matic multilib pax-utils
8
9 if [[ ${PV} == "9999" ]] ; then
10 EGIT_REPO_URI="git://source.winehq.org/git/wine.git"
11 inherit git-2
12 SRC_URI=""
13 #KEYWORDS=""
14 else
15 MY_P="${PN}-${PV/_/-}"
16 SRC_URI="mirror://sourceforge/${PN}/Source/${MY_P}.tar.bz2"
17 KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd"
18 S=${WORKDIR}/${MY_P}
19 fi
20
21 GV="1.7"
22 MV="0.0.4"
23 PULSE_PATCH="winepulse-2012.06.15.patch"
24 DESCRIPTION="free implementation of Windows(tm) on Unix"
25 HOMEPAGE="http://www.winehq.org/"
26 SRC_URI="${SRC_URI}
27 gecko? (
28 mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86.msi
29 win64? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86_64.msi )
30 )
31 mono? ( mirror://sourceforge/${PN}/Wine%20Mono/${MV}/wine-mono-${MV}.msi )
32 http://source.winehq.org/patches/data/87234 -> ${PULSE_PATCH}"
33
34 LICENSE="LGPL-2.1"
35 SLOT="0"
36 IUSE="alsa capi cups custom-cflags elibc_glibc fontconfig +gecko gnutls gphoto2 gsm gstreamer hardened jpeg lcms ldap +mono mp3 ncurses nls odbc openal opencl +opengl osmesa +oss +perl png pulseaudio samba scanner selinux ssl test +threads +truetype udisks v4l +win32 +win64 +X xcomposite xinerama xml"
37 REQUIRED_USE="elibc_glibc? ( threads )
38 mono? ( || ( win32 !win64 ) )
39 osmesa? ( opengl )" #286560
40 RESTRICT="test" #72375
41
42 MLIB_DEPS="amd64? (
43 truetype? ( >=app-emulation/emul-linux-x86-xlibs-2.1 )
44 X? (
45 >=app-emulation/emul-linux-x86-xlibs-2.1
46 >=app-emulation/emul-linux-x86-soundlibs-2.1[pulseaudio(+)?]
47 )
48 mp3? ( app-emulation/emul-linux-x86-soundlibs )
49 odbc? ( app-emulation/emul-linux-x86-db )
50 openal? ( app-emulation/emul-linux-x86-sdl )
51 opengl? ( app-emulation/emul-linux-x86-opengl )
52 scanner? ( app-emulation/emul-linux-x86-medialibs )
53 v4l? ( app-emulation/emul-linux-x86-medialibs )
54 app-emulation/emul-linux-x86-baselibs
55 >=sys-kernel/linux-headers-2.6
56 )"
57 RDEPEND="truetype? ( >=media-libs/freetype-2.0.0 media-fonts/corefonts )
58 perl? ( dev-lang/perl dev-perl/XML-Simple )
59 capi? ( net-dialup/capi4k-utils )
60 ncurses? ( >=sys-libs/ncurses-5.2 )
61 fontconfig? ( media-libs/fontconfig )
62 gphoto2? ( media-libs/libgphoto2 )
63 openal? ( media-libs/openal )
64 udisks? (
65 sys-apps/dbus
66 sys-fs/udisks:2
67 )
68 gnutls? ( net-libs/gnutls )
69 gstreamer? ( media-libs/gstreamer:0.10 media-libs/gst-plugins-base:0.10 )
70 X? (
71 x11-libs/libXcursor
72 x11-libs/libXrandr
73 x11-libs/libXi
74 x11-libs/libXmu
75 x11-libs/libXxf86vm
76 )
77 xinerama? ( x11-libs/libXinerama )
78 alsa? ( media-libs/alsa-lib )
79 cups? ( net-print/cups )
80 opencl? ( virtual/opencl )
81 opengl? (
82 virtual/glu
83 virtual/opengl
84 )
85 gsm? ( media-sound/gsm )
86 jpeg? ( virtual/jpeg )
87 ldap? ( net-nds/openldap )
88 lcms? ( =media-libs/lcms-1* )
89 mp3? ( >=media-sound/mpg123-1.5.0 )
90 nls? ( sys-devel/gettext )
91 odbc? ( dev-db/unixODBC )
92 osmesa? ( media-libs/mesa[osmesa] )
93 pulseaudio? ( media-sound/pulseaudio )
94 samba? ( >=net-fs/samba-3.0.25 )
95 selinux? ( sec-policy/selinux-wine )
96 xml? ( dev-libs/libxml2 dev-libs/libxslt )
97 scanner? ( media-gfx/sane-backends )
98 ssl? ( dev-libs/openssl )
99 png? ( media-libs/libpng )
100 v4l? ( media-libs/libv4l )
101 !win64? ( ${MLIB_DEPS} )
102 win32? ( ${MLIB_DEPS} )
103 xcomposite? ( x11-libs/libXcomposite )"
104 DEPEND="${RDEPEND}
105 X? (
106 x11-proto/inputproto
107 x11-proto/xextproto
108 x11-proto/xf86vidmodeproto
109 )
110 xinerama? ( x11-proto/xineramaproto )
111 !hardened? ( sys-devel/prelink )
112 virtual/pkgconfig
113 virtual/yacc
114 sys-devel/flex"
115
116 src_unpack() {
117 if use win64 ; then
118 [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]] \
119 && die "you need gcc-4.4+ to build 64bit wine"
120 fi
121
122 if use win32 && use opencl; then
123 [[ x$(eselect opencl show) = "xintel" ]] &&
124 die "Cannot build wine[opencl,win32]: intel-ocl-sdk is 64-bit only" # 403947
125 fi
126
127 if [[ ${PV} == "9999" ]] ; then
128 git-2_src_unpack
129 else
130 unpack ${MY_P}.tar.bz2
131 fi
132 }
133
134 src_prepare() {
135 local md5="$(md5sum server/protocol.def)"
136 epatch "${FILESDIR}"/${PN}-1.1.15-winegcc.patch #260726
137 epatch "${FILESDIR}"/${PN}-1.4_rc2-multilib-portage.patch #395615
138 epatch "${FILESDIR}"/${PN}-1.5.11-osmesa-check.patch #429386
139 epatch "${DISTDIR}/${PULSE_PATCH}" #421365
140 epatch_user #282735
141 if [[ "$(md5sum server/protocol.def)" != "${md5}" ]]; then
142 einfo "server/protocol.def was patched; running tools/make_requests"
143 tools/make_requests || die #432348
144 fi
145 eautoreconf
146 sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die
147 sed -i '/^MimeType/d' tools/wine.desktop || die #117785
148 }
149
150 do_configure() {
151 local builddir="${WORKDIR}/wine$1"
152 mkdir -p "${builddir}"
153 pushd "${builddir}" >/dev/null
154
155 with_osmesa=$(use_with osmesa)
156 if use osmesa && use amd64 && [[ $1 = 32 ]]; then #430268
157 elog "win32 osmesa support is disabled for now, see bug #430268"
158 with_osmesa=--without-osmesa
159 fi
160
161 ECONF_SOURCE=${S} \
162 econf \
163 --sysconfdir=/etc/wine \
164 $(use_with alsa) \
165 $(use_with capi) \
166 $(use_with lcms cms) \
167 $(use_with cups) \
168 $(use_with ncurses curses) \
169 $(use_with udisks dbus) \
170 $(use_with fontconfig) \
171 $(use_with gnutls) \
172 $(use_with gphoto2 gphoto) \
173 $(use_with gsm) \
174 $(use_with gstreamer) \
175 --without-hal \
176 $(use_with jpeg) \
177 $(use_with ldap) \
178 $(use_with mp3 mpg123) \
179 $(use_with nls gettext) \
180 $(use_with openal) \
181 $(use_with opencl) \
182 $(use_with opengl) \
183 $(use_with ssl openssl) \
184 ${with_osmesa} \
185 $(use_with oss) \
186 $(use_with png) \
187 $(use_with threads pthread) \
188 $(use_with pulseaudio pulse) \
189 $(use_with scanner sane) \
190 $(use_enable test tests) \
191 $(use_with truetype freetype) \
192 $(use_with v4l) \
193 $(use_with X x) \
194 $(use_with xcomposite) \
195 $(use_with xinerama) \
196 $(use_with xml) \
197 $(use_with xml xslt) \
198 $2
199
200 emake -j1 depend
201
202 popd >/dev/null
203 }
204
205 src_configure() {
206 export LDCONFIG=/bin/true
207 use custom-cflags || strip-flags
208
209 if use win64 ; then
210 do_configure 64 --enable-win64
211 use win32 && ABI=x86 do_configure 32 --with-wine64=../wine64
212 else
213 ABI=x86 do_configure 32 --disable-win64
214 fi
215 }
216
217 src_compile() {
218 local b
219 for b in 64 32 ; do
220 local builddir="${WORKDIR}/wine${b}"
221 [[ -d ${builddir} ]] || continue
222 emake -C "${builddir}" all
223 done
224 }
225
226 src_install() {
227 local b
228 for b in 64 32 ; do
229 local builddir="${WORKDIR}/wine${b}"
230 [[ -d ${builddir} ]] || continue
231 emake -C "${builddir}" install DESTDIR="${D}"
232 done
233 dodoc ANNOUNCE AUTHORS README
234 if use gecko ; then
235 insinto /usr/share/wine/gecko
236 doins "${DISTDIR}"/wine_gecko-${GV}-x86.msi
237 use win64 && doins "${DISTDIR}"/wine_gecko-${GV}-x86_64.msi
238 fi
239 if use mono ; then
240 insinto /usr/share/wine/mono
241 doins "${DISTDIR}"/wine-mono-${MV}.msi
242 fi
243 if ! use perl ; then
244 rm "${D}"usr/bin/{wine{dump,maker},function_grep.pl} "${D}"usr/share/man/man1/wine{dump,maker}.1 || die
245 fi
246
247 if use win32 || ! use win64; then
248 pax-mark psmr "${D}"usr/bin/wine{,-preloader} #255055
249 fi
250 use win64 && pax-mark psmr "${D}"usr/bin/wine64{,-preloader}
251
252 if use win64 && ! use win32; then
253 dosym /usr/bin/wine{64,} # 404331
254 dosym /usr/bin/wine{64,}-preloader
255 fi
256 }

  ViewVC Help
Powered by ViewVC 1.1.20