1 # Copyright 1999-2008 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.1.0.ebuild,v 1.1 2008/06/27 16:24:02 vapier Exp $
7 inherit eutils flag-o-matic multilib
9 if [[ ${PV} == "9999" ]] ; then
10 EGIT_REPO_URI
="git://source.winehq.org/git/wine.git"
14 MY_P
="${PN}-${PV/_/-}"
15 SRC_URI
="mirror://sourceforge/${PN}/${MY_P}.tar.bz2"
19 DESCRIPTION
="free implementation of Windows(tm) on Unix"
20 HOMEPAGE
="http://www.winehq.org/"
22 gecko? ( mirror://sourceforge/wine/wine_gecko-0.1.0.cab )"
26 KEYWORDS
="-* ~amd64 ~x86 ~x86-fbsd"
27 IUSE
="alsa cups dbus esd +gecko hal jack jpeg lcms ldap nas ncurses +opengl oss samba scanner xml +X"
28 RESTRICT
="test" #72375
30 RDEPEND
=">=media-libs/freetype-2.0.0
32 ncurses? ( >=sys-libs/ncurses-5.2 )
33 jack? ( media-sound/jack-audio-connection-kit )
34 dbus? ( sys-apps/dbus )
44 alsa? ( media-libs/alsa-lib )
45 esd? ( media-sound/esound )
46 nas? ( media-libs/nas )
47 cups? ( net-print/cups )
48 opengl? ( virtual/opengl )
49 jpeg? ( media-libs/jpeg )
50 ldap? ( net-nds/openldap )
51 lcms? ( media-libs/lcms )
52 samba? ( >=net-fs/samba-3.0.25 )
53 xml? ( dev-libs/libxml2 dev-libs/libxslt )
54 scanner? ( media-gfx/sane-backends )
57 >=app-emulation/emul-linux-x86-xlibs-2.1
58 >=app-emulation/emul-linux-x86-soundlibs-2.1
60 >=sys-kernel/linux-headers-2.6
66 x11-proto/xf86vidmodeproto
73 if ! built_with_use
--missing true media-libs
/alsa-lib midi
; then
74 eerror
"You must build media-libs/alsa-lib with USE=midi"
75 die
"please re-emerge media-libs/alsa-lib with USE=midi"
80 if [[ ${PV} == "9999" ]] ; then
83 unpack
${MY_P}.
tar.bz2
87 sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools
/Makefile.
in || die
88 epatch
"${FILESDIR}"/wine-gentoo-no-ssp.
patch #66002
89 sed -i '/^MimeType/d' tools
/wine.desktop || die
#117785
100 export ac_cv_
${h//[:\/.]/_}=${ans}
105 export LDCONFIG
=/bin
/true
106 use esd ||
export ac_cv_path_ESDCONFIG
=""
107 use scanner ||
export ac_cv_path_sane_devel
="no"
108 config_cache jack jack
/jack.h
109 config_cache cups cups
/cups.h
110 config_cache alsa alsa
/asoundlib.h sys
/asoundlib.h asound
:snd_pcm_open
111 config_cache nas audio
/audiolib.h audio
/soundlib.h
112 config_cache xml libxml
/parser.h libxslt
/pattern.h libxslt
/transform.h
113 config_cache ldap ldap.h lber.h
114 config_cache dbus dbus
/dbus.h
115 config_cache hal hal
/libhal.h
116 config_cache jpeg jpeglib.h
117 config_cache oss sys
/soundcard.h machine
/soundcard.h soundcard.h
118 config_cache lcms lcms.h
122 use amd64
&& multilib_toolchain_setup x86
124 # $(use_enable amd64 win64)
126 --sysconfdir=/etc
/wine \
127 $
(use_with ncurses curses
) \
130 || die
"configure failed"
132 emake
-j1 depend || die
"depend"
133 emake all || die
"all"
137 emake DESTDIR
="${D}" install || die
138 dodoc ANNOUNCE AUTHORS ChangeLog DEVELOPERS-HINTS README
140 insinto
/usr
/share
/wine
/gecko
141 doins
"${DISTDIR}"/wine_gecko-
*.cab || die
146 elog
"~/.wine/config is now deprecated. For configuration either use"
147 elog
"winecfg or regedit HKCU\\Software\\Wine"