/[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.6 - (hide annotations) (download)
Mon Sep 10 06:02:11 2012 UTC (2 years ago) by tetromino
Branch: MAIN
Changes since 1.5: +5 -2 lines
Add virtual/glu dependency for mesa-9, bug #434446, thanks to Andreas Sturmlechner.

(Portage version: 2.2.0_alpha124/cvs/Linux x86_64)

1 tetromino 1.1 # Copyright 1999-2012 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 tetromino 1.6 # $Header: /var/cvsroot/gentoo-x86/app-emulation/wine/wine-1.4.1.ebuild,v 1.5 2012/08/23 16:45:20 tetromino Exp $
4 tetromino 1.1
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 scarabeus 1.3 KEYWORDS="-* amd64 x86 ~x86-fbsd"
18 tetromino 1.1 S=${WORKDIR}/${MY_P}
19     fi
20    
21     GV="1.4"
22     DESCRIPTION="free implementation of Windows(tm) on Unix"
23     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     IUSE="alsa capi cups custom-cflags elibc_glibc fontconfig +gecko gnutls gphoto2 gsm gstreamer hardened jpeg lcms ldap mp3 ncurses nls odbc openal opencl +opengl +oss +perl png samba scanner selinux ssl test +threads +truetype udisks v4l +win32 +win64 +X xcomposite xinerama xml"
33     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     RDEPEND="truetype? ( >=media-libs/freetype-2.0.0 media-fonts/corefonts )
52     perl? ( dev-lang/perl dev-perl/XML-Simple )
53     capi? ( net-dialup/capi4k-utils )
54     ncurses? ( >=sys-libs/ncurses-5.2 )
55     fontconfig? ( media-libs/fontconfig )
56     gphoto2? ( media-libs/libgphoto2 )
57     openal? ( media-libs/openal )
58     udisks? (
59     sys-apps/dbus
60     sys-fs/udisks:0
61     )
62     gnutls? ( net-libs/gnutls )
63     gstreamer? ( media-libs/gstreamer media-libs/gst-plugins-base )
64     X? (
65     x11-libs/libXcursor
66     x11-libs/libXrandr
67     x11-libs/libXi
68     x11-libs/libXmu
69     x11-libs/libXxf86vm
70     )
71     xinerama? ( x11-libs/libXinerama )
72     alsa? ( media-libs/alsa-lib )
73     cups? ( net-print/cups )
74     opencl? ( virtual/opencl )
75 tetromino 1.6 opengl? (
76     virtual/glu
77     virtual/opengl
78     )
79 tetromino 1.1 gsm? ( media-sound/gsm )
80     jpeg? ( virtual/jpeg )
81     ldap? ( net-nds/openldap )
82     lcms? ( =media-libs/lcms-1* )
83     mp3? ( >=media-sound/mpg123-1.5.0 )
84     nls? ( sys-devel/gettext )
85     odbc? ( dev-db/unixODBC )
86     samba? ( >=net-fs/samba-3.0.25 )
87     selinux? ( sec-policy/selinux-wine )
88     xml? ( dev-libs/libxml2 dev-libs/libxslt )
89     scanner? ( media-gfx/sane-backends )
90     ssl? ( dev-libs/openssl )
91     png? ( media-libs/libpng )
92     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     !hardened? ( sys-devel/prelink )
104     virtual/pkgconfig
105     virtual/yacc
106     sys-devel/flex"
107    
108     src_unpack() {
109     if use win64 ; then
110     [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]] \
111     && die "you need gcc-4.4+ to build 64bit wine"
112     fi
113    
114     if use win32 && use opencl; then
115     [[ x$(eselect opencl show) = "xintel" ]] &&
116     die "Cannot build wine[opencl,win32]: intel-ocl-sdk is 64-bit only" # 403947
117     fi
118    
119     if [[ ${PV} == "9999" ]] ; then
120     git-2_src_unpack
121     else
122     unpack ${MY_P}.tar.bz2
123     fi
124     }
125    
126     src_prepare() {
127 tetromino 1.5 local md5="$(md5sum server/protocol.def)"
128 tetromino 1.1 epatch "${FILESDIR}"/${PN}-1.1.15-winegcc.patch #260726
129     epatch "${FILESDIR}"/${PN}-1.4_rc2-multilib-portage.patch #395615
130     epatch_user #282735
131 tetromino 1.5 if [[ "$(md5sum server/protocol.def)" != "${md5}" ]]; then
132     einfo "server/protocol.def was patched; running tools/make_requests"
133     tools/make_requests || die #432348
134     fi
135 tetromino 1.1 eautoreconf
136     sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die
137     sed -i '/^MimeType/d' tools/wine.desktop || die #117785
138     }
139    
140     do_configure() {
141     local builddir="${WORKDIR}/wine$1"
142     mkdir -p "${builddir}"
143     pushd "${builddir}" >/dev/null
144    
145     ECONF_SOURCE=${S} \
146     econf \
147     --sysconfdir=/etc/wine \
148     $(use_with alsa) \
149     $(use_with capi) \
150     $(use_with lcms cms) \
151     $(use_with cups) \
152     $(use_with ncurses curses) \
153     $(use_with udisks dbus) \
154     $(use_with fontconfig) \
155     $(use_with gnutls) \
156     $(use_with gphoto2 gphoto) \
157     $(use_with gsm) \
158     $(use_with gstreamer) \
159     --without-hal \
160     $(use_with jpeg) \
161     $(use_with ldap) \
162     $(use_with mp3 mpg123) \
163     $(use_with nls gettext) \
164     $(use_with openal) \
165     $(use_with opencl) \
166     $(use_with opengl) \
167     $(use_with ssl openssl) \
168     $(use_with oss) \
169     $(use_with png) \
170     $(use_with threads pthread) \
171     $(use_with scanner sane) \
172     $(use_enable test tests) \
173     $(use_with truetype freetype) \
174     $(use_with v4l) \
175     $(use_with X x) \
176     $(use_with xcomposite) \
177     $(use_with xinerama) \
178     $(use_with xml) \
179     $(use_with xml xslt) \
180     $2
181    
182     emake -j1 depend
183    
184     popd >/dev/null
185     }
186    
187     src_configure() {
188     export LDCONFIG=/bin/true
189     use custom-cflags || strip-flags
190    
191     if use win64 ; then
192     do_configure 64 --enable-win64
193     use win32 && ABI=x86 do_configure 32 --with-wine64=../wine64
194     else
195     ABI=x86 do_configure 32 --disable-win64
196     fi
197     }
198    
199     src_compile() {
200     local b
201     for b in 64 32 ; do
202     local builddir="${WORKDIR}/wine${b}"
203     [[ -d ${builddir} ]] || continue
204     emake -C "${builddir}" all
205     done
206     }
207    
208     src_install() {
209     local b
210     for b in 64 32 ; do
211     local builddir="${WORKDIR}/wine${b}"
212     [[ -d ${builddir} ]] || continue
213     emake -C "${builddir}" install DESTDIR="${D}"
214     done
215     dodoc ANNOUNCE AUTHORS README
216     if use gecko ; then
217     insinto /usr/share/wine/gecko
218     doins "${DISTDIR}"/wine_gecko-${GV}-x86.msi
219     use win64 && doins "${DISTDIR}"/wine_gecko-${GV}-x86_64.msi
220     fi
221     if ! use perl ; then
222     rm "${D}"usr/bin/{wine{dump,maker},function_grep.pl} "${D}"usr/share/man/man1/wine{dump,maker}.1 || die
223     fi
224    
225     if use win32 || ! use win64; then
226     pax-mark psmr "${D}"usr/bin/wine{,-preloader} #255055
227     fi
228     use win64 && pax-mark psmr "${D}"usr/bin/wine64{,-preloader}
229    
230     if use win64 && ! use win32; then
231     dosym /usr/bin/wine{64,} # 404331
232     dosym /usr/bin/wine{64,}-preloader
233     fi
234     }

  ViewVC Help
Powered by ViewVC 1.1.20