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.
75 lines
1.5 KiB
75 lines
1.5 KiB
3 years ago
|
# Copyright 1999-2021 Gentoo Authors
|
||
11 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
3 years ago
|
EAPI=7
|
||
11 years ago
|
|
||
6 years ago
|
CMAKE_IN_SOURCE_BUILD=1
|
||
3 years ago
|
inherit cmake desktop xdg-utils readme.gentoo-r1
|
||
6 years ago
|
|
||
3 years ago
|
DESCRIPTION="Portable engine reimplementation for the classic Bullfrog game Syndicate"
|
||
|
HOMEPAGE="https://freesynd.sourceforge.io/"
|
||
11 years ago
|
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
|
|
||
6 years ago
|
DOCS=( NEWS README INSTALL AUTHORS )
|
||
7 years ago
|
|
||
6 years ago
|
PATCHES=( "${FILESDIR}"/${P}-cmake.patch )
|
||
11 years ago
|
|
||
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() {
|
||
3 years ago
|
cmake_src_prepare
|
||
11 years ago
|
|
||
3 years ago
|
sed -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=(
|
||
6 years ago
|
-DWITH_DEBUG=$(usex debug)
|
||
|
-DBUILD_DEV_TOOLS=$(usex devtools)
|
||
11 years ago
|
)
|
||
3 years ago
|
cmake_src_configure
|
||
11 years ago
|
}
|
||
|
|
||
|
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}
|
||
6 years ago
|
einstalldocs
|
||
6 years ago
|
readme.gentoo_create_doc
|
||
11 years ago
|
}
|
||
|
|
||
|
pkg_postinst() {
|
||
3 years ago
|
xdg_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() {
|
||
3 years ago
|
xdg_icon_cache_update
|
||
11 years ago
|
}
|