summaryrefslogtreecommitdiff
blob: b1b79d8934f62690df6fb866bf10681f0a12ef75 (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
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-rpg/tmw/tmw-0.0.16-r1.ebuild,v 1.1 2005/10/02 08:29:59 vapier Exp $

inherit eutils games

DESCRIPTION="A fully free and open source MMORPG game with the looks of \"old-fashioned\" 2D RPG"
HOMEPAGE="http://themanaworld.org/"
SRC_URI="mirror://sourceforge/themanaworld/${P}.tar.gz
	mirror://gentoo/tmw-Magick-Real.ogg"
#	http://riekale.com/~rotonen/tmw/data/music/Magick%20-%20Real.ogg"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="opengl"

DEPEND=">=dev-games/physfs-1.0.0
	opengl? ( virtual/opengl )
	dev-libs/libxml2
	media-libs/sdl-mixer
	media-libs/sdl-image
	net-misc/curl
	>=dev-games/guichan-0.4.0"

pkg_setup() {
	if ! built_with_use dev-games/guichan sdl ; then
		eerror "dev-games/guichan needs to be built with USE=sdl"
		die "please re-emerge guichan with USE=sdl"
	fi
	games_pkg_setup
}

src_unpack() {
	unpack ${P}.tar.gz
	cp "${DISTDIR}"/tmw-Magick-Real.ogg . || die
	cd "${S}"
	epatch "${FILESDIR}"/${PN}-0.0.12-desktop.patch
}

src_compile() {
	egamesconf $(use_with opengl) || die
	emake || die
}

src_install() {
	make DESTDIR="${D}" install || die "install failed"
	insinto "${GAMES_DATADIR}"/${PN}/data/music
	newins "${WORKDIR}"/tmw-Magick-Real.ogg "Magick - Real.ogg" || die
	dodoc AUTHORS ChangeLog NEWS README TODO
	prepgamesdirs
}