blob: 919e55b0d64c692e688534e4cc5a5c5540eb733a (
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
|
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
inherit eutils toolchain-funcs games
DESCRIPTION="a game like Deflektor (C 64) or Mindbender (Amiga)"
HOMEPAGE="http://www.artsoft.org/mirrormagic/"
SRC_URI="http://www.artsoft.org/RELEASES/unix/${PN}/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ppc x86"
IUSE="sdl"
RDEPEND="!sdl? ( x11-libs/libX11 )
sdl? (
media-libs/libsdl[video]
media-libs/sdl-mixer
media-libs/sdl-image
)"
DEPEND="${RDEPEND}
!sdl? ( x11-libs/libXt )"
src_prepare() {
epatch \
"${FILESDIR}"/${P}-gcc41.patch \
"${FILESDIR}"/${P}-parallel.patch \
"${FILESDIR}"/${P}-64bit.patch
rm -f ${PN}
}
src_compile() {
emake \
-C src \
CC="$(tc-getCC)" \
AR="$(tc-getAR)" \
RANLIB="$(tc-getRANLIB)" \
OPTIONS="${CFLAGS}" \
EXTRA_LDFLAGS="${LDFLAGS}" \
RO_GAME_DIR="${GAMES_DATADIR}"/${PN} \
RW_GAME_DIR="${GAMES_STATEDIR}"/${PN} \
TARGET=$(use sdl && echo sdl || echo x11)
}
src_install() {
dogamesbin ${PN}
insinto "${GAMES_DATADIR}"/${PN}
doins -r graphics levels music sounds
doicon "${FILESDIR}"/${PN}.xpm
make_desktop_entry ${PN} "Mirror Magic II"
dodoc CHANGES CREDITS README TODO
prepgamesdirs
}
|