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

(-)Makefile (+42 lines)
Line 0 Link Here
1
# $FreeBSD$
2
3
PORTNAME=	barony
4
DISTVERSIONPREFIX=	v
5
DISTVERSION=	3.1.4
6
CATEGORIES=	games
7
8
MAINTAINER=	devnexen@gmail.com
9
COMMENT=	3D roguelike game
10
11
LICENSE=	GPLv3
12
LICENSE_FILE=	${WRKSRC}/GPL.3.0.txt
13
14
LIB_DEPENDS=	libogg.so:audio/libogg \
15
		libpng.so:graphics/png \
16
		libvorbisfile.so:audio/libvorbis
17
18
USES=		cmake:outsource compiler:c++11-lib openal localbase:ldflags pkgconfig
19
USE_GL=		gl glu
20
USE_GITHUB=	yes
21
GH_ACCOUNT=	TurningWheel
22
GH_PROJECT=	Barony
23
USE_SDL=	sdl2 image2 net2 ttf2
24
25
CMAKE_ON=	OPENAL_ENABLED DATA_DIR
26
CMAKE_ARGS=	-DEDITOR_EXE_NAME:STRING="barony-editor"
27
LDFLAGS+=	-Wl,--as-needed
28
LLD_UNSAFE=	yes # cf. PR 226980
29
30
SUB_FILES=	barony.sh pkg-message
31
32
PLIST_FILES=	bin/barony \
33
		bin/barony-editor \
34
		libexec/barony \
35
		${DATADIR}/lang/en.ttf \
36
		${DATADIR}/lang/en.txt
37
38
post-install:
39
	${MV} ${STAGEDIR}${PREFIX}/bin/barony ${STAGEDIR}${PREFIX}/libexec
40
	${INSTALL_SCRIPT} ${WRKDIR}/barony.sh ${STAGEDIR}${PREFIX}/bin/barony
41
42
.include <bsd.port.mk>
(-)distinfo (+3 lines)
Line 0 Link Here
1
TIMESTAMP = 1524914514
2
SHA256 (TurningWheel-Barony-v3.1.4_GH0.tar.gz) = bcf7522636a2dc21fdda47114f8d9c0eec78ca2c41613e896310e6110fbf04c4
3
SIZE (TurningWheel-Barony-v3.1.4_GH0.tar.gz) = 53299453
(-)files/barony.sh.in (+6 lines)
Line 0 Link Here
1
#!/bin/sh
2
3
# Temporary solution until the next version
4
mkdir -p ~/.barony
5
cd ~/.barony || { echo "Can't cd into ~/.barony" >&2; exit 1; }
6
exec %%PREFIX%%/libexec/barony "$@"
(-)files/pkg-message.in (+19 lines)
Line 0 Link Here
1
Barony requires the original game files from Barony: Blessed Edition
2
(e.g. 3.1.x) to work properly.  These can come from the GOG.com
3
or the Steam versions of the game.
4
5
If using the GOG.com version, you should download the Linux version
6
barony_cursed_edition_en_3_1_4_20342.sh and use the unzip command
7
line to extract the data.
8
9
The files will be in a directory named data/noarch/game.  You can
10
move the contents of this directory to the ${DATADIR}/barony directory
11
for a global install.  You will also need to fix the permissions
12
on the files.
13
14
The easiest way to do this is to follow these steps:
15
16
$ unzip barony_cursed_edition_en_3_1_4_20342.sh
17
$ sudo cp -R data/noarch/game/* %%DATADIR%%/barony
18
$ sudo find %%DATADIR%%/barony -type d ! -perm 755 -exec chmod 755 {} \;
19
(-)pkg-descr (+12 lines)
Line 0 Link Here
1
Barony is a 3D, first-person roguelike.  The goal of the game is
2
to descend to the bottom of a dark dungeon known as the Devil's
3
Bastion and destroy an undead lich named Baron Herx, who terrorized
4
the peaceful town of Hamlet in life and is now harboring a curse
5
against the land from beyond the grave.  To aid you in your quest
6
are friendly humans who have been eeking out a rough life within
7
the dungeon for generations, as well as any friends you can bring
8
with you in real life: Barony is the first of its kind as a
9
first-person roguelike in that it fully supports cooperative
10
multiplayer for up to four players.
11
12
WWW: http://www.baronygame.com/

Return to bug 227353