/[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.1 - (hide annotations) (download)
Sun Jun 24 23:23:11 2012 UTC (2 years ago) by tetromino
Branch: MAIN
Bump, see http://www.winehq.org/announce/1.5.7 and http://www.winehq.org/announce/1.4.1 for the announcements. Enable optional native pulseaudio support for 1.5.7 (bug #421365, thanks to Lee Trager). Fix emul-linux-x86-soundlibs dependency (bug #423093, thanks to Pacho Ramos).

(Portage version: 2.2.0_alpha112/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     # $Header: /var/cvsroot/gentoo-x86/app-emulation/wine/wine-1.4.ebuild,v 1.5 2012/06/10 03:24:21 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.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     x11-apps/xmessage
71     )
72     xinerama? ( x11-libs/libXinerama )
73     alsa? ( media-libs/alsa-lib )
74     cups? ( net-print/cups )
75     opencl? ( virtual/opencl )
76     opengl? ( virtual/opengl )
77     gsm? ( media-sound/gsm )
78     jpeg? ( virtual/jpeg )
79     ldap? ( net-nds/openldap )
80     lcms? ( =media-libs/lcms-1* )
81     mp3? ( >=media-sound/mpg123-1.5.0 )
82     nls? ( sys-devel/gettext )
83     odbc? ( dev-db/unixODBC )
84     samba? ( >=net-fs/samba-3.0.25 )
85     selinux? ( sec-policy/selinux-wine )
86     xml? ( dev-libs/libxml2 dev-libs/libxslt )
87     scanner? ( media-gfx/sane-backends )
88     ssl? ( dev-libs/openssl )
89     png? ( media-libs/libpng )
90     v4l? ( media-libs/libv4l )
91     !win64? ( ${MLIB_DEPS} )
92     win32? ( ${MLIB_DEPS} )
93     xcomposite? ( x11-libs/libXcomposite )"
94     DEPEND="${RDEPEND}
95     X? (
96     x11-proto/inputproto
97     x11-proto/xextproto
98     x11-proto/xf86vidmodeproto
99     )
100     xinerama? ( x11-proto/xineramaproto )
101     !hardened? ( sys-devel/prelink )
102     virtual/pkgconfig
103     virtual/yacc
104     sys-devel/flex"
105    
106     src_unpack() {
107     if use win64 ; then
108     [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]] \
109     && die "you need gcc-4.4+ to build 64bit wine"
110     fi
111    
112     if use win32 && use opencl; then
113     [[ x$(eselect opencl show) = "xintel" ]] &&
114     die "Cannot build wine[opencl,win32]: intel-ocl-sdk is 64-bit only" # 403947
115     fi
116    
117     if [[ ${PV} == "9999" ]] ; then
118     git-2_src_unpack
119     else
120     unpack ${MY_P}.tar.bz2
121     fi
122     }
123    
124     src_prepare() {
125     epatch "${FILESDIR}"/${PN}-1.1.15-winegcc.patch #260726
126     epatch "${FILESDIR}"/${PN}-1.4_rc2-multilib-portage.patch #395615
127     epatch_user #282735
128     eautoreconf
129     sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die
130     sed -i '/^MimeType/d' tools/wine.desktop || die #117785
131     }
132    
133     do_configure() {
134     local builddir="${WORKDIR}/wine$1"
135     mkdir -p "${builddir}"
136     pushd "${builddir}" >/dev/null
137    
138     ECONF_SOURCE=${S} \
139     econf \
140     --sysconfdir=/etc/wine \
141     $(use_with alsa) \
142     $(use_with capi) \
143     $(use_with lcms cms) \
144     $(use_with cups) \
145     $(use_with ncurses curses) \
146     $(use_with udisks dbus) \
147     $(use_with fontconfig) \
148     $(use_with gnutls) \
149     $(use_with gphoto2 gphoto) \
150     $(use_with gsm) \
151     $(use_with gstreamer) \
152     --without-hal \
153     $(use_with jpeg) \
154     $(use_with ldap) \
155     $(use_with mp3 mpg123) \
156     $(use_with nls gettext) \
157     $(use_with openal) \
158     $(use_with opencl) \
159     $(use_with opengl) \
160     $(use_with ssl openssl) \
161     $(use_with oss) \
162     $(use_with png) \
163     $(use_with threads pthread) \
164     $(use_with scanner sane) \
165     $(use_enable test tests) \
166     $(use_with truetype freetype) \
167     $(use_with v4l) \
168     $(use_with X x) \
169     $(use_with xcomposite) \
170     $(use_with xinerama) \
171     $(use_with xml) \
172     $(use_with xml xslt) \
173     $2
174    
175     emake -j1 depend
176    
177     popd >/dev/null
178     }
179    
180     src_configure() {
181     export LDCONFIG=/bin/true
182     use custom-cflags || strip-flags
183    
184     if use win64 ; then
185     do_configure 64 --enable-win64
186     use win32 && ABI=x86 do_configure 32 --with-wine64=../wine64
187     else
188     ABI=x86 do_configure 32 --disable-win64
189     fi
190     }
191    
192     src_compile() {
193     local b
194     for b in 64 32 ; do
195     local builddir="${WORKDIR}/wine${b}"
196     [[ -d ${builddir} ]] || continue
197     emake -C "${builddir}" all
198     done
199     }
200    
201     src_install() {
202     local b
203     for b in 64 32 ; do
204     local builddir="${WORKDIR}/wine${b}"
205     [[ -d ${builddir} ]] || continue
206     emake -C "${builddir}" install DESTDIR="${D}"
207     done
208     dodoc ANNOUNCE AUTHORS README
209     if use gecko ; then
210     insinto /usr/share/wine/gecko
211     doins "${DISTDIR}"/wine_gecko-${GV}-x86.msi
212     use win64 && doins "${DISTDIR}"/wine_gecko-${GV}-x86_64.msi
213     fi
214     if ! use perl ; then
215     rm "${D}"usr/bin/{wine{dump,maker},function_grep.pl} "${D}"usr/share/man/man1/wine{dump,maker}.1 || die
216     fi
217    
218     if use win32 || ! use win64; then
219     pax-mark psmr "${D}"usr/bin/wine{,-preloader} #255055
220     fi
221     use win64 && pax-mark psmr "${D}"usr/bin/wine64{,-preloader}
222    
223     if use win64 && ! use win32; then
224     dosym /usr/bin/wine{64,} # 404331
225     dosym /usr/bin/wine{64,}-preloader
226     fi
227     }

  ViewVC Help
Powered by ViewVC 1.1.20