# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit games toolchain-funcs DESCRIPTION="2D scrolling shooter, resembles old DOS game of same name" HOMEPAGE="http://geocities.com/fnorddaemon/" SRC_URI="http://geocities.com/fnorddaemon/snipes-1.0.1.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="amd64 x86" IUSE="" DEPEND="virtual/libc >=media-libs/libsdl-1.2.0" src_compile() { # bin2h used by bitms.sh to turn images into a required header file. # Works for me without -lm, even though it uses sin()... $(tc-getCC) \ $(sdl-config --cflags --libs) \ bin2h.c -o bin2h \ || die "compile 1 failed" ./bitms.sh $(tc-getCC) \ $(sdl-config --cflags --libs) \ -lm \ ${CFLAGS} ${LDFLAGS} \ snipes.c -o snipes \ || die "compile 2 failed" } src_install() { dogamesbin snipes || die "dogamesbin failed." doman snipes.6 || die "doman failed." }