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.
79 lines
1.6 KiB
79 lines
1.6 KiB
6 years ago
|
# Copyright 1999-2018 Gentoo Foundation
|
||
11 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
|
EAPI=5
|
||
6 years ago
|
inherit eutils cmake-utils gnome2-utils readme.gentoo-r1
|
||
11 years ago
|
|
||
7 years ago
|
DESCRIPTION="A portable reimplementation of engine for the classic Bullfrog game, Syndicate"
|
||
11 years ago
|
HOMEPAGE="http://freesynd.sourceforge.net/"
|
||
|
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
|
||
|
|
||
|
LICENSE="GPL-3"
|
||
|
SLOT="0"
|
||
7 years ago
|
KEYWORDS="~amd64 ~x86"
|
||
11 years ago
|
IUSE="debug devtools"
|
||
|
|
||
6 years ago
|
RDEPEND="
|
||
|
media-libs/libogg
|
||
|
media-libs/libpng:0=
|
||
10 years ago
|
media-libs/libsdl[X,sound,video]
|
||
11 years ago
|
media-libs/libvorbis
|
||
|
media-libs/sdl-mixer[mp3,vorbis]
|
||
6 years ago
|
media-libs/sdl-image[png]
|
||
|
"
|
||
|
DEPEND="${RDEPEND}"
|
||
11 years ago
|
|
||
7 years ago
|
PATCHES=( "${FILESDIR}"/${P}-cmake.patch )
|
||
|
|
||
11 years ago
|
CMAKE_IN_SOURCE_BUILD=1
|
||
|
|
||
6 years ago
|
DOC_CONTENTS="
|
||
|
You have to set \"data_dir = /my/path/to/synd-data\"
|
||
|
in \"~/.${PN}/${PN}.ini\".
|
||
|
"
|
||
|
|
||
11 years ago
|
src_prepare() {
|
||
7 years ago
|
cmake-utils_src_prepare
|
||
11 years ago
|
|
||
|
sed \
|
||
6 years ago
|
-e "s:#freesynd_data_dir = /usr/share/freesynd/data:freesynd_data_dir = /usr/share/${PN}/data:" \
|
||
11 years ago
|
-i ${PN}.ini || die
|
||
|
}
|
||
|
|
||
|
src_configure() {
|
||
|
local mycmakeargs=(
|
||
|
$(cmake-utils_use_with debug DEBUG)
|
||
|
$(cmake-utils_use_build devtools DEV_TOOLS)
|
||
|
)
|
||
|
|
||
|
cmake-utils_src_configure
|
||
|
}
|
||
|
|
||
|
src_install() {
|
||
6 years ago
|
dobin src/${PN}
|
||
|
use devtools && newbin src/dump ${PN}-dump
|
||
|
insinto /usr/share/${PN}
|
||
11 years ago
|
doins -r data
|
||
|
newicon -s 128 icon/sword.png ${PN}.png
|
||
|
make_desktop_entry ${PN}
|
||
|
dodoc NEWS README INSTALL AUTHORS
|
||
6 years ago
|
readme.gentoo_create_doc
|
||
11 years ago
|
}
|
||
|
|
||
|
pkg_preinst() {
|
||
|
gnome2_icon_savelist
|
||
|
}
|
||
|
|
||
|
pkg_postinst() {
|
||
6 years ago
|
gnome2_icon_cache_update
|
||
11 years ago
|
if use debug ; then
|
||
|
ewarn "Debug build is not meant for regular playing,"
|
||
|
ewarn "game speed is higher."
|
||
|
fi
|
||
6 years ago
|
readme.gentoo_print_elog
|
||
11 years ago
|
}
|
||
|
|
||
|
pkg_postrm() {
|
||
|
gnome2_icon_cache_update
|
||
|
}
|