blob: e4a8fe67dfab716f87e2dcd9650cb938b5f71841 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit cmake-utils
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,sound,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() {
local mycmakeargs=(
"-DCMAKE_VERBOSE_MAKEFILE=TRUE"
"-DCMAKE_INSTALL_PREFIX=/usr"
"-DDATA_DIR=/usr/share/slimevolley"
$(use net && echo "-DNO_NET=0" || echo "-DNO_NET=1")
)
cmake-utils_src_configure
}
|