blob: ec1afca9a2c6c387148d41b7fe930a929d8598f8 (
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
|
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-arcade/smc/smc-1.5.ebuild,v 1.4 2008/06/25 18:51:29 nixnut Exp $
inherit eutils games
MUSIC_P=SMC_music_4.0_high
DESCRIPTION="Secret Maryo Chronicles"
HOMEPAGE="http://www.secretmaryo.org/"
SRC_URI="mirror://sourceforge/smclone/${P}.tar.bz2
mirror://sourceforge/smclone/${MUSIC_P}.zip"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="amd64 ppc x86"
IUSE=""
RDEPEND="dev-games/cegui
dev-libs/boost
virtual/opengl
virtual/glu
media-libs/libpng
media-libs/libsdl
media-libs/sdl-image
media-libs/sdl-mixer
media-libs/sdl-ttf"
DEPEND="${RDEPEND}
dev-util/pkgconfig
app-arch/unzip"
pkg_setup() {
games_pkg_setup
if ! built_with_use media-libs/sdl-image png ; then
die "Please emerge sdl-image with USE=png"
fi
if ! built_with_use dev-games/cegui opengl ; then
die "Please emerge cegui with USE=opengl"
fi
if ! built_with_use dev-games/cegui devil ; then
die "Please emerge cegui with USE=devil"
fi
if ! built_with_use dev-libs/libpcre unicode ; then
die "Please emerge dev-libs/libpcre with USE=unicode"
fi
}
src_unpack() {
unpack ${P}.tar.bz2
cd "${S}"
unpack ${MUSIC_P}.zip
}
src_install() {
emake DESTDIR="${D}" install || die "emake install failed"
newicon data/icon/window_32.png smc.png
make_desktop_entry ${PN} "Secret Maryo Chronicles"
doman makefiles/unix/man/smc.6
dodoc docs/*.txt
dohtml docs/{*.css,*.html}
prepgamesdirs
}
|