/[gentoo-x86]/games-arcade/tuxpuck/tuxpuck-0.8.2-r1.ebuild
Gentoo

Contents of /games-arcade/tuxpuck/tuxpuck-0.8.2-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Fri Feb 25 22:00:30 2011 UTC (9 years, 5 months ago) by signals
Branch: MAIN
Changes since 1.5: +3 -3 lines
depend virtual/jpeg

(Portage version: 2.2.0_alpha25/cvs/Linux x86_64)

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-arcade/tuxpuck/tuxpuck-0.8.2-r1.ebuild,v 1.5 2010/10/05 09:58:29 tupone Exp $
4
5 EAPI=2
6 inherit eutils games
7
8 DESCRIPTION="Hover hockey"
9 HOMEPAGE="http://home.no.net/munsuun/tuxpuck/"
10 SRC_URI="http://home.no.net/munsuun/tuxpuck/files/${P}.tar.gz"
11
12 LICENSE="GPL-2"
13 SLOT="0"
14 KEYWORDS="alpha amd64 ppc sparc x86 ~x86-fbsd"
15 IUSE=""
16
17 RDEPEND="media-libs/libsdl
18 media-libs/libpng
19 virtual/jpeg
20 media-libs/libvorbis"
21 DEPEND="${RDEPEND}
22 media-libs/freetype:2"
23
24 src_prepare() {
25 unpack ./man/${PN}.6.gz
26 sed -i \
27 -e 's/-Werror//' \
28 -e '/^CC/d' \
29 Makefile \
30 utils/Makefile \
31 data/Makefile \
32 || die "sed failed"
33 epatch "${FILESDIR}"/${P}-ldflags.patch
34 }
35
36 src_compile() {
37 emake -C utils || die
38 # Note that the Makefiles for tuxpuck are buggy so -j1 is used.
39 emake -j1 -C data || die
40 emake || die
41 }
42
43 src_install() {
44 dogamesbin tuxpuck || die "dogamesbin failed"
45 doman man/tuxpuck.6
46 dodoc *.txt
47 doicon data/icons/${PN}.ico
48 make_desktop_entry ${PN} "TuxPuck" /usr/share/pixmaps/${PN}.ico
49 prepgamesdirs
50 }

  ViewVC Help
Powered by ViewVC 1.1.20