You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/games-arcade/slimevolley/slimevolley-2.4.2.ebuild

49 lines
1.1 KiB

# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-arcade/slimevolley/slimevolley-2.4.2.ebuild,v 1.4 2011/06/20 18:45:53 tupone Exp $
EAPI=2
inherit cmake-utils eutils games
DESCRIPTION="A simple volleyball game"
HOMEPAGE="http://slime.tuxfamily.org/index.php"
SRC_URI="http://downloads.tuxfamily.org/slime/v242/${PN}_${PV}.tar.bz2"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE="net"
RDEPEND="media-libs/libsdl[X,audio,video]
media-libs/sdl-ttf
media-libs/sdl-image[png]
net? ( media-libs/sdl-net )
virtual/libintl"
DEPEND="${RDEPEND}
sys-devel/gettext"
DOCS="docs/README docs/TODO"
PATCHES=( "${FILESDIR}"/${P}-nodatalocal.patch
"${FILESDIR}"/${P}-underlink.patch )
S=${WORKDIR}/${PN}
src_configure() {
mycmakeargs=(
"-DCMAKE_VERBOSE_MAKEFILE=TRUE"
"-DBIN_DIR=${GAMES_BINDIR}"
$(use net && echo "-DNO_NET=0" || echo "-DNO_NET=1")
)
cmake-utils_src_configure
}
src_compile() {
cmake-utils_src_compile
}
src_install() {
cmake-utils_src_install
prepgamesdirs
}