1 # Copyright 1999-2018 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 CMAKE_IN_SOURCE_BUILD=1
7 inherit cmake-utils desktop gnome2-utils readme.gentoo-r1
9 DESCRIPTION="Portable reimplementation of engine for the classic Bullfrog game, Syndicate"
10 HOMEPAGE="http://freesynd.sourceforge.net/"
11 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
15 KEYWORDS="~amd64 ~x86"
21 media-libs/libsdl[X,sound,video]
23 media-libs/sdl-mixer[mp3,vorbis]
24 media-libs/sdl-image[png]
28 DOCS=( NEWS README INSTALL AUTHORS )
30 PATCHES=( "${FILESDIR}"/${P}-cmake.patch )
33 You have to set \"data_dir = /my/path/to/synd-data\"
34 in \"~/.${PN}/${PN}.ini\".
38 cmake-utils_src_prepare
41 -e "s:#freesynd_data_dir = /usr/share/freesynd/data:freesynd_data_dir = /usr/share/${PN}/data:" \
47 -DWITH_DEBUG=$(usex debug)
48 -DBUILD_DEV_TOOLS=$(usex devtools)
51 cmake-utils_src_configure
56 use devtools && newbin src/dump ${PN}-dump
57 insinto /usr/share/${PN}
59 newicon -s 128 icon/sword.png ${PN}.png
60 make_desktop_entry ${PN}
62 readme.gentoo_create_doc
66 gnome2_icon_cache_update
68 ewarn "Debug build is not meant for regular playing,"
69 ewarn "game speed is higher."
71 readme.gentoo_print_elog
75 gnome2_icon_cache_update