summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Sterrett <mr_bones_@gentoo.org>2009-12-09 00:23:36 +0000
committerMichael Sterrett <mr_bones_@gentoo.org>2009-12-09 00:23:36 +0000
commit8bca86e73bdcbf0b67b621d36d935356ebdd9d21 (patch)
treead6047111deaaa93a10aad10bffcbbff4f892d82 /games-arcade
parentPatch for suspend/resume for Audiotrak Prodigy HD2. hfs filesystem buffer ove... (diff)
downloadgentoo-2-8bca86e73bdcbf0b67b621d36d935356ebdd9d21.tar.gz
gentoo-2-8bca86e73bdcbf0b67b621d36d935356ebdd9d21.tar.bz2
gentoo-2-8bca86e73bdcbf0b67b621d36d935356ebdd9d21.zip
EAPI=2; add use-deps for sdl libs; honor CC and LDFLAGS
(Portage version: 2.1.6.13/cvs/Linux i686)
Diffstat (limited to 'games-arcade')
-rw-r--r--games-arcade/rockdodger/ChangeLog8
-rw-r--r--games-arcade/rockdodger/rockdodger-0.6.0a-r1.ebuild23
2 files changed, 18 insertions, 13 deletions
diff --git a/games-arcade/rockdodger/ChangeLog b/games-arcade/rockdodger/ChangeLog
index c073476d7232..2d34359e8f9d 100644
--- a/games-arcade/rockdodger/ChangeLog
+++ b/games-arcade/rockdodger/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for games-arcade/rockdodger
-# Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-arcade/rockdodger/ChangeLog,v 1.11 2008/02/29 18:51:18 carlo Exp $
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-arcade/rockdodger/ChangeLog,v 1.12 2009/12/09 00:23:36 mr_bones_ Exp $
+
+ 09 Dec 2009; Michael Sterrett <mr_bones_@gentoo.org>
+ rockdodger-0.6.0a-r1.ebuild:
+ EAPI=2; add use-deps for sdl libs; honor CC and LDFLAGS
29 Feb 2008; Carsten Lohrke <carlo@gentoo.org>
rockdodger-0.6.0a-r1.ebuild:
diff --git a/games-arcade/rockdodger/rockdodger-0.6.0a-r1.ebuild b/games-arcade/rockdodger/rockdodger-0.6.0a-r1.ebuild
index c265461473e1..af39a7d05566 100644
--- a/games-arcade/rockdodger/rockdodger-0.6.0a-r1.ebuild
+++ b/games-arcade/rockdodger/rockdodger-0.6.0a-r1.ebuild
@@ -1,7 +1,8 @@
-# Copyright 1999-2008 Gentoo Foundation
+# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/games-arcade/rockdodger/rockdodger-0.6.0a-r1.ebuild,v 1.8 2008/02/29 18:51:18 carlo Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-arcade/rockdodger/rockdodger-0.6.0a-r1.ebuild,v 1.9 2009/12/09 00:23:36 mr_bones_ Exp $
+EAPI=2
inherit eutils games
DESCRIPTION="Dodge the rocks for as long as possible until you die"
@@ -13,23 +14,23 @@ SLOT="0"
KEYWORDS="amd64 ppc x86 ~x86-fbsd"
IUSE=""
-DEPEND="media-libs/libsdl
- media-libs/sdl-image
+DEPEND="media-libs/libsdl[audio,video]
+ media-libs/sdl-image[png]
media-libs/sdl-mixer"
-src_unpack() {
- unpack ${A}
- cd "${S}"
-
+src_prepare() {
# Modify highscores & data directory and add our CFLAGS to the Makefile
sed -i \
-e "s:\./data:${GAMES_DATADIR}/${PN}:" \
-e "s:/usr/share/rockdodger/\.highscore:${GAMES_STATEDIR}/rockdodger.scores:" \
-e 's:umask(0111):umask(0117):' main.c \
- || die " sed main.c failed"
+ || die " sed main.c failed"
sed -i \
- -e "s:-g:${CFLAGS}:" Makefile \
- || die "sed Makefile failed"
+ -e "s:-g:${CFLAGS}:" \
+ -e 's:cc:$(CC):' \
+ -e '/-o/s:\$+:$(LDFLAGS) $+:' \
+ Makefile \
+ || die "sed Makefile failed"
# The 512 chunksize makes the music skip
sed -i \