blob: 44b0f45add12d00440e253471ab5f70fa9fbb089 (
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
|
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-action/cylindrix/cylindrix-1.0.ebuild,v 1.6 2008/04/08 00:15:28 mr_bones_ Exp $
inherit autotools games
DESCRIPTION="Action game in a tube"
HOMEPAGE="http://www.hardgeus.com/cylindrix/"
SRC_URI="http://www.hardgeus.com/cylindrix/${P}.tar.gz"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~ppc x86"
IUSE=""
DEPEND=">=media-libs/allegro-4.0.3"
S=${WORKDIR}/${PN}
src_unpack() {
unpack ${A}
cd "${S}"
sed -i \
-e "/g_DataPath/s:\./:${GAMES_DATADIR}/${PN}/:" \
sb_stub.c \
|| die "sed failed"
find -name CVS -exec rm -rf '{}' \; >& /dev/null
eautoreconf
}
src_compile() {
egamesconf || die
emake LDADD="$(allegro-config --libs)" || die "emake failed"
}
src_install() {
emake DESTDIR="${D}" install || die "emake failed"
insinto "${GAMES_DATADIR}"/${PN}
doins people.dat cylindrx.fli || die "doins failed"
doins -r wav_data 3d_data gamedata pcx_data || die "doins failed"
dodoc AUTHORS ChangeLog NEWS README
prepgamesdirs
fperms g+w "${GAMES_DATADIR}"/${PN}/gamedata/game.cfg
}
|