blob: 0385713643bd932a4245fcb5a1239a10c187c8de (
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
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-rpg/daimonin-client/daimonin-client-0.96.6_beta3.ebuild,v 1.3 2005/05/09 00:52:31 mr_bones_ Exp $
inherit eutils flag-o-matic games
MY_PV=${PV/_beta*}
MY_PV=${MY_PV//.}
DESCRIPTION="MMORPG with 2D isometric tiles grafik, true color and alpha blending effects"
HOMEPAGE="http://daimonin.sourceforge.net/"
SRC_URI="mirror://sourceforge/daimonin/daimonin_client-BETA3-${MY_PV}.tgz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE="X"
DEPEND="media-libs/libsdl
media-libs/sdl-mixer
media-libs/sdl-image
X? ( virtual/x11 )"
S=${WORKDIR}/daimonin/client
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}/${PV}-gentoo-paths.patch"
chmod a+x make/linux/configure
}
src_compile() {
append-flags \
-DGENTOO_DATADIR="'\"${GAMES_DATADIR}/${PN}\"'" \
-DGENTOO_STATEDIR="'\"${GAMES_STATEDIR}/${PN}\"'"
cd make/linux
egamesconf || die
emake || die "emake failed"
}
src_install() {
dogamesbin src/daimonin || die "dogamesbin failed"
dodir "${GAMES_DATADIR}/${PN}" "${GAMES_STATEDIR}/${PN}"
cp -r bitmaps icons media sfx "${D}/${GAMES_DATADIR}/${PN}/" \
|| die "cp failed"
cp -r cache gfx_user srv_files "${D}/${GAMES_STATEDIR}/${PN}/" \
|| die "cp failed"
insinto "${GAMES_STATEDIR}/${PN}"
doins *.{dat,p0} || die "doins failed"
prepgamesdirs
find "${D}/${GAMES_STATEDIR}/${PN}/" -type d -print0 | xargs -0 \
chmod g+w
}
|