/[gentoo-x86]/games-puzzle/mirrormagic/mirrormagic-2.0.2-r1.ebuild
Gentoo

Contents of /games-puzzle/mirrormagic/mirrormagic-2.0.2-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Sun Feb 22 20:45:33 2015 UTC (3 years, 1 month ago) by tupone
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +6 -7 lines
EAPI 5

(Portage version: 2.2.14/cvs/Linux x86_64, signed Manifest commit with key 0145142D)

1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/games-puzzle/mirrormagic/mirrormagic-2.0.2-r1.ebuild,v 1.5 2012/09/28 12:36:15 ago Exp $
4
5 EAPI=5
6 inherit eutils toolchain-funcs games
7
8 DESCRIPTION="a game like Deflektor (C 64) or Mindbender (Amiga)"
9 HOMEPAGE="http://www.artsoft.org/mirrormagic/"
10 SRC_URI="http://www.artsoft.org/RELEASES/unix/${PN}/${P}.tar.gz"
11
12 LICENSE="GPL-2"
13 SLOT="0"
14 KEYWORDS="amd64 ppc x86"
15 IUSE="sdl"
16
17 RDEPEND="!sdl? ( x11-libs/libX11 )
18 sdl? (
19 media-libs/libsdl[video]
20 media-libs/sdl-mixer
21 media-libs/sdl-image
22 )"
23 DEPEND="${RDEPEND}
24 !sdl? ( x11-libs/libXt )"
25
26 src_prepare() {
27 epatch \
28 "${FILESDIR}"/${P}-gcc41.patch \
29 "${FILESDIR}"/${P}-parallel.patch \
30 "${FILESDIR}"/${P}-64bit.patch
31 rm -f ${PN}
32 }
33
34 src_compile() {
35 emake \
36 -C src \
37 CC="$(tc-getCC)" \
38 AR="$(tc-getAR)" \
39 RANLIB="$(tc-getRANLIB)" \
40 OPTIONS="${CFLAGS}" \
41 EXTRA_LDFLAGS="${LDFLAGS}" \
42 RO_GAME_DIR="${GAMES_DATADIR}"/${PN} \
43 RW_GAME_DIR="${GAMES_STATEDIR}"/${PN} \
44 TARGET=$(use sdl && echo sdl || echo x11)
45 }
46
47 src_install() {
48 dogamesbin ${PN}
49 insinto "${GAMES_DATADIR}"/${PN}
50 doins -r graphics levels music sounds
51 doicon "${FILESDIR}"/${PN}.xpm
52 make_desktop_entry ${PN} "Mirror Magic II"
53 dodoc CHANGES CREDITS README TODO
54 prepgamesdirs
55 }

  ViewVC Help
Powered by ViewVC 1.1.20