2016-02-20 17:39:17 +00:00
|
|
|
|
# Copyright 2011 Elias Pipping <pipping@exherbo.org>
|
2016-02-16 21:02:06 +00:00
|
|
|
|
# Copyright 2016 Julian Ospald <hasufell@posteo.de>
|
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
|
2016-02-19 13:14:54 +00:00
|
|
|
|
require gtk-icon-cache game
|
2016-02-16 21:02:06 +00:00
|
|
|
|
|
2016-02-19 13:14:54 +00:00
|
|
|
|
MY_PN=stone_soup
|
|
|
|
|
MY_PNV=${MY_PN}-${PV}
|
|
|
|
|
|
|
|
|
|
SUMMARY="Single-player, role-playing roguelike game"
|
2016-02-16 21:04:13 +00:00
|
|
|
|
DESCRIPTION="
|
|
|
|
|
Dungeon Crawl Stone Soup is a free roguelike game of exploration
|
|
|
|
|
and treasure-hunting in dungeons filled with dangerous and
|
|
|
|
|
unfriendly monsters in a quest for the mystifyingly fabulous Orb
|
|
|
|
|
of Zot.
|
|
|
|
|
|
|
|
|
|
Dungeon Crawl Stone Soup has diverse species and many different
|
|
|
|
|
character backgrounds to choose from, deep tactical game-play,
|
|
|
|
|
sophisticated magic, religion and skill systems, and a grand
|
|
|
|
|
variety of monsters to fight and run from, making each game
|
|
|
|
|
unique and challenging.
|
|
|
|
|
|
|
|
|
|
Dungeon Crawl Stone Soup can be played offline, or online on a
|
|
|
|
|
public telnet/ssh server thanks to the good folks at
|
|
|
|
|
crawl.akrasiac.org (CAO) and crawl.develz.org (CDO). These public
|
|
|
|
|
servers allow you to meet other players’ ghosts, watch other people
|
|
|
|
|
playing, and, in general, have a blast!
|
|
|
|
|
"
|
2016-02-16 21:05:09 +00:00
|
|
|
|
HOMEPAGE="https://crawl.develz.org/wordpress/"
|
2016-02-19 13:14:54 +00:00
|
|
|
|
DOWNLOADS="https://crawl.develz.org/release/${MY_PNV}-nodeps.tar.xz"
|
2016-02-16 21:02:06 +00:00
|
|
|
|
|
|
|
|
|
LICENCES="
|
|
|
|
|
GPL-2
|
2016-02-17 01:53:28 +00:00
|
|
|
|
BSD-3 [[ note = [ mt19937ar.cc, MSVC/stdint.h ] ]]
|
2016-02-16 21:02:06 +00:00
|
|
|
|
BSD-2 [[ note = [ all contributions by Steve Noonan and Jesse Luehrs ] ]]
|
|
|
|
|
public-domain [[ note = [ most of tiles ] ]]
|
2016-02-17 01:53:28 +00:00
|
|
|
|
CC0 [[ note = [ most of tiles ] ]]
|
2016-02-16 21:02:06 +00:00
|
|
|
|
MIT [[ note = [ json.cc/json.h, some .js files in
|
|
|
|
|
webserver/static/scripts/contrib/ ] ]]
|
|
|
|
|
"
|
|
|
|
|
SLOT="0"
|
|
|
|
|
PLATFORMS="~amd64 ~x86"
|
|
|
|
|
MYOPTIONS="
|
2016-02-19 13:14:54 +00:00
|
|
|
|
tiles [[ description = [ Do graphical (tiled) build instead of
|
|
|
|
|
ncurses build ] ]]
|
2016-02-16 21:02:06 +00:00
|
|
|
|
"
|
2016-02-20 17:39:17 +00:00
|
|
|
|
RESTRICT="test" # lots of sydbox access violations
|
2016-02-16 21:02:06 +00:00
|
|
|
|
|
|
|
|
|
DEPENDENCIES="
|
2016-02-20 17:39:17 +00:00
|
|
|
|
build:
|
|
|
|
|
dev-lang/perl:*
|
|
|
|
|
sys-devel/bison
|
|
|
|
|
sys-devel/flex
|
|
|
|
|
virtual/pkg-config
|
|
|
|
|
tiles? ( sys-libs/ncurses )
|
2016-02-16 21:02:06 +00:00
|
|
|
|
build+run:
|
|
|
|
|
dev-db/sqlite:3
|
2016-02-20 17:39:17 +00:00
|
|
|
|
dev-lang/lua:5.1
|
2016-02-16 21:02:06 +00:00
|
|
|
|
sys-libs/zlib
|
2016-02-19 13:14:54 +00:00
|
|
|
|
!tiles? ( sys-libs/ncurses )
|
2016-02-16 21:02:06 +00:00
|
|
|
|
tiles? (
|
|
|
|
|
fonts/dejavu
|
|
|
|
|
media-libs/freetype:2
|
|
|
|
|
media-libs/libpng:=
|
|
|
|
|
media-libs/SDL:2[X]
|
|
|
|
|
media-libs/SDL_image:2
|
|
|
|
|
x11-dri/glu
|
|
|
|
|
x11-dri/mesa
|
|
|
|
|
)
|
|
|
|
|
"
|
|
|
|
|
|
2016-02-19 13:14:54 +00:00
|
|
|
|
WORK=${WORKBASE}/${MY_PNV}/source
|
|
|
|
|
|
|
|
|
|
MY_SAVEDIR=/var/lib/games/${MY_PN}
|
2016-02-16 21:02:06 +00:00
|
|
|
|
|
2016-02-20 17:39:17 +00:00
|
|
|
|
# merged upstream: https://github.com/crawl/crawl/pull/237
|
2016-02-16 21:02:06 +00:00
|
|
|
|
DEFAULT_SRC_PREPARE_PATCHES=(
|
2016-02-19 13:14:54 +00:00
|
|
|
|
-p3 "${FILES}"/0001-${PV}-MAKE-use-PKGCONFIG-to-get-ncurses-flags-if-available.patch
|
|
|
|
|
-p3 "${FILES}"/0002-${PV}-MAKE-always-use-PKGCONFIG-instead-of-pkg-config.patch
|
2016-02-20 17:39:17 +00:00
|
|
|
|
-p3 "${FILES}"/0003-${PV}-MAKE-allow-to-skip-automagic-gold-linker-detection.patch
|
2016-02-16 21:02:06 +00:00
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
DEFAULT_SRC_COMPILE_PARAMS=(
|
|
|
|
|
DATADIR="/usr/share/${PN}"
|
2016-02-19 13:14:54 +00:00
|
|
|
|
SAVEDIR=${MY_SAVEDIR}
|
|
|
|
|
DESTDIR="${IMAGE}"
|
|
|
|
|
bin_prefix="${IMAGE}/usr/$(exhost --target)/bin"
|
|
|
|
|
prefix_fp=""
|
2016-02-16 21:02:06 +00:00
|
|
|
|
prefix="/usr"
|
2016-02-19 13:14:54 +00:00
|
|
|
|
|
|
|
|
|
USE_LUAJIT=
|
|
|
|
|
BUILD_ALL=
|
|
|
|
|
NO_TRY_GOLD=y
|
|
|
|
|
V=1
|
|
|
|
|
|
|
|
|
|
INSTALL_UGRP=wizard:games
|
|
|
|
|
MCHMOD=ug+s
|
|
|
|
|
|
|
|
|
|
EXTERNAL_FLAGS="${CXXFLAGS}"
|
|
|
|
|
EXTERNAL_LDFLAGS="${LDFLAGS}"
|
|
|
|
|
|
2016-02-16 21:02:06 +00:00
|
|
|
|
AR="${AR}"
|
|
|
|
|
RANLIB="${RANLIB}"
|
|
|
|
|
CC="${CC}"
|
|
|
|
|
CXX="${CXX}"
|
|
|
|
|
PKGCONFIG="${PKG_CONFIG}"
|
2016-02-19 13:14:54 +00:00
|
|
|
|
STRIP=echo
|
2016-02-16 21:02:06 +00:00
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
src_compile() {
|
2016-02-19 13:14:54 +00:00
|
|
|
|
export HOSTCXX=${CXX} GXX=${CXX}
|
2016-02-16 21:02:06 +00:00
|
|
|
|
|
2016-02-19 13:14:54 +00:00
|
|
|
|
emake "${DEFAULT_SRC_COMPILE_PARAMS[@]}" \
|
|
|
|
|
$(option tiles "TILES=y" "")
|
2016-02-16 21:02:06 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
|
emake "${DEFAULT_SRC_COMPILE_PARAMS[@]}" \
|
|
|
|
|
$(option tiles "TILES=y" "") \
|
|
|
|
|
install
|
|
|
|
|
|
2016-02-19 13:14:54 +00:00
|
|
|
|
keepdir ${MY_SAVEDIR}/morgue
|
|
|
|
|
keepdir ${MY_SAVEDIR}/saves/db
|
|
|
|
|
preserve_scores "${IMAGE}"${MY_SAVEDIR}
|
|
|
|
|
|
|
|
|
|
dovarlibgames -R
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
pkg_preinst() {
|
|
|
|
|
game_pkg_preinst
|
|
|
|
|
gtk-icon-cache_pkg_preinst
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
pkg_postinst() {
|
|
|
|
|
game_pkg_postinst
|
|
|
|
|
gtk-icon-cache_pkg_postinst
|
2016-02-16 21:02:06 +00:00
|
|
|
|
}
|
|
|
|
|
|