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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.11 - (hide annotations) (download)
Thu Sep 15 03:17:51 2011 UTC (2 years, 10 months ago) by vapier
Branch: MAIN
Changes since 1.10: +3 -1 lines
Add multilib deps for USE="mp3 scanner" #382125 by Jonathan-Christofer Demay.

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

1 vapier 1.1 # Copyright 1999-2011 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 vapier 1.11 # $Header: /var/cvsroot/gentoo-x86/app-emulation/wine/wine-1.2.2.ebuild,v 1.10 2011/08/20 19:23:56 vapier Exp $
4 vapier 1.1
5     EAPI="2"
6    
7     inherit eutils flag-o-matic multilib
8    
9     if [[ ${PV} == "9999" ]] ; then
10     EGIT_REPO_URI="git://source.winehq.org/git/wine.git"
11 vapier 1.6 inherit git-2 autotools
12 vapier 1.1 SRC_URI=""
13     #KEYWORDS=""
14     else
15     AUTOTOOLS_AUTO_DEPEND="no"
16     inherit autotools
17     MY_P="${PN}-${PV/_/-}"
18     SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.bz2"
19 vapier 1.5 KEYWORDS="-* amd64 x86 ~x86-fbsd"
20 vapier 1.1 S=${WORKDIR}/${MY_P}
21     fi
22    
23     pulse_patches() { echo "$1"/winepulse-{0.36,0.35-configure.ac,0.38-winecfg}.patch ; }
24     GV="1.0.0-x86"
25     DESCRIPTION="free implementation of Windows(tm) on Unix"
26     HOMEPAGE="http://www.winehq.org/"
27     SRC_URI="${SRC_URI}
28     gecko? ( mirror://sourceforge/wine/wine_gecko-${GV}.cab )
29     pulseaudio? ( `pulse_patches http://art.ified.ca/downloads/winepulse` )"
30    
31     LICENSE="LGPL-2.1"
32     SLOT="0"
33 vapier 1.10 IUSE="alsa capi cups custom-cflags dbus esd fontconfig +gecko gnutls gphoto2 gsm hal hardened jack jpeg lcms ldap mp3 nas ncurses openal +opengl +oss +perl png pulseaudio samba scanner ssl test +threads +truetype v4l +win32 +win64 +X xcomposite xinerama xml"
34 vapier 1.1 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 vapier 1.3 >=app-emulation/emul-linux-x86-soundlibs-2.1[pulseaudio?]
41 vapier 1.1 )
42 vapier 1.11 mp3? ( app-emulation/emul-linux-x86-soundlibs )
43 vapier 1.1 openal? ( app-emulation/emul-linux-x86-sdl )
44     opengl? ( app-emulation/emul-linux-x86-opengl )
45 vapier 1.11 scanner? ( app-emulation/emul-linux-x86-medialibs )
46 vapier 1.7 v4l? ( app-emulation/emul-linux-x86-medialibs )
47 vapier 1.1 app-emulation/emul-linux-x86-baselibs
48     >=sys-kernel/linux-headers-2.6
49     )"
50     RDEPEND="truetype? ( >=media-libs/freetype-2.0.0 media-fonts/corefonts )
51     perl? ( dev-lang/perl dev-perl/XML-Simple )
52     capi? ( net-dialup/capi4k-utils )
53     ncurses? ( >=sys-libs/ncurses-5.2 )
54     fontconfig? ( media-libs/fontconfig )
55     gphoto2? ( media-libs/libgphoto2 )
56     jack? ( media-sound/jack-audio-connection-kit )
57     openal? ( media-libs/openal )
58     dbus? ( sys-apps/dbus )
59     gnutls? ( net-libs/gnutls )
60     hal? ( sys-apps/hal )
61     X? (
62     x11-libs/libXcursor
63     x11-libs/libXrandr
64     x11-libs/libXi
65     x11-libs/libXmu
66     x11-libs/libXxf86vm
67     x11-apps/xmessage
68     )
69     xinerama? ( x11-libs/libXinerama )
70     alsa? ( media-libs/alsa-lib )
71     esd? ( media-sound/esound )
72     nas? ( media-libs/nas )
73     cups? ( net-print/cups )
74     opengl? ( virtual/opengl )
75 vapier 1.2 pulseaudio? ( media-sound/pulseaudio )
76 vapier 1.1 gsm? ( media-sound/gsm )
77     jpeg? ( virtual/jpeg )
78     ldap? ( net-nds/openldap )
79     lcms? ( =media-libs/lcms-1* )
80     mp3? ( >=media-sound/mpg123-1.5.0 )
81     samba? ( >=net-fs/samba-3.0.25 )
82     xml? ( dev-libs/libxml2 dev-libs/libxslt )
83     scanner? ( media-gfx/sane-backends )
84     ssl? ( dev-libs/openssl )
85     png? ( media-libs/libpng )
86 vapier 1.4 v4l? ( media-libs/libv4l )
87 vapier 1.1 !win64? ( ${MLIB_DEPS} )
88     win32? ( ${MLIB_DEPS} )
89 vapier 1.8 xcomposite? ( x11-libs/libXcomposite )"
90 vapier 1.1 DEPEND="${RDEPEND}
91 vapier 1.2 pulseaudio? ( ${AUTOTOOLS_DEPEND} )
92 vapier 1.1 X? (
93     x11-proto/inputproto
94     x11-proto/xextproto
95     x11-proto/xf86vidmodeproto
96     )
97     xinerama? ( x11-proto/xineramaproto )
98 vapier 1.10 !hardened? ( sys-devel/prelink )
99 vapier 1.9 virtual/yacc
100 vapier 1.1 sys-devel/flex"
101    
102     src_unpack() {
103     if use win64 ; then
104     [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]] \
105     && die "you need gcc-4.4+ to build 64bit wine"
106     fi
107    
108     if [[ ${PV} == "9999" ]] ; then
109 vapier 1.6 git-2_src_unpack
110 vapier 1.1 else
111     unpack ${MY_P}.tar.bz2
112     fi
113     }
114    
115     src_prepare() {
116     if use pulseaudio ; then
117     EPATCH_OPTS=-p1 epatch `pulse_patches "${DISTDIR}"`
118     eautoreconf
119     fi
120     epatch "${FILESDIR}"/${PN}-1.1.15-winegcc.patch #260726
121     epatch_user #282735
122     sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die
123     sed -i '/^MimeType/d' tools/wine.desktop || die #117785
124     }
125    
126     do_configure() {
127     local builddir="${WORKDIR}/wine$1"
128     mkdir -p "${builddir}"
129     pushd "${builddir}" >/dev/null
130    
131     ECONF_SOURCE=${S} \
132     econf \
133     --sysconfdir=/etc/wine \
134     $(use_with alsa) \
135     $(use_with capi) \
136     $(use_with lcms cms) \
137     $(use_with cups) \
138     $(use_with ncurses curses) \
139     $(use_with esd) \
140     $(use_with fontconfig) \
141     $(use_with gnutls) \
142     $(use_with gphoto2 gphoto) \
143     $(use_with gsm) \
144     $(! use dbus && echo --without-hal || use_with hal) \
145     $(use_with jack) \
146     $(use_with jpeg) \
147     $(use_with ldap) \
148     $(use_with mp3 mpg123) \
149     $(use_with nas) \
150     $(use_with openal) \
151     $(use_with opengl) \
152     $(use_with ssl openssl) \
153     $(use_with oss) \
154     $(use_with png) \
155     $(use_with threads pthread) \
156     $(use pulseaudio && use_with pulseaudio pulse) \
157     $(use_with scanner sane) \
158     $(use_enable test tests) \
159     $(use_with truetype freetype) \
160 vapier 1.4 $(use_with v4l) \
161 vapier 1.1 $(use_with X x) \
162     $(use_with xcomposite) \
163     $(use_with xinerama) \
164     $(use_with xml) \
165     $(use_with xml xslt) \
166     $2
167    
168     emake -j1 depend || die "depend"
169    
170     popd >/dev/null
171     }
172     src_configure() {
173     export LDCONFIG=/bin/true
174     use custom-cflags || strip-flags
175    
176     if use win64 ; then
177     do_configure 64 --enable-win64
178     use win32 && ABI=x86 do_configure 32 --with-wine64=../wine64
179     else
180     ABI=x86 do_configure 32 --disable-win64
181     fi
182     }
183    
184     src_compile() {
185     local b
186     for b in 64 32 ; do
187     local builddir="${WORKDIR}/wine${b}"
188     [[ -d ${builddir} ]] || continue
189     emake -C "${builddir}" all || die
190     done
191     }
192    
193     src_install() {
194     local b
195     for b in 64 32 ; do
196     local builddir="${WORKDIR}/wine${b}"
197     [[ -d ${builddir} ]] || continue
198     emake -C "${builddir}" install DESTDIR="${D}" || die
199     done
200     dodoc ANNOUNCE AUTHORS README
201     if use gecko ; then
202     insinto /usr/share/wine/gecko
203     doins "${DISTDIR}"/wine_gecko-${GV}.cab || die
204     fi
205     if ! use perl ; then
206     rm "${D}"/usr/bin/{wine{dump,maker},function_grep.pl} "${D}"/usr/share/man/man1/wine{dump,maker}.1 || die
207     fi
208     }
209    
210     pkg_postinst() {
211     paxctl -psmr "${ROOT}"/usr/bin/wine{,-preloader} 2>/dev/null #255055
212     }

  ViewVC Help
Powered by ViewVC 1.1.20