1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 inherit eutils toolchain-funcs games
8 DESCRIPTION="2D platform game"
9 HOMEPAGE="http://www.mainreactor.net/holotzcastle/en/index_en.html"
10 SRC_URI="http://www.mainreactor.net/holotzcastle/download/${P}-src.tar.gz"
17 RDEPEND="virtual/opengl
29 "${FILESDIR}"/${P}-build.patch \
30 "${FILESDIR}"/${P}-gcc44.patch \
31 "${FILESDIR}"/${P}-underlink.patch
37 emake -C src HC_BASE="${GAMES_DATADIR}"/${PN}/
41 dogamesbin holotz-castle holotz-castle-editor
42 insinto "${GAMES_DATADIR}"/${PN}/game
44 insinto "${GAMES_DATADIR}"/${PN}/editor
45 doins -r HCedHome/res/*
46 newicon res/icon/icon.bmp ${PN}.bmp
47 make_desktop_entry ${PN} "Holotz's Castle" /usr/share/pixmaps/${PN}.bmp
48 make_desktop_entry ${PN}-editor "Holotz's Castle - Editor" \
49 /usr/share/pixmaps/${PN}.bmp