forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
formido-1.0.1.ebuild
47 lines (40 loc) · 1.09 KB
/
formido-1.0.1.ebuild
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
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
inherit eutils toolchain-funcs games
DESCRIPTION="A shooting game in the spirit of Phobia games"
HOMEPAGE="http://www.mhgames.org/oldies/formido/"
SRC_URI="http://noe.falzon.free.fr/prog/${P}.tar.gz
http://koti.mbnet.fi/lsoft/formido/formido-music.tar.bz2"
LICENSE="GPL-2"
SLOT=0
KEYWORDS="amd64 ppc x86"
IUSE=""
DEPEND="media-libs/libsdl[sound,video]
media-libs/sdl-image
media-libs/sdl-mixer"
RDEPEND=${DEPEND}
src_unpack() {
unpack ${P}.tar.gz
cd "${S}"/data
unpack ${PN}-music.tar.bz2
}
src_prepare() {
sed -i \
-e "s:g++:$(tc-getCXX):" \
-e "/^FLAGS=/s:$: ${CXXFLAGS}:" \
-e "/^LINKFLAGS=/s:=.*:=${LDFLAGS}:" \
-e "s:\${DATDIR}:${GAMES_DATADIR}/${PN}/data:" \
-e "s:\${DEFCONFIGDIR}:${GAMES_DATADIR}/${PN}:" \
Makefile || die
}
src_install() {
dogamesbin ${PN}
insinto "${GAMES_DATADIR}"/${PN}
doins -r ${PN}.cfg data
newicon data/icon.dat ${PN}.bmp
make_desktop_entry ${PN} Formido /usr/share/pixmaps/${PN}.bmp
dodoc README README-1.0.1
prepgamesdirs
}