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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.11 - (hide annotations) (download)
Sun Sep 1 14:38:32 2013 UTC (5 years, 3 months ago) by tetromino
Branch: MAIN
Changes since 1.10: +4 -3 lines
Do not pull in corefonts when USE=truetype; users who need the original corefonts instead of Wine's version can use winetricks (bug #481122, thanks to Luke-Jr). Do not depend on libXmu (not needed), but do depend on libSM and libICE (pulled in due to AC_PATH_XTRA silliness) (bug #483252, thanks to Rafał Mużyło).

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

1 tetromino 1.7 # Copyright 1999-2013 Gentoo Foundation
2 tetromino 1.1 # Distributed under the terms of the GNU General Public License v2
3 tetromino 1.11 # $Header: /var/cvsroot/gentoo-x86/app-emulation/wine/wine-1.5.7.ebuild,v 1.10 2013/08/05 09:31:06 ssuominen Exp $
4 tetromino 1.1
5 tetromino 1.7 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     KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd"
18     S=${WORKDIR}/${MY_P}
19     fi
20    
21     GV="1.6"
22     MV="0.0.4"
23     PULSE_PATCH="winepulse-2012.06.15.patch"
24 tetromino 1.7 DESCRIPTION="Free implementation of Windows(tm) on Unix"
25 tetromino 1.1 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 vapier 1.6 IUSE="alsa capi cups custom-cflags elibc_glibc fontconfig +gecko gnutls gphoto2 gsm gstreamer jpeg lcms ldap +mono mp3 ncurses nls odbc openal opencl +opengl +oss +perl png +prelink pulseaudio samba scanner selinux ssl test +threads +truetype udisks v4l +win32 +win64 +X xcomposite xinerama xml"
37 tetromino 1.1 REQUIRED_USE="elibc_glibc? ( threads )
38     mono? ( || ( win32 !win64 ) )" #286560
39     RESTRICT="test" #72375
40    
41     MLIB_DEPS="amd64? (
42 ssuominen 1.9 gstreamer? ( app-emulation/emul-linux-x86-gstplugins )
43 tetromino 1.1 truetype? ( >=app-emulation/emul-linux-x86-xlibs-2.1 )
44     X? (
45     >=app-emulation/emul-linux-x86-xlibs-2.1
46 tetromino 1.7 >=app-emulation/emul-linux-x86-soundlibs-2.1
47 tetromino 1.1 )
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 tetromino 1.11 RDEPEND="truetype? ( >=media-libs/freetype-2.0.0 )
58 tetromino 1.1 perl? ( dev-lang/perl dev-perl/XML-Simple )
59     capi? ( net-dialup/capi4k-utils )
60 tetromino 1.7 ncurses? ( >=sys-libs/ncurses-5.2:= )
61     fontconfig? ( media-libs/fontconfig:= )
62     gphoto2? ( media-libs/libgphoto2:= )
63     openal? ( media-libs/openal:= )
64 tetromino 1.1 udisks? (
65     sys-apps/dbus
66     sys-fs/udisks:2
67     )
68 tetromino 1.7 gnutls? ( net-libs/gnutls:= )
69 tetromino 1.5 gstreamer? ( media-libs/gstreamer:0.10 media-libs/gst-plugins-base:0.10 )
70 tetromino 1.1 X? (
71 tetromino 1.11 x11-libs/libICE
72     x11-libs/libSM
73 tetromino 1.1 x11-libs/libXcursor
74     x11-libs/libXrandr
75     x11-libs/libXi
76     x11-libs/libXxf86vm
77     )
78     xinerama? ( x11-libs/libXinerama )
79     alsa? ( media-libs/alsa-lib )
80 tetromino 1.7 cups? ( net-print/cups:= )
81 tetromino 1.1 opencl? ( virtual/opencl )
82 tetromino 1.4 opengl? (
83     virtual/glu
84     virtual/opengl
85     )
86 tetromino 1.7 gsm? ( media-sound/gsm:= )
87 ssuominen 1.10 jpeg? ( virtual/jpeg:0= )
88 tetromino 1.7 ldap? ( net-nds/openldap:= )
89     lcms? ( media-libs/lcms:0= )
90 tetromino 1.1 mp3? ( >=media-sound/mpg123-1.5.0 )
91     nls? ( sys-devel/gettext )
92 tetromino 1.7 odbc? ( dev-db/unixODBC:= )
93 tetromino 1.1 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 tetromino 1.7 scanner? ( media-gfx/sane-backends:= )
98 tetromino 1.8 ssl? ( dev-libs/openssl:0= )
99     png? ( media-libs/libpng:0= )
100 tetromino 1.1 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 vapier 1.6 prelink? ( sys-devel/prelink )
112 tetromino 1.1 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 tetromino 1.3 local md5="$(md5sum server/protocol.def)"
136 tetromino 1.1 epatch "${FILESDIR}"/${PN}-1.1.15-winegcc.patch #260726
137     epatch "${FILESDIR}"/${PN}-1.4_rc2-multilib-portage.patch #395615
138     epatch "${DISTDIR}/${PULSE_PATCH}" #421365
139     epatch_user #282735
140 tetromino 1.3 if [[ "$(md5sum server/protocol.def)" != "${md5}" ]]; then
141     einfo "server/protocol.def was patched; running tools/make_requests"
142     tools/make_requests || die #432348
143     fi
144 tetromino 1.1 eautoreconf
145     sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die
146     sed -i '/^MimeType/d' tools/wine.desktop || die #117785
147     }
148    
149     do_configure() {
150     local builddir="${WORKDIR}/wine$1"
151     mkdir -p "${builddir}"
152     pushd "${builddir}" >/dev/null
153    
154     ECONF_SOURCE=${S} \
155     econf \
156     --sysconfdir=/etc/wine \
157     $(use_with alsa) \
158     $(use_with capi) \
159     $(use_with lcms cms) \
160     $(use_with cups) \
161     $(use_with ncurses curses) \
162     $(use_with udisks dbus) \
163     $(use_with fontconfig) \
164     $(use_with gnutls) \
165     $(use_with gphoto2 gphoto) \
166     $(use_with gsm) \
167     $(use_with gstreamer) \
168     --without-hal \
169     $(use_with jpeg) \
170     $(use_with ldap) \
171     $(use_with mp3 mpg123) \
172     $(use_with nls gettext) \
173     $(use_with openal) \
174     $(use_with opencl) \
175     $(use_with opengl) \
176     $(use_with ssl openssl) \
177     $(use_with oss) \
178     $(use_with png) \
179     $(use_with threads pthread) \
180     $(use_with pulseaudio pulse) \
181     $(use_with scanner sane) \
182     $(use_enable test tests) \
183     $(use_with truetype freetype) \
184     $(use_with v4l) \
185     $(use_with X x) \
186     $(use_with xcomposite) \
187     $(use_with xinerama) \
188     $(use_with xml) \
189     $(use_with xml xslt) \
190     $2
191    
192     emake -j1 depend
193    
194     popd >/dev/null
195     }
196    
197     src_configure() {
198     export LDCONFIG=/bin/true
199     use custom-cflags || strip-flags
200    
201     if use win64 ; then
202     do_configure 64 --enable-win64
203     use win32 && ABI=x86 do_configure 32 --with-wine64=../wine64
204     else
205     ABI=x86 do_configure 32 --disable-win64
206     fi
207     }
208    
209     src_compile() {
210     local b
211     for b in 64 32 ; do
212     local builddir="${WORKDIR}/wine${b}"
213     [[ -d ${builddir} ]] || continue
214     emake -C "${builddir}" all
215     done
216     }
217    
218     src_install() {
219     local b
220     for b in 64 32 ; do
221     local builddir="${WORKDIR}/wine${b}"
222     [[ -d ${builddir} ]] || continue
223     emake -C "${builddir}" install DESTDIR="${D}"
224     done
225     dodoc ANNOUNCE AUTHORS README
226     if use gecko ; then
227     insinto /usr/share/wine/gecko
228     doins "${DISTDIR}"/wine_gecko-${GV}-x86.msi
229     use win64 && doins "${DISTDIR}"/wine_gecko-${GV}-x86_64.msi
230     fi
231     if use mono ; then
232     insinto /usr/share/wine/mono
233     doins "${DISTDIR}"/wine-mono-${MV}.msi
234     fi
235     if ! use perl ; then
236     rm "${D}"usr/bin/{wine{dump,maker},function_grep.pl} "${D}"usr/share/man/man1/wine{dump,maker}.1 || die
237     fi
238    
239     if use win32 || ! use win64; then
240     pax-mark psmr "${D}"usr/bin/wine{,-preloader} #255055
241     fi
242     use win64 && pax-mark psmr "${D}"usr/bin/wine64{,-preloader}
243    
244     if use win64 && ! use win32; then
245     dosym /usr/bin/wine{64,} # 404331
246     dosym /usr/bin/wine{64,}-preloader
247     fi
248     }

  ViewVC Help
Powered by ViewVC 1.1.20