summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'games-arcade/tuxanci/tuxanci-0.18_rc1.ebuild')
-rw-r--r--games-arcade/tuxanci/tuxanci-0.18_rc1.ebuild25
1 files changed, 21 insertions, 4 deletions
diff --git a/games-arcade/tuxanci/tuxanci-0.18_rc1.ebuild b/games-arcade/tuxanci/tuxanci-0.18_rc1.ebuild
index a77336ae5..30845d077 100644
--- a/games-arcade/tuxanci/tuxanci-0.18_rc1.ebuild
+++ b/games-arcade/tuxanci/tuxanci-0.18_rc1.ebuild
@@ -2,7 +2,7 @@
# Distributed under the terms of the GNU General Public License v2
# $Header: $
-inherit games
+inherit eutils games
MY_P=${P/_/}
@@ -10,17 +10,34 @@ DESCRIPTION="First Cushion Shooter! A remake of well-known Czech game Bulanci."
SRC_URI="http://tuxanci.tuxportal.cz/releases/${MY_P}.tar.bz2"
HOMEPAGE="http://tuxanci.tuxportal.cz"
-KEYWORDS="~x86 ~x86-fbsd"
+KEYWORDS="~amd64 ~x86 ~x86-fbsd"
LICENSE="GPL-2"
SLOT="0"
-DEPEND="media-libs/libsdl
+DEPEND=">=media-libs/libsdl-1.2.7
media-libs/sdl-ttf
media-libs/sdl-image
- media-libs/sdl-mixer"
+ media-libs/sdl-mixer
+ media-libs/sdl-net
+ media-libs/sdl-ttf"
RDEPEND="${DEPEND}"
S="${WORKDIR}/${MY_P}"
+GAMES_USE_SDL="noaudio"
+
+pkg_setup() {
+ games_pkg_setup
+
+ if ! built_with_use media-libs/sdl-image png ; then
+ eerror "media-libs/sdl-image is missing png support."
+ die "Recompile media-libs/sdl-image with USE=\"png\""
+ fi
+
+ if ! built_with_use media-libs/sdl-mixer vorbis ; then
+ eerror "media-libs/sdl-mixer is missing png support."
+ die "Recompile media-libs/sdl-mixer with USE=\"vorbis\""
+ fi
+}
src_install() {
emake DESTDIR="${D}" install || die "Installation failed."