1 # Copyright 1999-2009 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 [[ ${PV} = 9999* ]] && GIT
="git"
8 EGIT_REPO_URI
="git://repo.or.cz/tuxanci.git"
10 inherit games cmake-utils
${GIT}
12 DESCRIPTION
="Tuxanci is first tux shooter inspired by game Bulanci."
13 HOMEPAGE
="http://www.tuxanci.org/"
14 if [[ ${PV} = 9999* ]]; then
18 SRC_URI
="http://download.${PN}.org/${P}.tar.bz2"
19 KEYWORDS
="~amd64 ~x86"
24 IUSE
="debug dedicated +ipv6 nls opengl physfs +sound"
26 # >=x11-libs/cairo-1.8.8[X,svg]
29 >=media-libs/fontconfig-2.7.0
30 media-libs/libsdl[X,opengl?]
32 >=media-libs/sdl-image-1.2.10[png]
34 >=media-libs/sdl-mixer-1.2.11[vorbis]
37 physfs? ( >=dev-games/physfs-2.0.0[zip] )
38 !physfs? ( >=dev-libs/libzip-0.9 )"
41 nls? ( sys-devel/gettext )"
45 $
(cmake-utils_use_with sound AUDIO
)
46 $
(cmake-utils_use_build dedicated SERVER
)
47 $
(cmake-utils_use_with nls
)
48 $
(cmake-utils_use_with opengl
)
49 $
(cmake-utils_use_with physfs
)
50 $
(cmake-utils_use_enable ipv6
)
51 $
(cmake-utils_use_enable debug
)
55 "-DCMAKE_INSTALL_PREFIX=${GAMES_PREFIX}"
56 "-DCMAKE_INSTALL_ICONDIR=${GAMES_DATADIR_BASE}/pixmaps/"
57 "-DCMAKE_INSTALL_DESKTOPDIR=${GAMES_DATADIR_BASE}/applications/"
58 "-DCMAKE_DATA_PATH=${GAMES_DATADIR}"
59 "-DCMAKE_LOCALE_PATH=${GAMES_DATADIR_BASE}/locale/"
60 "-DCMAKE_DOC_PATH=${GAMES_DATADIR_BASE}/doc/${PF}"
61 "-DCMAKE_CONF_PATH=${GAMES_SYSCONFDIR}"
64 cmake-utils_src_configure
68 cmake-utils_src_install