/[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.2 - (hide annotations) (download)
Wed Jan 12 19:16:55 2011 UTC (3 years, 11 months ago) by vapier
Branch: MAIN
Changes since 1.1: +3 -2 lines
Move autotool deps to DEPEND #351461 by Arfrever Frehtes Taifersar Arahesis.

(Portage version: 2.2.0_alpha13/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.2 # $Header: /var/cvsroot/gentoo-x86/app-emulation/wine/wine-1.2.2.ebuild,v 1.1 2011/01/12 18:17:09 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     inherit git autotools
12     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     KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd"
20     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     IUSE="alsa capi cups custom-cflags dbus esd fontconfig +gecko gnutls gphoto2 gsm hal jack jpeg lcms ldap mp3 nas ncurses openal +opengl +oss +perl png pulseaudio samba scanner ssl test +threads +truetype +win32 +win64 +X xcomposite xinerama xml"
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     openal? ( app-emulation/emul-linux-x86-sdl )
43     opengl? ( app-emulation/emul-linux-x86-opengl )
44     app-emulation/emul-linux-x86-baselibs
45     >=sys-kernel/linux-headers-2.6
46     )"
47     RDEPEND="truetype? ( >=media-libs/freetype-2.0.0 media-fonts/corefonts )
48     perl? ( dev-lang/perl dev-perl/XML-Simple )
49     capi? ( net-dialup/capi4k-utils )
50     ncurses? ( >=sys-libs/ncurses-5.2 )
51     fontconfig? ( media-libs/fontconfig )
52     gphoto2? ( media-libs/libgphoto2 )
53     jack? ( media-sound/jack-audio-connection-kit )
54     openal? ( media-libs/openal )
55     dbus? ( sys-apps/dbus )
56     gnutls? ( net-libs/gnutls )
57     hal? ( sys-apps/hal )
58     X? (
59     x11-libs/libXcursor
60     x11-libs/libXrandr
61     x11-libs/libXi
62     x11-libs/libXmu
63     x11-libs/libXxf86vm
64     x11-apps/xmessage
65     )
66     xinerama? ( x11-libs/libXinerama )
67     alsa? ( media-libs/alsa-lib )
68     esd? ( media-sound/esound )
69     nas? ( media-libs/nas )
70     cups? ( net-print/cups )
71     opengl? ( virtual/opengl )
72 vapier 1.2 pulseaudio? ( media-sound/pulseaudio )
73 vapier 1.1 gsm? ( media-sound/gsm )
74     jpeg? ( virtual/jpeg )
75     ldap? ( net-nds/openldap )
76     lcms? ( =media-libs/lcms-1* )
77     mp3? ( >=media-sound/mpg123-1.5.0 )
78     samba? ( >=net-fs/samba-3.0.25 )
79     xml? ( dev-libs/libxml2 dev-libs/libxslt )
80     scanner? ( media-gfx/sane-backends )
81     ssl? ( dev-libs/openssl )
82     png? ( media-libs/libpng )
83     !win64? ( ${MLIB_DEPS} )
84     win32? ( ${MLIB_DEPS} )
85     xcomposite? ( x11-libs/libXcomposite ) "
86     DEPEND="${RDEPEND}
87 vapier 1.2 pulseaudio? ( ${AUTOTOOLS_DEPEND} )
88 vapier 1.1 X? (
89     x11-proto/inputproto
90     x11-proto/xextproto
91     x11-proto/xf86vidmodeproto
92     )
93     xinerama? ( x11-proto/xineramaproto )
94     sys-devel/bison
95     sys-devel/flex"
96    
97     src_unpack() {
98     if use win64 ; then
99     [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]] \
100     && die "you need gcc-4.4+ to build 64bit wine"
101     fi
102    
103     if [[ ${PV} == "9999" ]] ; then
104     git_src_unpack
105     else
106     unpack ${MY_P}.tar.bz2
107     fi
108     }
109    
110     src_prepare() {
111     if use pulseaudio ; then
112     EPATCH_OPTS=-p1 epatch `pulse_patches "${DISTDIR}"`
113     eautoreconf
114     fi
115     epatch "${FILESDIR}"/${PN}-1.1.15-winegcc.patch #260726
116     epatch_user #282735
117     sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die
118     sed -i '/^MimeType/d' tools/wine.desktop || die #117785
119     }
120    
121     do_configure() {
122     local builddir="${WORKDIR}/wine$1"
123     mkdir -p "${builddir}"
124     pushd "${builddir}" >/dev/null
125    
126     ECONF_SOURCE=${S} \
127     econf \
128     --sysconfdir=/etc/wine \
129     $(use_with alsa) \
130     $(use_with capi) \
131     $(use_with lcms cms) \
132     $(use_with cups) \
133     $(use_with ncurses curses) \
134     $(use_with esd) \
135     $(use_with fontconfig) \
136     $(use_with gnutls) \
137     $(use_with gphoto2 gphoto) \
138     $(use_with gsm) \
139     $(! use dbus && echo --without-hal || use_with hal) \
140     $(use_with jack) \
141     $(use_with jpeg) \
142     $(use_with ldap) \
143     $(use_with mp3 mpg123) \
144     $(use_with nas) \
145     $(use_with openal) \
146     $(use_with opengl) \
147     $(use_with ssl openssl) \
148     $(use_with oss) \
149     $(use_with png) \
150     $(use_with threads pthread) \
151     $(use pulseaudio && use_with pulseaudio pulse) \
152     $(use_with scanner sane) \
153     $(use_enable test tests) \
154     $(use_with truetype freetype) \
155     $(use_with X x) \
156     $(use_with xcomposite) \
157     $(use_with xinerama) \
158     $(use_with xml) \
159     $(use_with xml xslt) \
160     $2
161    
162     emake -j1 depend || die "depend"
163    
164     popd >/dev/null
165     }
166     src_configure() {
167     export LDCONFIG=/bin/true
168     use custom-cflags || strip-flags
169    
170     if use win64 ; then
171     do_configure 64 --enable-win64
172     use win32 && ABI=x86 do_configure 32 --with-wine64=../wine64
173     else
174     ABI=x86 do_configure 32 --disable-win64
175     fi
176     }
177    
178     src_compile() {
179     local b
180     for b in 64 32 ; do
181     local builddir="${WORKDIR}/wine${b}"
182     [[ -d ${builddir} ]] || continue
183     emake -C "${builddir}" all || die
184     done
185     }
186    
187     src_install() {
188     local b
189     for b in 64 32 ; do
190     local builddir="${WORKDIR}/wine${b}"
191     [[ -d ${builddir} ]] || continue
192     emake -C "${builddir}" install DESTDIR="${D}" || die
193     done
194     dodoc ANNOUNCE AUTHORS README
195     if use gecko ; then
196     insinto /usr/share/wine/gecko
197     doins "${DISTDIR}"/wine_gecko-${GV}.cab || die
198     fi
199     if ! use perl ; then
200     rm "${D}"/usr/bin/{wine{dump,maker},function_grep.pl} "${D}"/usr/share/man/man1/wine{dump,maker}.1 || die
201     fi
202     }
203    
204     pkg_postinst() {
205     paxctl -psmr "${ROOT}"/usr/bin/wine{,-preloader} 2>/dev/null #255055
206     }

  ViewVC Help
Powered by ViewVC 1.1.20