View | Details | Raw Unified | Return to bug 257567
Collapse All | Expand All

(-)b/games/brogue/Makefile (+65 lines)
Added Link Here
1
PORTNAME=	brogue
2
DISTVERSIONPREFIX=	v
3
DISTVERSION=	1.10
4
CATEGORIES=	games
5
6
MAINTAINER=	fuz@fuz.su
7
COMMENT=	Much-loved minimalist roguelike game (community edition)
8
9
LICENSE=	AGPLv3+ CC-BY-SA-4.0
10
LICENSE_COMB=	multi
11
LICENSE_FILE_AGPLv3+ = ${WRKSRC}/LICENSE.txt
12
LICENSE_FILE_CC-BY-SA-4.0= ${WRKSRC}/bin/assets/LICENSE.txt
13
14
FLAVORS=	x11 nox11
15
FLAVOR?=	${FLAVORS:[1]}
16
nox11_PKGNAMESUFFIX=	-nox11
17
18
USES=		gmake
19
USE_GITHUB=	yes
20
GH_ACCOUNT=	tmewett
21
GH_PROJECT=	BrogueCE
22
23
.if ${FLAVOR} == x11
24
USES+=		sdl
25
USE_SDL=	sdl2 image2
26
.endif
27
28
MAKE_ARGS=	DATADIR=${DATADIR} \
29
		RELEASE=YES \
30
		GRAPHICS=${${FLAVOR:U} == x11:?YES:NO}
31
ALL_TARGET=	bin/brogue
32
SUB_FILES=	brogue.desktop brogue.sh
33
PLIST_SUB=	DISTVERSION=${DISTVERSION}
34
35
PLIST_FILES=	bin/brogue \
36
		libexec/brogue \
37
		share/applications/brogue.desktop
38
PORTDATA=	assets/LICENSE.txt \
39
		assets/tiles.bin \
40
		assets/icon.png \
41
		assets/tiles.png \
42
		keymap.txt
43
44
OPTIONS_DEFINE=	DEBUG NCURSES WEBUI
45
OPTIONS_DEFAULT=	NCURSES WEBUI
46
DEBUG_MAKE_ARGS=	DEBUG=YES
47
DEBUG_MAKE_ARGS_OFF=	DEBUG=NO
48
NCURSES_USES=		ncurses
49
NCURSES_MAKE_ARGS=	TERMINAL=YES
50
NCURSES_MAKE_ARGS_OFF=	TERMINAL=NO
51
WEBUI_MAKE_ARGS=	WEBUI=YES
52
WEBUI_MAKE_ARGS_OFF=	WEBUI=NO
53
54
post-patch:
55
	${REINPLACE_CMD} -e 's,/opt/brogue,${DATADIR},' ${WRKSRC}/linux/brogue-multiuser.sh
56
57
do-install:
58
	${INSTALL_PROGRAM} ${WRKSRC}/bin/brogue ${STAGEDIR}${PREFIX}/libexec
59
	${INSTALL_SCRIPT} ${WRKDIR}/brogue.sh ${STAGEDIR}${PREFIX}/bin/brogue
60
	${MKDIR} ${STAGEDIR}${DATADIR}
61
	${INSTALL_DATA} ${WRKSRC}/bin/keymap.txt ${STAGEDIR}${DATADIR}
62
	${CP} -r ${WRKSRC}/bin/assets ${STAGEDIR}${DATADIR}
63
	${INSTALL_DATA} ${WRKDIR}/brogue.desktop ${STAGEDIR}${PREFIX}/share/applications
64
65
.include <bsd.port.mk>
(-)b/games/brogue/distinfo (+3 lines)
Added Link Here
1
TIMESTAMP = 1627915047
2
SHA256 (tmewett-BrogueCE-v1.10_GH0.tar.gz) = 31af277940f784a6809ff08a2420b8122b9e15f2bfdf985d7678b69fc12d8e6b
3
SIZE (tmewett-BrogueCE-v1.10_GH0.tar.gz) = 1159270
(-)b/games/brogue/files/brogue.desktop.in (+13 lines)
Added Link Here
1
[Desktop Entry]
2
Version=%%DISTVERSION%%
3
Type=Application
4
Name=Brogue
5
GenericName=Roguelike
6
Comment=Brave the Dungeons of Doom!
7
Comment[de]=Meistere die Dungeons der Verdammnis!
8
Comment[ru]=Бросьте вызов Подземельям Погибели!
9
Exec=%%PREFIX%%/bin/brogue
10
Path=%%DATADIR%%
11
Icon=%%DATADIR%%/assets/icon.png
12
Terminal=false
13
Categories=Game;
(-)b/games/brogue/files/brogue.sh.in (+7 lines)
Added Link Here
1
#!/bin/sh
2
3
set -e
4
userdir="${XDG_DATA_HOME:-$HOME/.local/share}/Brogue"
5
mkdir -p "$userdir"
6
cd "$userdir"
7
exec %%PREFIX%%/libexec/brogue "$@"
(-)b/games/brogue/pkg-descr (-1 / +19 lines)
Added Link Here
0
- 
1
Countless adventurers before you have descended this torch-lit
2
staircase, seeking the promised riches below. As you reach the bottom
3
and step into the wide cavern, the doors behind you seal with a powerful
4
magic...
5
6
    Welcome to the Dungeons of Doom!
7
8
Brogue is a single-player strategy game set in the halls of a mysterious
9
and randomly-generated dungeon. The objective is simple enough --
10
retrieve the fabled Amulet of Yendor from the 26th level -- but the
11
dungeon is riddled with danger. Horrifying creatures and devious,
12
trap-ridden terrain await. Yet it is also riddled with weapons, potions,
13
and artifacts of forgotten power. Survival demands strength and cunning
14
in equal measure as you descend, making the most of what the dungeon
15
gives you. You will make sacrifices, narrow escapes, and maybe even some
16
friends along the way -- but will you be one of the lucky few to return
17
alive?
18
19
WWW: https://sites.google.com/site/broguegame/

Return to bug 257567