Import games/arx-libertatis, a cross-platform port of Arx Fatalis, a

first-person RPG.
Submission from Thomas Frohwein (thfr), who takes MAINTAINER, thanks!
ok sthen@

Arx Libertatis is a cross-platform, open source port of Arx Fatalis, a                                        
2002 first-person role-playing game and dungeon crawler developed by                                          
Arkane Studios.

Arx Fatalis (Latin for "fatal fortress") is set on a world whose sun has                                      
failed, forcing the above-ground creatures to take refuge in                                                  
subterranean caverns. The action in Arx Fatalis takes place in one of                                         
these large caves, where inhabitants from all races such as Trolls,                                           
Goblins, Dwarves, Humans, etc. have made their homes on various levels                                        
of the cave. The player awakens inside a prison cell and, after making                                        
his escape, eventually discovers his mission is to subvert and imprison                                       
the God of Destruction, Akbaa, who is trying to manifest itself in Arx.
This commit is contained in:
bcallah 2018-05-06 15:15:00 +00:00
parent f10bd6a863
commit 16dddfd6cb
7 changed files with 139 additions and 0 deletions

View File

@ -0,0 +1,54 @@
# $OpenBSD: Makefile,v 1.1.1.1 2018/05/06 15:15:00 bcallah Exp $
COMMENT = cross-platform port of Arx Fatalis, a first-person RPG
CATEGORIES = games
MAINTAINER = Thomas Frohwein <frohwein@ymail.com>
GH_ACCOUNT = arx
GH_PROJECT = ArxLibertatis
GH_TAGNAME = 1.1.2-r1
PKGNAME = arx-libertatis-${GH_TAGNAME:S/-r/pl/}
# GPLv3+, fonts are SIL OFL 1.1 license
PERMIT_PACKAGE_CDROM = Yes
WANTLIB += ${COMPILER_LIBCXX} GL GLEW SDL c freetype m openal
WANTLIB += z
# C++11
COMPILER = base-clang ports-gcc ports-clang
MODULES = devel/cmake
LIB_DEPENDS = audio/openal \
devel/sdl \
graphics/glew
RUN_DEPENDS = devel/desktop-file-utils
CONFIGURE_ARGS = -DCMAKE_EXE_LINKER_FLAGS="-lpthread" \
-DBUILD_CRASHREPORTER=OFF \
-DCMAKE_INSTALL_PREFIX=${LOCALBASE}/share/arx \
-DUSE_QT4=OFF \
-DUSE_QT5=OFF
NO_TEST = Yes
do-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/arx
${INSTALL_DATA_DIR} ${PREFIX}/share/applications
${INSTALL_DATA_DIR} ${PREFIX}/share/pixmaps
${INSTALL_DATA} ${WRKSRC}/data/icons/arx-libertatis.desktop \
${PREFIX}/share/applications
${INSTALL_DATA} ${WRKSRC}/data/icons/arx-libertatis.png \
${PREFIX}/share/pixmaps
${INSTALL_MAN} ${WRKSRC}/data/man/{arxsavetool.1,arxunpak.1} \
${PREFIX}/man/man1
${INSTALL_MAN} ${WRKSRC}/data/man/arx.6 ${PREFIX}/man/man6
${INSTALL_PROGRAM} ${WRKBUILD}/{arxsavetool,arxunpak} ${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKBUILD}/arx ${PREFIX}/share/arx
${INSTALL_SCRIPT} ${WRKSRC}/scripts/arx-install-data ${PREFIX}/bin
${SUBST_CMD} -c -m 755 ${FILESDIR}/arx ${PREFIX}/bin/arx
.include <bsd.port.mk>

View File

@ -0,0 +1,2 @@
SHA256 (ArxLibertatis-1.1.2-r1.tar.gz) = mFv5eVuLpo9s71XJswivyby9lZCKEjOWsT7Yi7akCWc=
SIZE (ArxLibertatis-1.1.2-r1.tar.gz) = 1289821

View File

@ -0,0 +1,7 @@
#!/bin/sh
# create config directory if it doesn't exist yet
mkdir -p ~/.config/arx
exec ${TRUEPREFIX}/share/arx/arx --data-dir=${TRUEPREFIX}/share/games/arx \
--user-dir=~/.local/share/arx --config-dir=~/.config/arx $@

View File

@ -0,0 +1,24 @@
$OpenBSD: patch-src_core_Version_cpp_in,v 1.1.1.1 2018/05/06 15:15:00 bcallah Exp $
Remove blocks with uninitialized, and apparently otherwise unused variables
const int tbg_version_id is needed during compilation, will try to set to 0
Index: src/core/Version.cpp.in
--- src/core/Version.cpp.in.orig
+++ src/core/Version.cpp.in
@@ -25,14 +25,10 @@
* For available variables see cmake/VersionString.cmake.
*/
-#if ${VERSION_COUNT} != 4 && ${VERSION_COUNT} != 5
-#error "Configure error - the VERSION file should specify three or five non-empty lines!"
-#endif
-
const std::string arx_version = "${VERSION_0}${GIT_SUFFIX_5}";
const std::string arx_release_codename = "${VERSION_4}";
// TODO move this to an external file once we ship our own resources
const std::string arx_credits = "${AUTHORS}";
-const int tbg_version_id = ${VERSION_2};
+const int tbg_version_id = 0;

View File

@ -0,0 +1,12 @@
Arx Libertatis is a cross-platform, open source port of Arx Fatalis, a
2002 first-person role-playing game and dungeon crawler developed by
Arkane Studios.
Arx Fatalis (Latin for "fatal fortress") is set on a world whose sun has
failed, forcing the above-ground creatures to take refuge in
subterranean caverns. The action in Arx Fatalis takes place in one of
these large caves, where inhabitants from all races such as Trolls,
Goblins, Dwarves, Humans, etc. have made their homes on various levels
of the cave. The player awakens inside a prison cell and, after making
his escape, eventually discovers his mission is to subvert and imprison
the God of Destruction, Akbaa, who is trying to manifest itself in Arx.

View File

@ -0,0 +1,16 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2018/05/06 15:15:00 bcallah Exp $
bin/arx
bin/arx-install-data
@bin bin/arxsavetool
@bin bin/arxunpak
@man man/man1/arxsavetool.1
@man man/man1/arxunpak.1
@man man/man6/arx.6
share/applications/arx-libertatis.desktop
share/arx/
@bin share/arx/arx
share/doc/pkg-readmes/${FULLPKGNAME}
share/pixmaps/
share/pixmaps/arx-libertatis.png
@exec %D/bin/update-desktop-database
@unexec-delete %D/bin/update-desktop-database

View File

@ -0,0 +1,24 @@
$OpenBSD: README,v 1.1.1.1 2018/05/06 15:15:00 bcallah Exp $
+-----------------------------------------------------------------------
| Running ${FULLPKGNAME} on OpenBSD
+-----------------------------------------------------------------------
Arx Libertatis
==============
Arx Libertatis requires the original game files from Arx Fatalis to work
properly. These can be from an original CD, Steam, or GOG.com.
The port comes with a script to install the game data. It can be invoked
with:
$ arx-install-data /path/to/setup_arx_fatalis.exe
$ arx-install-data /path/to/setup_arx_fatalis_2.0.0.7.exe (GOG.com
version, requires innoextract which is in ports)
$ arx-install-data /path/to/mount/point (mountpoint of original CD)
Detailed instructions are available here:
http://wiki.arx-libertatis.org/Installing_the_game_data_under_Linux