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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.15 - (hide annotations) (download)
Thu Jan 1 21:01:23 2015 UTC (8 weeks, 4 days ago) by ryao
Branch: MAIN
CVS Tags: HEAD
Changes since 1.14: +2 -2 lines
Version bump, see http://www.winehq.org/announce/1.7.33 for the announcement.
New USE flag pcap. It was originally added in wine 1.7.25, but the requisite
work in the portage tree for multilib compatibility was not done then, so it
was disabled until now.

(Portage version: 2.2.8-r2/cvs/Linux x86_64, signed Manifest commit with key 0xBEE84C64)

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

  ViewVC Help
Powered by ViewVC 1.1.20