blob: edb70fd9caeda5465ee250d809642afae8b5174f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
# Copyright 1999-2000 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author Achim Gottinger <achim@gentoo.org>
# $Header: /var/cvsroot/gentoo-x86/app-emulation/wine/wine-20010418.ebuild,v 1.5 2001/11/10 02:58:38 hallski Exp $
WSV=0.5.1b
S=${WORKDIR}/${P}
DESCRIPTION="Wine is a free implementation of Windows on Unix."
SRC_URI="ftp://metalab.unc.edu/pub/Linux/ALPHA/wine/development/Wine-${PV}.tar.gz
http://twine.codeweavers.com/~mpilka/winesetuptk/winesetuptk-${WSV}.tar.gz"
HOMEPAGE="http://www.winehq.com/
http://wine.codeweavers.com/winesetuptk.shtml"
DEPEND="virtual/glibc
virtual/x11
>=sys-libs/ncurses-5.2
opengl? ( virtual/opengl )"
RDEPEND="${DEPEND}
>=dev-lang/tcl-tk-8.4.2
>=dev-tcltk/itcl-3.2"
src_compile() {
cd ${S}
local myconf
if [ "`use opengl`" ]
then
myconf="--enable-opengl"
else
myconf="--disable-opengl"
fi
try ./configure --prefix=/opt/wine --sysconfdir=/etc/opt/wine \
--host=${CHOST} ${myconf}
try make depend
try make
cd ${WORKDIR}/winesetuptk-${WSV}
./configure --prefix=/opt/wine --with-launcher=/opt/wine/bin \
--with-data=/opt/wine/share/winesetuptk --with-doc=/opt/wine/share/doc/winesetuptk
}
src_install () {
try make prefix=${D}/opt/wine install
insinto /etc/opt/wine
doins ${FILESDIR}/wine.conf
dodoc ANNOUNCE AUTHORS BUGS ChangeLog DEVELOPERS-HINTS LICENSE
dodoc README WARRANTY
cd ${WORKDIR}/winesetuptk-${WSV}
make PREFIX_BIN=${D}/opt/wine/bin \
PREFIX_SRC=${D}/opt/wine/share/winesetuptk \
PREFIX_DOC=${D}/opt/wine/share/doc/winesetuptk \
cw-install install
cd doc ; docinto winesetuptk-${WSV}
dodoc CHANGELOG.TXT LICENSE.TXT README.TXT
cd development_doc ; docinto winesetuptk-${WSV}/development_doc
dodoc CHANGELOG.TXT global_cfg_db_members.txt
dosym ../share/winesetuptk /opt/wine/bin/winesetuptk
insinto /etc/env.d
newins ${FILESDIR}/wine.env 90wine
}
|