summaryrefslogtreecommitdiff
blob: 39db56b4eb119a36646a34d603e3b005a8f8fcaf (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
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-arcade/xgalaga/xgalaga-2.0.34-r4.ebuild,v 1.5 2004/02/22 16:46:14 brad_mssw Exp $

inherit eutils

DESCRIPTION="Galaga game clone."
HOMEPAGE="http://rumsey.org/xgal.html"
SRC_URI="http://http.us.debian.org/debian/pool/main/x/${PN}/${PN}_${PV}.orig.tar.gz
	http://http.us.debian.org/debian/pool/main/x/${PN}/${PN}_${PV}-27.diff.gz"

KEYWORDS="x86 ppc alpha ~sparc amd64"
LICENSE="GPL-2"
SLOT="0"
IUSE=""

DEPEND="virtual/x11"

src_unpack() {
	unpack ${A} && cd "${S}"
	epatch "${WORKDIR}/${PN}_${PV}-27.diff"
}

src_compile() {
	econf --prefix=/usr/share/xgalaga --bindir=/usr/bin
	emake CPPFLAGS="-D__NO_STRING_INLINES" || die "compile problem"
}

src_install () {
	dobin xgalaga
	dodoc README README.SOUND CHANGES INSTALL

	insinto /usr/share/xgalaga/sounds
	doins sounds/*.raw

	insinto /usr/share/xgalaga/levels
	doins levels/*.xgl

	exeinto /usr/share/xgalaga
	doexe xgal.sndsrv.linux

	touch "${D}/usr/share/xgalaga/scores"
	fperms 660 /usr/share/xgalaga/scores
	fowners games:games /usr/share/xgalaga/scores
}