/[gentoo-x86]/games-action/transcend/transcend-0.3.ebuild
Gentoo

Contents of /games-action/transcend/transcend-0.3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Tue Apr 26 07:11:54 2011 UTC (2 years ago) by mr_bones_
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +2 -3 lines
tidy

(Portage version: 2.1.9.42/cvs/Linux i686)

1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/games-action/transcend/transcend-0.3.ebuild,v 1.6 2011/04/26 07:08:48 tupone Exp $
4
5 EAPI=2
6 inherit games
7
8 DESCRIPTION="retro-style, abstract, 2D shooter"
9 HOMEPAGE="http://transcend.sourceforge.net/"
10 SRC_URI="mirror://sourceforge/${PN}/Transcend_${PV}_UnixSource.tar.gz"
11
12 LICENSE="GPL-2"
13 SLOT="0"
14 KEYWORDS="~amd64 ~ppc x86"
15 IUSE=""
16
17 DEPEND="x11-libs/libXmu
18 x11-libs/libXi
19 virtual/opengl
20 virtual/glu
21 media-libs/freeglut"
22
23 S=${WORKDIR}/Transcend_${PV}_UnixSource/Transcend
24
25 src_prepare() {
26 chmod a+x portaudio/configure
27 mkdir portaudio/{lib,bin}
28 rm -f game/Makefile
29 cat \
30 Makefile.GnuLinuxX86 \
31 Makefile.common \
32 Makefile.minorGems \
33 game/Makefile.all \
34 Makefile.minorGems_targets \
35 > game/Makefile
36 sed -i \
37 -e "s:\"levels\":\"${GAMES_DATADIR}/${PN}/levels\":" \
38 game/LevelDirectoryManager.cpp \
39 game/game.cpp \
40 || die "sed failed"
41 }
42
43 src_configure() {
44 cd portaudio
45 egamesconf || die
46 }
47
48 src_compile() {
49 cd portaudio
50 emake
51 cd ../game
52 emake || die
53 cd ..
54 cp game/Transcend ${PN} || die "cp failed"
55 }
56
57 src_install() {
58 dogamesbin ${PN} || die "dogamesbin failed"
59 insinto "${GAMES_DATADIR}/${PN}"
60 doins -r levels/ || die "doins failed"
61 dodoc doc/how_to_*.txt
62 prepgamesdirs
63 }

  ViewVC Help
Powered by ViewVC 1.1.13