blob: 35b3f0724bccac634c90697fc5b9b68d8f793a07 (
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
|
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-emulation/nwwine/nwwine-20030911.ebuild,v 1.1 2004/03/04 09:58:18 vapier Exp $
inherit eutils
DESCRIPTION="A special version of wine for the Never Winter Nights toolkit"
HOMEPAGE="http://www.winehq.com/ http://republika.pl/nwnlinux/"
SRC_URI="mirror://gentoo/nwwine-20030618-misc.tar.bz2
ftp://128.173.184.249/Linux/nwwine/nwwine-based-on-${PV}.tar.gz
mirror://gentoo/nwwine-20030618-fake_windows.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="-* x86"
IUSE="nas arts cups opengl alsa tcltk"
S=${WORKDIR}/nwwine-based-on-${PV}
DEPEND="sys-devel/gcc
sys-devel/flex
dev-util/yacc
>=sys-apps/sed-4
>=sys-libs/ncurses-5.2
>=media-libs/freetype-2.0.0
X? ( virtual/x11 )
tcltk? ( dev-lang/tcl dev-lang/tk )
arts? ( kde-base/arts )
alsa? ( media-libs/alsa-lib )
nas? ( media-libs/nas )
cups? ( net-print/cups )
opengl? ( virtual/opengl )"
RDEPEND=""
src_unpack() {
unpack ${A}
cd ${S}
sed -i '/^wine /s:wine:/usr/lib/nwwine/bin/wine:' nwwine.sh
epatch ${FILESDIR}/winearts-kdecvs-fix.patch
epatch ${FILESDIR}/wine-alsa.patch
}
src_compile() {
# use the default setting in ./configure over the /etc/make.conf setting
env -u CFLAGS -u CXXFLAGS \
./configure \
--prefix=/usr/lib/${PN} \
--sysconfdir=/etc/${PN} \
--host=${CHOST} \
--enable-curses \
`use_enable opengl` \
`use_enable debug trace` \
`use_enable debug` \
${myconf} \
|| die "configure failed"
# No parallel make
emake -j1 depend all || die "make depend all failed"
cd programs && emake || die "emake failed"
}
src_install () {
local WINEMAKEOPTS="prefix=${D}/usr/lib/${PN}"
### Install wine to ${D}
cd ${S}
make ${WINEMAKEOPTS} install || die
cd ${S}/programs
make ${WINEMAKEOPTS} install || die
# Needed for later installation
dodir /usr/bin
### Creation of /usr/lib/${PN}/.data
# set up fake_windows
dodir /usr/lib/${PN}/.data
cd ${D}/usr/lib/nwwine/.data
cp -r ${WORKDIR}/fake_windows .
# copy config
cp ${WORKDIR}/config .
# put winedefault.reg into .data
cp ${S}/winedefault.reg .
# move wrappers to bin/
cd ${WORKDIR}
insinto /usr/bin
dobin regedit-nwwine nwwine
rm regedit-nwwine nwwine
# set up this dynamic data
cd ${S}
insinto /usr/lib/${PN}/.data/fake_windows/Windows
doins documentation/samples/system.ini
doins documentation/samples/generic.ppd
## Setup of .data complete
### Misc tasks
# take care of the documentation
cd ${S}
dodoc ANNOUNCE AUTHORS BUGS ChangeLog DEVELOPERS-HINTS LICENSE README
# manpage setup
mv ${D}/usr/lib/${PN}/man/man1/wine.1 ${D}/usr/lib/${PN}/man/man1/${PN}.1
doman ${D}/usr/lib/${PN}/man/man1/${PN}.1
rm ${D}/usr/lib/${PN}/man/man1/${PN}.1
# remove the executable flag from those libraries.
cd ${D}/usr/lib/${PN}/lib/wine
chmod a-x *.so
}
pkg_postinst() {
einfo "Use /usr/bin/nwwine to start wine. This is a wrapper-script"
einfo "which will take care of everything else."
einfo ""
einfo "Use /usr/bin/regedit-nwwine to import registry files into the"
einfo "wine registry."
einfo ""
einfo "If you have bugs, enhancements or patches"
einfo "report a bug and assign it to wine@gentoo.org"
}
|