1 |
commit: cb628dd98641d58f79b24f671a2df59b8c65a526 |
2 |
Author: NP-Hardass <NP-Hardass <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jul 9 18:32:23 2017 +0000 |
4 |
Commit: NP Hardass <np-hardass <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jul 10 01:22:17 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cb628dd9 |
7 |
|
8 |
app-emulation/wine-d3d9: Bump to 2.11 |
9 |
|
10 |
Package-Manager: Portage-2.3.6, Repoman-2.3.2 |
11 |
|
12 |
app-emulation/wine-d3d9/Manifest | 2 + |
13 |
app-emulation/wine-d3d9/wine-d3d9-2.11.ebuild | 551 ++++++++++++++++++++++++++ |
14 |
2 files changed, 553 insertions(+) |
15 |
|
16 |
diff --git a/app-emulation/wine-d3d9/Manifest b/app-emulation/wine-d3d9/Manifest |
17 |
index 16f7c9051b3..0261a8bb8c4 100644 |
18 |
--- a/app-emulation/wine-d3d9/Manifest |
19 |
+++ b/app-emulation/wine-d3d9/Manifest |
20 |
@@ -1,6 +1,7 @@ |
21 |
DIST wine-2.0.tar.bz2 23662707 SHA256 9756f5a2129b6a83ba701e546173cbff86caa671b0af73eb8f72c03b20c066c6 SHA512 b0a57ba8202d9fc396e5bfb7a7718d6bababbed8f3351e7fdc36afa37f35a871e04903757618f73427aeb71a52b2d323977d79e48f8b38d636f23fd404441186 WHIRLPOOL fa9f774d87dae73c7d1f3b86dc3b03ea27065eb6140f1cac13c82fe16f7ebff8f8365ed447220cf5c2788b9f4aae7c482e4f9e2e69f47e5435209e148f5dbdfe |
22 |
DIST wine-2.1.tar.xz 18887032 SHA256 bfb9abf63691c93df28d9599aaa866dc2b4e27209b3b7b546df8a37d7d9d1e6e SHA512 03d678ee6e89c2804813f2827255fcf59e96ca9a45b7d8ac441cfc84f835e5e5689c70a79a41a04c631e1add7807fa4a5758acef3bd7aadfb2e92e68958c6ef6 WHIRLPOOL 063d935f1ff0922100641f2f53cdac23d2993a83182d45e028e485fd7d0a13bc5cfb77bca76550b1537b3f42fecacef7fd64785adbf6425af823f56f96973b54 |
23 |
DIST wine-2.10.tar.xz 19209580 SHA256 488df7ffd2e81da455bf428fc9eb784bb4273a890334500895665711bd52f179 SHA512 8807e16a571bf45d99097ad5fdfb9fe755f6dbe84010a330fed82f1d48c76b7f19589bfc0e5dde0b9e49a608fd0501db3f7e3e129e4d9d34bcae03bc51a73139 WHIRLPOOL e9a8248aac31593fbac28a3d8d4e62bfce14a7c41cc416ebfca8606518d28efd31b32196133da211f75f48bd228bd5d21fcbbc0479293e813ed99b258b37126e |
24 |
+DIST wine-2.11.tar.xz 19251116 SHA256 efa96dade206aa21accf0da195335a805d38209d6a14320607c6308ebde4cc3c SHA512 691f329c47af5e51498287029988b8ca0777bfc3902ed80fd315004aba2337a938e79177e752efe86423c9b34544df3952b8c443bf43149356575fac75a779ac WHIRLPOOL 4933e1ce640b0abeebccd6969b5eaf4eec76cd135d9cfc1d904a902219f776a68f72e2bd1ae9019d69f0d0d81fd8ead0084785d1b9710590349365977f9c1817 |
25 |
DIST wine-2.2.tar.xz 18916364 SHA256 64cb57e1d8aa07f5c89ef26743b494f2d3ef9c0f4e50d3ee896a93535f7751f4 SHA512 0700868244d397c1442948716321e5ff030c667edce464570f76aa4340199489a422872aa3975bc0a57b8285c9d59fc04e223a4bde094169fc6db460acb626c4 WHIRLPOOL ffc3d357a76592651b589c6ac6608720d0258474890faf8fe3e20ac29cdd1496d569721256f9389d347bf2734a556099154fd18ef1b56f45bb46c4c15771d6ca |
26 |
DIST wine-2.3.tar.xz 18931732 SHA256 afc95c7a87cc8f0730b462c50a5dfc9c462eb02c6bf5874b4fa99946f49e067e SHA512 bea78e8468555ff9e08dedf3918da5ea82721549c43984869989bbdafeea00e454820ff9558aa29925c97a165a9b01e5cd1fd397f133833c58824984a6686171 WHIRLPOOL 1f5ec8e5c32d124277e4c71d95726d3a5337575757c3029567c77165d65fcfec2ddf33d3863b4bf55c9eff7c3582c1ec7dbd76d84ed8bbbe89dd16db6b0128c1 |
27 |
DIST wine-2.4.tar.xz 18953748 SHA256 87b5df07e4781fecce2f92415a4717208ea253a20a0df8b36b9f90b69b72748e SHA512 15ae7e97dc72a8636b2c15c93803ed430fa456d673add61457cf3e479e769559c682b40949b5d38828f6681f13183e560fcb4a2eb0f0ba25e6eade46f7d3d7c0 WHIRLPOOL 558ab7b7517ad5e03366b4db974047eba776585e958a5b71bb2e93993e21bc725ea7a8bcf2a4354f34ca38c94ba99ccd15f2f8b5e4b58066bf339d3517eec56c |
28 |
@@ -12,6 +13,7 @@ DIST wine-2.9.tar.xz 19154668 SHA256 ac46f7bbbbc1dc135c95e4f98d28bf6e3d7a78fb7f9 |
29 |
DIST wine-d3d9-2.0.tar.gz 48373 SHA256 7bfac23706723c6d51a7a95e416e47fb2678cd4d0945b990f74eba2b059e6206 SHA512 a9e2d1c9f2784128e4c53a8dc923070a5057b5ff3d83c2b536a2d2df0bc8433ac92b8ab1c3cdf34158c0e7bfe497ddb5974605fbc1736a92307639d59450c7a1 WHIRLPOOL 53044c0a4b7159c3af75fc935d1ac45030e80dbfd70d787f64885ddc025cfcd62f724c3256e389a7fde680670e594101955f52301cf6b9bbf23ebc64552790c2 |
30 |
DIST wine-d3d9-2.1.tar.gz 48385 SHA256 9fd80e3e2ea905272c42dbc14679e94c8e2f955101ae098c84060d4c62ffc9c6 SHA512 9234d8227412d940a6befcf79433f1d5ab0634d5e829f3771ffeea235af05be29ffc40438818b1976c77d1e2e79da8a67c4dab2b7d2e822b502fb6e4a1a7f8b7 WHIRLPOOL 790e482850a13c5bf0967e900620c36d71c4d6673106f8f5c2848550ed574d326d3945d9906de88d847bb5644a520aab7fe6d460b3c3afd49a396798dd253392 |
31 |
DIST wine-d3d9-2.10.tar.gz 48713 SHA256 62a199a239fca4f172f9ff871086196f8eeb35483d7bcab4acb144c05e60debb SHA512 808241f545e60c0546ff3918cac28e2abb6fe8496e8ade3cfa8bf81612724e827d31787d1d320cbac80b71a5d6180bcc8e51249c12c099e44637e0bb9f4875cd WHIRLPOOL a8c58c5321107b958780348aebad41d57ac0a3a307e176715950e1ed1eae7d19d858db3f9b0e5cb86484919d683321ff6fc19ec1696ba5418e0d2dd861bfaff4 |
32 |
+DIST wine-d3d9-2.11.tar.gz 48714 SHA256 3432863940fdb9ea6f36688d670c6fe800e7359d7b18723828447bedf694b786 SHA512 716dad66fce962246e57a29c239d6b69b78656a11d01a421b490ad61c2c3dd9850b34e2346319a6a35c2a01e0c28193adf78f21b9de1ffde95a06d5fae51fe0d WHIRLPOOL eeef55dca716a68e03b84d4f916955c4194810c1c460a55a30ac2c4257e256b8fc709837d7b35aa86ce3f523f2b9c11222b9096ae4d87979f1fee4a8257ddabb |
33 |
DIST wine-d3d9-2.2.tar.gz 48387 SHA256 203ed60980ec584c09b413266728e3a93e2d980dbff9b4f65375a4e9744b5042 SHA512 6e9e031b51afc8ec200bbd252ff0d768c29af23907f782409834de593f896afb128f86fe012c95dc18e5f3c7267f170eb343d2a2c53d639933a337f0c1e04fab WHIRLPOOL 6b32c0dfd3068e87d94bbcd83718dd75a14b36d69b151e9257e04793d2d3ae78ce7da10b80cbc824ccefb6c11666241593f91963ddee6a58301f95bbde35285d |
34 |
DIST wine-d3d9-2.3.tar.gz 48510 SHA256 fc17488a782def19fc02bf967128ab43236db49509e31771361a60fa3d17dd60 SHA512 58449f6b7ed7fd8182e2cce92e1d1195bf64a567c1cc92fd3f46af195e7e4039c3b2a128be9d3572d9067be6c1bb020f417c6d558bb551c60096c107067177b8 WHIRLPOOL f648a921cf4cd257a3a7dfbd3abf45d58c07782f329ec11c3a1eff3afe32e8040adb351d4a60e1b1f78c7cae0379f23468764ad162a101179d0f5b0e2c6d9413 |
35 |
DIST wine-d3d9-2.4.tar.gz 48502 SHA256 4c7084e733d95545b894b152b2c6c9564dfb8df594cfeb1512dad80743b39ae0 SHA512 623b1720b8cd79ab6ad2a177b9beb174f31e6fc402d6885fa2006223c855919c6f5d4267c64212ecf8cf1746430c9715c506343fb740828fc99910f916b10ebe WHIRLPOOL 9c0ea34dedc2e39ce36f1539a6d761ba07429b316a1f7fad49067eec5c28a5c60b33b3d2473cbf66b009d9772c1fb123414bfa201eb8df3e61f8efc38aa1f3fa |
36 |
|
37 |
diff --git a/app-emulation/wine-d3d9/wine-d3d9-2.11.ebuild b/app-emulation/wine-d3d9/wine-d3d9-2.11.ebuild |
38 |
new file mode 100644 |
39 |
index 00000000000..5fb2ee574d0 |
40 |
--- /dev/null |
41 |
+++ b/app-emulation/wine-d3d9/wine-d3d9-2.11.ebuild |
42 |
@@ -0,0 +1,551 @@ |
43 |
+# Copyright 1999-2017 Gentoo Foundation |
44 |
+# Distributed under the terms of the GNU General Public License v2 |
45 |
+ |
46 |
+EAPI=6 |
47 |
+ |
48 |
+PLOCALES="ar bg ca cs da de el en en_US eo es fa fi fr he hi hr hu it ja ko lt ml nb_NO nl or pa pl pt_BR pt_PT rm ro ru sk sl sr_RS@cyrillic sr_RS@latin sv te th tr uk wa zh_CN zh_TW" |
49 |
+PLOCALE_BACKUP="en" |
50 |
+ |
51 |
+inherit autotools eutils fdo-mime flag-o-matic gnome2-utils l10n multilib multilib-minimal pax-utils toolchain-funcs virtualx versionator |
52 |
+ |
53 |
+MY_PN="${PN%%-*}" |
54 |
+MY_P="${MY_PN}-${PV}" |
55 |
+ |
56 |
+if [[ ${PV} == "9999" ]] ; then |
57 |
+ EGIT_REPO_URI="git://source.winehq.org/git/wine.git http://source.winehq.org/git/wine.git" |
58 |
+ EGIT_BRANCH="master" |
59 |
+ inherit git-r3 |
60 |
+ SRC_URI="" |
61 |
+ #KEYWORDS="" |
62 |
+else |
63 |
+ MAJOR_V=$(get_version_component_range 1) |
64 |
+ SRC_URI="https://dl.winehq.org/wine/source/${MAJOR_V}.x/${MY_P}.tar.xz" |
65 |
+ KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd" |
66 |
+fi |
67 |
+S="${WORKDIR}/${MY_P}" |
68 |
+ |
69 |
+D3D9_P="wine-d3d9-${PV}" |
70 |
+D3D9_DIR="${WORKDIR}/wine-d3d9-patches-${D3D9_P}" |
71 |
+WDC_V="20150204" |
72 |
+WINE_DESKTOP_COMMON_P="wine-desktop-common-${WDC_V}" |
73 |
+ |
74 |
+DESCRIPTION="Free implementation of Windows(tm) on Unix, with Gallium Nine patchset" |
75 |
+HOMEPAGE="http://www.winehq.org/" |
76 |
+SRC_URI="${SRC_URI} |
77 |
+ https://github.com/NP-Hardass/wine-desktop-common/archive/${WDC_V}.tar.gz -> ${WINE_DESKTOP_COMMON_P}.tar.gz |
78 |
+" |
79 |
+ |
80 |
+if [[ ${PV} == "9999" ]] ; then |
81 |
+ D3D9_EGIT_REPO_URI="git://github.com/sarnex/wine-d3d9-patches.git" |
82 |
+else |
83 |
+ SRC_URI="${SRC_URI} |
84 |
+ d3d9? ( https://github.com/sarnex/wine-d3d9-patches/archive/${D3D9_P}.tar.gz )" |
85 |
+fi |
86 |
+ |
87 |
+LICENSE="LGPL-2.1" |
88 |
+SLOT="${PV}" |
89 |
+IUSE="+abi_x86_32 +abi_x86_64 +alsa capi cups custom-cflags d3d9 dos elibc_glibc +fontconfig +gecko gphoto2 gsm gstreamer +jpeg kernel_FreeBSD +lcms ldap +mono mp3 ncurses netapi nls odbc openal opencl +opengl osmesa oss +perl pcap +png prelink pulseaudio +realtime +run-exes samba scanner selinux +ssl test +threads +truetype udev +udisks v4l +X +xcomposite xinerama +xml" |
90 |
+REQUIRED_USE="|| ( abi_x86_32 abi_x86_64 ) |
91 |
+ X? ( truetype ) |
92 |
+ elibc_glibc? ( threads ) |
93 |
+ osmesa? ( opengl ) |
94 |
+ test? ( abi_x86_32 )" # osmesa-opengl #286560 # X-truetype #551124 |
95 |
+ |
96 |
+# FIXME: the test suite is unsuitable for us; many tests require net access |
97 |
+# or fail due to Xvfb's opengl limitations. |
98 |
+RESTRICT="test" |
99 |
+ |
100 |
+COMMON_DEPEND=" |
101 |
+ X? ( |
102 |
+ x11-libs/libXcursor[${MULTILIB_USEDEP}] |
103 |
+ x11-libs/libXext[${MULTILIB_USEDEP}] |
104 |
+ x11-libs/libXfixes[${MULTILIB_USEDEP}] |
105 |
+ x11-libs/libXrandr[${MULTILIB_USEDEP}] |
106 |
+ x11-libs/libXi[${MULTILIB_USEDEP}] |
107 |
+ x11-libs/libXxf86vm[${MULTILIB_USEDEP}] |
108 |
+ ) |
109 |
+ alsa? ( media-libs/alsa-lib[${MULTILIB_USEDEP}] ) |
110 |
+ capi? ( net-libs/libcapi[${MULTILIB_USEDEP}] ) |
111 |
+ cups? ( net-print/cups:=[${MULTILIB_USEDEP}] ) |
112 |
+ d3d9? ( |
113 |
+ media-libs/mesa[d3d9,egl,${MULTILIB_USEDEP}] |
114 |
+ x11-libs/libX11[${MULTILIB_USEDEP}] |
115 |
+ x11-libs/libXext[${MULTILIB_USEDEP}] |
116 |
+ x11-libs/libxcb[${MULTILIB_USEDEP}] |
117 |
+ ) |
118 |
+ fontconfig? ( media-libs/fontconfig:=[${MULTILIB_USEDEP}] ) |
119 |
+ gphoto2? ( media-libs/libgphoto2:=[${MULTILIB_USEDEP}] ) |
120 |
+ gsm? ( media-sound/gsm:=[${MULTILIB_USEDEP}] ) |
121 |
+ gstreamer? ( |
122 |
+ media-libs/gstreamer:1.0[${MULTILIB_USEDEP}] |
123 |
+ media-plugins/gst-plugins-meta:1.0[${MULTILIB_USEDEP}] |
124 |
+ ) |
125 |
+ jpeg? ( virtual/jpeg:0=[${MULTILIB_USEDEP}] ) |
126 |
+ lcms? ( media-libs/lcms:2=[${MULTILIB_USEDEP}] ) |
127 |
+ ldap? ( net-nds/openldap:=[${MULTILIB_USEDEP}] ) |
128 |
+ mp3? ( >=media-sound/mpg123-1.5.0[${MULTILIB_USEDEP}] ) |
129 |
+ ncurses? ( >=sys-libs/ncurses-5.2:0=[${MULTILIB_USEDEP}] ) |
130 |
+ netapi? ( net-fs/samba[netapi(+),${MULTILIB_USEDEP}] ) |
131 |
+ nls? ( sys-devel/gettext[${MULTILIB_USEDEP}] ) |
132 |
+ odbc? ( dev-db/unixODBC:=[${MULTILIB_USEDEP}] ) |
133 |
+ openal? ( media-libs/openal:=[${MULTILIB_USEDEP}] ) |
134 |
+ opencl? ( virtual/opencl[${MULTILIB_USEDEP}] ) |
135 |
+ opengl? ( |
136 |
+ virtual/glu[${MULTILIB_USEDEP}] |
137 |
+ virtual/opengl[${MULTILIB_USEDEP}] |
138 |
+ ) |
139 |
+ osmesa? ( >=media-libs/mesa-13[osmesa,${MULTILIB_USEDEP}] ) |
140 |
+ pcap? ( net-libs/libpcap[${MULTILIB_USEDEP}] ) |
141 |
+ png? ( media-libs/libpng:0=[${MULTILIB_USEDEP}] ) |
142 |
+ pulseaudio? ( media-sound/pulseaudio[${MULTILIB_USEDEP}] ) |
143 |
+ scanner? ( media-gfx/sane-backends:=[${MULTILIB_USEDEP}] ) |
144 |
+ ssl? ( net-libs/gnutls:=[${MULTILIB_USEDEP}] ) |
145 |
+ truetype? ( >=media-libs/freetype-2.0.0[${MULTILIB_USEDEP}] ) |
146 |
+ udev? ( virtual/libudev:=[${MULTILIB_USEDEP}] ) |
147 |
+ udisks? ( sys-apps/dbus[${MULTILIB_USEDEP}] ) |
148 |
+ v4l? ( media-libs/libv4l[${MULTILIB_USEDEP}] ) |
149 |
+ xcomposite? ( x11-libs/libXcomposite[${MULTILIB_USEDEP}] ) |
150 |
+ xinerama? ( x11-libs/libXinerama[${MULTILIB_USEDEP}] ) |
151 |
+ xml? ( |
152 |
+ dev-libs/libxml2[${MULTILIB_USEDEP}] |
153 |
+ dev-libs/libxslt[${MULTILIB_USEDEP}] |
154 |
+ ) |
155 |
+ abi_x86_32? ( |
156 |
+ !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)] |
157 |
+ !<app-emulation/emul-linux-x86-baselibs-20140508-r14 |
158 |
+ !app-emulation/emul-linux-x86-db[-abi_x86_32(-)] |
159 |
+ !<app-emulation/emul-linux-x86-db-20140508-r3 |
160 |
+ !app-emulation/emul-linux-x86-medialibs[-abi_x86_32(-)] |
161 |
+ !<app-emulation/emul-linux-x86-medialibs-20140508-r6 |
162 |
+ !app-emulation/emul-linux-x86-opengl[-abi_x86_32(-)] |
163 |
+ !<app-emulation/emul-linux-x86-opengl-20140508-r1 |
164 |
+ !app-emulation/emul-linux-x86-sdl[-abi_x86_32(-)] |
165 |
+ !<app-emulation/emul-linux-x86-sdl-20140508-r1 |
166 |
+ !app-emulation/emul-linux-x86-soundlibs[-abi_x86_32(-)] |
167 |
+ !<app-emulation/emul-linux-x86-soundlibs-20140508 |
168 |
+ !app-emulation/emul-linux-x86-xlibs[-abi_x86_32(-)] |
169 |
+ !<app-emulation/emul-linux-x86-xlibs-20140508 |
170 |
+ )" |
171 |
+ |
172 |
+RDEPEND="${COMMON_DEPEND} |
173 |
+ app-emulation/wine-desktop-common |
174 |
+ >app-eselect/eselect-wine-0.3 |
175 |
+ !app-emulation/wine:0 |
176 |
+ dos? ( >=games-emulation/dosbox-0.74_p20160629 ) |
177 |
+ gecko? ( app-emulation/wine-gecko:2.47[abi_x86_32?,abi_x86_64?] ) |
178 |
+ mono? ( app-emulation/wine-mono:4.7.0 ) |
179 |
+ perl? ( |
180 |
+ dev-lang/perl |
181 |
+ dev-perl/XML-Simple |
182 |
+ ) |
183 |
+ pulseaudio? ( |
184 |
+ realtime? ( sys-auth/rtkit ) |
185 |
+ ) |
186 |
+ samba? ( >=net-fs/samba-3.0.25[winbind] ) |
187 |
+ selinux? ( sec-policy/selinux-wine ) |
188 |
+ udisks? ( sys-fs/udisks:2 )" |
189 |
+ |
190 |
+# tools/make_requests requires perl |
191 |
+DEPEND="${COMMON_DEPEND} |
192 |
+ sys-devel/flex |
193 |
+ >=sys-kernel/linux-headers-2.6 |
194 |
+ virtual/pkgconfig |
195 |
+ virtual/yacc |
196 |
+ X? ( |
197 |
+ x11-proto/inputproto |
198 |
+ x11-proto/xextproto |
199 |
+ x11-proto/xf86vidmodeproto |
200 |
+ ) |
201 |
+ prelink? ( sys-devel/prelink ) |
202 |
+ xinerama? ( x11-proto/xineramaproto )" |
203 |
+ |
204 |
+# These use a non-standard "Wine" category, which is provided by |
205 |
+# /etc/xdg/applications-merged/wine.menu |
206 |
+QA_DESKTOP_FILE="usr/share/applications/wine-browsedrive.desktop |
207 |
+usr/share/applications/wine-notepad.desktop |
208 |
+usr/share/applications/wine-uninstaller.desktop |
209 |
+usr/share/applications/wine-winecfg.desktop" |
210 |
+ |
211 |
+wine_compiler_check() { |
212 |
+ [[ ${MERGE_TYPE} = "binary" ]] && return 0 |
213 |
+ |
214 |
+ # GCC-specific bugs |
215 |
+ if tc-is-gcc; then |
216 |
+ # bug #549768 |
217 |
+ if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then |
218 |
+ ebegin "Checking for gcc-5 ms_abi compiler bug" |
219 |
+ $(tc-getCC) -O2 "${FILESDIR}"/pr66838.c -o "${T}"/pr66838 || die |
220 |
+ # Run in subshell to prevent "Aborted" message |
221 |
+ ( "${T}"/pr66838 || false ) >/dev/null 2>&1 |
222 |
+ if ! eend $?; then |
223 |
+ eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" |
224 |
+ eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," |
225 |
+ eerror "or use gcc-config to select a different compiler version." |
226 |
+ eerror "See https://bugs.gentoo.org/549768" |
227 |
+ eerror |
228 |
+ return 1 |
229 |
+ fi |
230 |
+ fi |
231 |
+ # bug #574044 |
232 |
+ if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) = 3 ]]; then |
233 |
+ ebegin "Checking for gcc-5-3 stack realignment compiler bug" |
234 |
+ # Compile in subshell to prevent "Aborted" message |
235 |
+ ( $(tc-getCC) -O2 -mincoming-stack-boundary=3 "${FILESDIR}"/pr69140.c -o "${T}"/pr69140 ) >/dev/null 2>&1 |
236 |
+ if ! eend $?; then |
237 |
+ eerror "Wine cannot be built with this version of gcc-5.3" |
238 |
+ eerror "due to compiler bugs; please re-emerge the latest gcc-5.3.x ebuild," |
239 |
+ eerror "or use gcc-config to select a different compiler version." |
240 |
+ eerror "See https://bugs.gentoo.org/574044" |
241 |
+ eerror |
242 |
+ return 1 |
243 |
+ fi |
244 |
+ fi |
245 |
+ fi |
246 |
+ |
247 |
+ # Ensure compiler support |
248 |
+ if use abi_x86_64; then |
249 |
+ ebegin "Checking for 64-bit compiler with builtin_ms_va_list support" |
250 |
+ # Compile in subshell to prevent "Aborted" message |
251 |
+ ( $(tc-getCC) -O2 "${FILESDIR}"/builtin_ms_va_list.c -o "${T}"/builtin_ms_va_list >/dev/null 2>&1) |
252 |
+ if ! eend $?; then |
253 |
+ eerror "This version of $(tc-getCC) does not support builtin_ms_va_list, can't enable 64-bit wine" |
254 |
+ eerror |
255 |
+ eerror "You need gcc-4.4+ or clang 3.8+ to build 64-bit wine" |
256 |
+ eerror |
257 |
+ return 1 |
258 |
+ fi |
259 |
+ fi |
260 |
+} |
261 |
+ |
262 |
+wine_build_environment_check() { |
263 |
+ [[ ${MERGE_TYPE} = "binary" ]] && return 0 |
264 |
+ |
265 |
+ if use abi_x86_64; then |
266 |
+ if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then |
267 |
+ eerror "You need gcc-4.4+ to compile 64-bit wine" |
268 |
+ die |
269 |
+ elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then |
270 |
+ eerror "You need clang-3.8+ to compile 64-bit wine" |
271 |
+ die |
272 |
+ fi |
273 |
+ fi |
274 |
+ if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then |
275 |
+ ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by" |
276 |
+ ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in" |
277 |
+ ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4" |
278 |
+ fi |
279 |
+ if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -eq 4 ]]; then |
280 |
+ if has "-march=i686" ${CFLAGS} && ! has "-mtune=generic" ${CFLAGS}; then |
281 |
+ ewarn "Compilation can hang with CFLAGS=\"-march=i686\". You can temporarily work" |
282 |
+ ewarn "around this by adding \"-mtune=generic\" to your CFLAGS for wine." |
283 |
+ ewarn "See package.env in man 5 portage for more information on how to do this." |
284 |
+ ewarn "See https://bugs.gentoo.org/show_bug.cgi?id=613128 for more details" |
285 |
+ fi |
286 |
+ fi |
287 |
+ |
288 |
+ if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then |
289 |
+ eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only." |
290 |
+ eerror "See https://bugs.gentoo.org/487864 for more details." |
291 |
+ eerror |
292 |
+ return 1 |
293 |
+ fi |
294 |
+} |
295 |
+ |
296 |
+wine_env_vcs_vars() { |
297 |
+ local pn_live_var="${PN//[-+]/_}_LIVE_COMMIT" |
298 |
+ local pn_live_val="${pn_live_var}" |
299 |
+ eval pn_live_val='$'${pn_live_val} |
300 |
+ if [[ ! -z ${pn_live_val} ]]; then |
301 |
+ if use d3d9; then |
302 |
+ eerror "Because of the multi-repo nature of ${MY_PN}, ${pn_live_var}" |
303 |
+ eerror "cannot be used to set the commit. Instead, you may use the" |
304 |
+ eerror "environmental variables WINE_COMMIT, and D3D9_COMMIT." |
305 |
+ eerror |
306 |
+ return 1 |
307 |
+ fi |
308 |
+ fi |
309 |
+ if [[ ! -z ${EGIT_COMMIT} ]]; then |
310 |
+ eerror "Commits must now be specified using the environmental variables" |
311 |
+ eerror "WINE_COMMIT, and D3D9_COMMIT" |
312 |
+ eerror |
313 |
+ return 1 |
314 |
+ fi |
315 |
+} |
316 |
+ |
317 |
+pkg_pretend() { |
318 |
+ wine_build_environment_check || die |
319 |
+ |
320 |
+ # Verify OSS support |
321 |
+ if use oss && ! use kernel_FreeBSD; then |
322 |
+ if ! has_version ">=media-sound/oss-4"; then |
323 |
+ eerror "You cannot build wine with USE=oss without having support from a" |
324 |
+ eerror "FreeBSD kernel or >=media-sound/oss-4 (only available through external repos)" |
325 |
+ eerror |
326 |
+ die |
327 |
+ fi |
328 |
+ fi |
329 |
+} |
330 |
+ |
331 |
+pkg_setup() { |
332 |
+ wine_build_environment_check || die |
333 |
+ wine_env_vcs_vars || die |
334 |
+ |
335 |
+ WINE_VARIANT="${PN#wine}-${PV}" |
336 |
+ WINE_VARIANT="${WINE_VARIANT#-}" |
337 |
+ |
338 |
+ MY_PREFIX="${EPREFIX}/usr/lib/wine-${WINE_VARIANT}" |
339 |
+ MY_DATAROOTDIR="${EPREFIX}/usr/share/wine-${WINE_VARIANT}" |
340 |
+ MY_DATADIR="${MY_DATAROOTDIR}" |
341 |
+ MY_DOCDIR="${EPREFIX}/usr/share/doc/${PF}" |
342 |
+ MY_INCLUDEDIR="${EPREFIX}/usr/include/wine-${WINE_VARIANT}" |
343 |
+ MY_LIBEXECDIR="${EPREFIX}/usr/libexec/wine-${WINE_VARIANT}" |
344 |
+ MY_LOCALSTATEDIR="${EPREFIX}/var/wine-${WINE_VARIANT}" |
345 |
+ MY_MANDIR="${MY_DATADIR}/man" |
346 |
+} |
347 |
+ |
348 |
+src_unpack() { |
349 |
+ if [[ ${PV} == "9999" ]] ; then |
350 |
+ EGIT_CHECKOUT_DIR="${S}" EGIT_COMMIT="${WINE_COMMIT}" git-r3_src_unpack |
351 |
+ if use d3d9; then |
352 |
+ git-r3_fetch "${D3D9_EGIT_REPO_URI}" "${D3D9_COMMIT}" |
353 |
+ git-r3_checkout "${D3D9_EGIT_REPO_URI}" "${D3D9_DIR}" |
354 |
+ fi |
355 |
+ fi |
356 |
+ |
357 |
+ default |
358 |
+ |
359 |
+ l10n_find_plocales_changes "${S}/po" "" ".po" |
360 |
+} |
361 |
+ |
362 |
+src_prepare() { |
363 |
+ local md5="$(md5sum server/protocol.def)" |
364 |
+ local PATCHES=( |
365 |
+ "${FILESDIR}"/${MY_PN}-1.5.26-winegcc.patch #260726 |
366 |
+ "${FILESDIR}"/${MY_PN}-1.9.5-multilib-portage.patch #395615 |
367 |
+ "${FILESDIR}"/${MY_PN}-1.6-memset-O3.patch #480508 |
368 |
+ "${FILESDIR}"/${MY_PN}-2.0-multislot-apploader.patch |
369 |
+ ) |
370 |
+ if use d3d9; then |
371 |
+ PATCHES+=( "${D3D9_DIR}/d3d9-helper.patch" ) |
372 |
+ PATCHES+=( "${D3D9_DIR}/wine-d3d9.patch" ) |
373 |
+ fi |
374 |
+ |
375 |
+ default |
376 |
+ eautoreconf |
377 |
+ |
378 |
+ # Modification of the server protocol requires regenerating the server requests |
379 |
+ if [[ "$(md5sum server/protocol.def)" != "${md5}" ]]; then |
380 |
+ einfo "server/protocol.def was patched; running tools/make_requests" |
381 |
+ tools/make_requests || die #432348 |
382 |
+ fi |
383 |
+ sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die |
384 |
+ if ! use run-exes; then |
385 |
+ sed -i '/^MimeType/d' loader/wine.desktop || die #117785 |
386 |
+ fi |
387 |
+ |
388 |
+ # Edit wine.desktop to work for specific variant |
389 |
+ sed -e "/^Exec=/s/wine /wine-${WINE_VARIANT} /" -i loader/wine.desktop || die |
390 |
+ |
391 |
+ # hi-res default icon, #472990, http://bugs.winehq.org/show_bug.cgi?id=24652 |
392 |
+ cp "${WORKDIR}/${WINE_DESKTOP_COMMON_P}/icons/oic_winlogo.ico" dlls/user32/resources/ || die |
393 |
+ |
394 |
+ l10n_get_locales > po/LINGUAS || die # otherwise wine doesn't respect LINGUAS |
395 |
+} |
396 |
+ |
397 |
+src_configure() { |
398 |
+ wine_compiler_check || die |
399 |
+ |
400 |
+ export LDCONFIG=/bin/true |
401 |
+ use custom-cflags || strip-flags |
402 |
+ |
403 |
+ multilib-minimal_src_configure |
404 |
+} |
405 |
+ |
406 |
+multilib_src_configure() { |
407 |
+ local myconf=( |
408 |
+ --prefix="${MY_PREFIX}" |
409 |
+ --datarootdir="${MY_DATAROOTDIR}" |
410 |
+ --datadir="${MY_DATADIR}" |
411 |
+ --docdir="${MY_DOCDIR}" |
412 |
+ --includedir="${MY_INCLUDEDIR}" |
413 |
+ --libdir="${EPREFIX}/usr/$(get_libdir)/wine-${WINE_VARIANT}" |
414 |
+ --libexecdir="${MY_LIBEXECDIR}" |
415 |
+ --localstatedir="${MY_LOCALSTATEDIR}" |
416 |
+ --mandir="${MY_MANDIR}" |
417 |
+ --sysconfdir=/etc/wine |
418 |
+ $(use_with alsa) |
419 |
+ $(use_with capi) |
420 |
+ $(use_with lcms cms) |
421 |
+ $(use_with cups) |
422 |
+ $(use_with ncurses curses) |
423 |
+ $(use_with udisks dbus) |
424 |
+ $(use_with fontconfig) |
425 |
+ $(use_with ssl gnutls) |
426 |
+ $(use_enable gecko mshtml) |
427 |
+ $(use_with gphoto2 gphoto) |
428 |
+ $(use_with gsm) |
429 |
+ $(use_with gstreamer) |
430 |
+ --without-hal |
431 |
+ $(use_with jpeg) |
432 |
+ $(use_with ldap) |
433 |
+ $(use_enable mono mscoree) |
434 |
+ $(use_with mp3 mpg123) |
435 |
+ $(use_with netapi) |
436 |
+ $(use_with nls gettext) |
437 |
+ $(use_with openal) |
438 |
+ $(use_with opencl) |
439 |
+ $(use_with opengl) |
440 |
+ $(use_with osmesa) |
441 |
+ $(use_with oss) |
442 |
+ $(use_with pcap) |
443 |
+ $(use_with png) |
444 |
+ $(use_with pulseaudio pulse) |
445 |
+ $(use_with threads pthread) |
446 |
+ $(use_with scanner sane) |
447 |
+ $(use_enable test tests) |
448 |
+ $(use_with truetype freetype) |
449 |
+ $(use_with udev) |
450 |
+ $(use_with v4l) |
451 |
+ $(use_with X x) |
452 |
+ $(use_with X xfixes) |
453 |
+ $(use_with xcomposite) |
454 |
+ $(use_with xinerama) |
455 |
+ $(use_with xml) |
456 |
+ $(use_with xml xslt) |
457 |
+ ) |
458 |
+ |
459 |
+ use d3d9 && myconf+=( $(use_with d3d9 d3d9-nine) ) |
460 |
+ |
461 |
+ local PKG_CONFIG AR RANLIB |
462 |
+ # Avoid crossdev's i686-pc-linux-gnu-pkg-config if building wine32 on amd64; #472038 |
463 |
+ # set AR and RANLIB to make QA scripts happy; #483342 |
464 |
+ tc-export PKG_CONFIG AR RANLIB |
465 |
+ |
466 |
+ if use amd64; then |
467 |
+ if [[ ${ABI} == amd64 ]]; then |
468 |
+ myconf+=( --enable-win64 ) |
469 |
+ else |
470 |
+ myconf+=( --disable-win64 ) |
471 |
+ fi |
472 |
+ |
473 |
+ # Note: using --with-wine64 results in problems with multilib.eclass |
474 |
+ # CC/LD hackery. We're using separate tools instead. |
475 |
+ fi |
476 |
+ |
477 |
+ ECONF_SOURCE=${S} \ |
478 |
+ econf "${myconf[@]}" |
479 |
+ emake depend |
480 |
+} |
481 |
+ |
482 |
+multilib_src_test() { |
483 |
+ # FIXME: win32-only; wine64 tests fail with "could not find the Wine loader" |
484 |
+ if [[ ${ABI} == x86 ]]; then |
485 |
+ if [[ $(id -u) == 0 ]]; then |
486 |
+ ewarn "Skipping tests since they cannot be run under the root user." |
487 |
+ ewarn "To run the test ${MY_PN} suite, add userpriv to FEATURES in make.conf" |
488 |
+ return |
489 |
+ fi |
490 |
+ |
491 |
+ WINEPREFIX="${T}/.wine-${ABI}" \ |
492 |
+ Xemake test |
493 |
+ fi |
494 |
+} |
495 |
+ |
496 |
+multilib_src_install_all() { |
497 |
+ local DOCS=( ANNOUNCE AUTHORS README ) |
498 |
+ add_locale_docs() { |
499 |
+ local locale_doc="documentation/README.$1" |
500 |
+ [[ ! -e ${locale_doc} ]] || DOCS+=( ${locale_doc} ) |
501 |
+ } |
502 |
+ l10n_for_each_locale_do add_locale_docs |
503 |
+ |
504 |
+ einstalldocs |
505 |
+ prune_libtool_files --all |
506 |
+ |
507 |
+ if ! use perl ; then # winedump calls function_grep.pl, and winemaker is a perl script |
508 |
+ rm "${D%/}${MY_PREFIX}"/bin/{wine{dump,maker},function_grep.pl} \ |
509 |
+ "${D%/}${MY_MANDIR}"/man1/wine{dump,maker}.1 || die |
510 |
+ fi |
511 |
+ |
512 |
+ # Remove wineconsole if neither backend is installed #551124 |
513 |
+ if ! use X && ! use ncurses; then |
514 |
+ rm "${D%/}${MY_PREFIX}"/bin/wineconsole* || die |
515 |
+ rm "${D%/}${MY_MANDIR}"/man1/wineconsole* || die |
516 |
+ rm_wineconsole() { |
517 |
+ rm "${D%/}${MY_PREFIX}/$(get_libdir)"/wine/{,fakedlls/}wineconsole.exe* || die |
518 |
+ } |
519 |
+ multilib_foreach_abi rm_wineconsole |
520 |
+ fi |
521 |
+ |
522 |
+ use abi_x86_32 && pax-mark psmr "${D%/}${MY_PREFIX}"/bin/wine{,-preloader} #255055 |
523 |
+ use abi_x86_64 && pax-mark psmr "${D%/}${MY_PREFIX}"/bin/wine64{,-preloader} |
524 |
+ |
525 |
+ if use abi_x86_64 && ! use abi_x86_32; then |
526 |
+ dosym "${MY_PREFIX}"/bin/wine{64,} # 404331 |
527 |
+ dosym "${MY_PREFIX}"/bin/wine{64,}-preloader |
528 |
+ fi |
529 |
+ |
530 |
+ # Failglob for bin and man loops |
531 |
+ local glob_state=$(shopt -p failglob) |
532 |
+ shopt -s failglob |
533 |
+ |
534 |
+ # Make wrappers for binaries for handling multiple variants |
535 |
+ # Note: wrappers instead of symlinks because some are shell which use basename |
536 |
+ local b |
537 |
+ for b in "${D%/}${MY_PREFIX}"/bin/*; do |
538 |
+ make_wrapper "${b##*/}-${WINE_VARIANT}" "${MY_PREFIX}/bin/${b##*/}" |
539 |
+ done |
540 |
+ |
541 |
+ # respect LINGUAS when installing man pages, #469418 |
542 |
+ local l |
543 |
+ for l in de fr pl; do |
544 |
+ use linguas_${l} || rm -r "${D%/}${MY_MANDIR}"/${l}* |
545 |
+ done |
546 |
+ |
547 |
+ eval "${glob_state}" |
548 |
+} |
549 |
+ |
550 |
+pkg_postinst() { |
551 |
+ eselect wine register ${P} |
552 |
+ if [[ ${PN} == "wine-vanilla" ]]; then |
553 |
+ eselect wine register --vanilla ${P} || die |
554 |
+ else |
555 |
+ if use d3d9; then |
556 |
+ eselect wine register --d3d9 ${P} || die |
557 |
+ fi |
558 |
+ fi |
559 |
+ |
560 |
+ eselect wine update --all --if-unset || die |
561 |
+ |
562 |
+ fdo-mime_desktop_database_update |
563 |
+ |
564 |
+ if ! use gecko; then |
565 |
+ ewarn "Without Wine Gecko, wine prefixes will not have a default" |
566 |
+ ewarn "implementation of iexplore. Many older windows applications" |
567 |
+ ewarn "rely upon the existence of an iexplore implementation, so" |
568 |
+ ewarn "you will likely need to install an external one, like via winetricks" |
569 |
+ fi |
570 |
+ if ! use mono; then |
571 |
+ ewarn "Without Wine Mono, wine prefixes will not have a default" |
572 |
+ ewarn "implementation of .NET. Many windows applications rely upon" |
573 |
+ ewarn "the existence of a .NET implementation, so you will likely need" |
574 |
+ ewarn "to install an external one, like via winetricks" |
575 |
+ fi |
576 |
+} |
577 |
+ |
578 |
+pkg_prerm() { |
579 |
+ eselect wine deregister ${P} |
580 |
+ if [[ ${PN} == "wine-vanilla" ]]; then |
581 |
+ eselect wine deregister --vanilla ${P} || die |
582 |
+ else |
583 |
+ if use d3d9; then |
584 |
+ eselect wine deregister --d3d9 ${P} || die |
585 |
+ fi |
586 |
+ fi |
587 |
+ |
588 |
+ eselect wine update --all --if-unset || die |
589 |
+} |
590 |
+ |
591 |
+pkg_postrm() { |
592 |
+ fdo-mime_desktop_database_update |
593 |
+} |