mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-01 01:17:02 +00:00
- Add games/rawgl
rawgl is a re-implementation of the engine used in the game Another World. WWW: https://github.com/cyxx/rawgl PR: 227299 Submitted by: pkubaj@FreeBSD.org
This commit is contained in:
parent
b23f371b26
commit
45d150fb4d
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=519090
@ -791,6 +791,7 @@
|
||||
SUBDIR += qwdtools
|
||||
SUBDIR += r1q2
|
||||
SUBDIR += railroad-rampage
|
||||
SUBDIR += rawgl
|
||||
SUBDIR += redeclipse
|
||||
SUBDIR += redeclipse-data
|
||||
SUBDIR += redorblack
|
||||
|
51
games/rawgl/Makefile
Normal file
51
games/rawgl/Makefile
Normal file
@ -0,0 +1,51 @@
|
||||
# Created by: Piotr Kubaj <pkubaj@anongoth.pl>
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= rawgl
|
||||
PORTVERSION= g20180321
|
||||
CATEGORIES= games
|
||||
|
||||
MAINTAINER= pkubaj@anongoth.pl
|
||||
COMMENT= Another World engine reimplementation
|
||||
|
||||
LICENSE= NONE
|
||||
|
||||
USE_GITHUB= yes
|
||||
GH_ACCOUNT= cyxx
|
||||
GH_TAGNAME= b6dd795
|
||||
|
||||
USES= gl sdl
|
||||
USE_GL= gl
|
||||
USE_SDL= mixer2 sdl2
|
||||
ALL_TARGET= rawgl
|
||||
|
||||
SUB_FILES= pkg-message rawgl
|
||||
SUB_LIST= DATADIR=${DATADIR}
|
||||
|
||||
PLIST_FILES= bin/${PORTNAME} libexec/${PORTNAME} '@dir %%DATADIR%%'
|
||||
PORTDOCS= *
|
||||
|
||||
DESKTOP_ENTRIES="raw(gl)" \
|
||||
"" \
|
||||
"" \
|
||||
rawgl \
|
||||
"Game;ActionGame;" \
|
||||
""
|
||||
|
||||
OPTIONS_DEFINE= DOCS
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e 's|MIX_INIT_FLUIDSYNTH|MIX_INIT_MID|' ${WRKSRC}/mixer.cpp
|
||||
|
||||
do-install:
|
||||
@${MKDIR} ${STAGEDIR}${DATADIR}
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} \
|
||||
${STAGEDIR}${PREFIX}/libexec/
|
||||
${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} \
|
||||
${STAGEDIR}${PREFIX}/bin/
|
||||
|
||||
do-install-DOCS-on:
|
||||
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}/
|
||||
|
||||
.include <bsd.port.mk>
|
3
games/rawgl/distinfo
Normal file
3
games/rawgl/distinfo
Normal file
@ -0,0 +1,3 @@
|
||||
TIMESTAMP = 1574268090
|
||||
SHA256 (cyxx-rawgl-g20180321-b6dd795_GH0.tar.gz) = 1f3d362450d03a25f3b01f2dfc269fe8f9013bef8f2475bd9d76b747ebc85233
|
||||
SIZE (cyxx-rawgl-g20180321-b6dd795_GH0.tar.gz) = 70179
|
11
games/rawgl/files/patch-Makefile
Normal file
11
games/rawgl/files/patch-Makefile
Normal file
@ -0,0 +1,11 @@
|
||||
--- Makefile.orig 2018-04-04 14:11:53 UTC
|
||||
+++ Makefile
|
||||
@@ -4,7 +4,7 @@ SDL_LIBS = `sdl2-config --libs` -lSDL2_mixer -lGL
|
||||
|
||||
DEFINES = -DBYPASS_PROTECTION
|
||||
|
||||
-CXXFLAGS := -g -O -MMD -Wall $(SDL_CFLAGS) $(DEFINES)
|
||||
+CXXFLAGS += -fPIC -MMD -Wall $(SDL_CFLAGS) $(DEFINES)
|
||||
|
||||
SRCS = aifcplayer.cpp bitmap.cpp file.cpp engine.cpp graphics_gl.cpp graphics_soft.cpp \
|
||||
script.cpp mixer.cpp pak.cpp resource.cpp resource_mac.cpp resource_nth.cpp \
|
11
games/rawgl/files/patch-main.cpp
Normal file
11
games/rawgl/files/patch-main.cpp
Normal file
@ -0,0 +1,11 @@
|
||||
--- main.cpp.orig 2018-03-21 01:29:10 UTC
|
||||
+++ main.cpp
|
||||
@@ -83,7 +83,7 @@ static const int DEFAULT_WINDOW_H = 400;
|
||||
int main(int argc, char *argv[]) {
|
||||
char *dataPath = 0;
|
||||
int part = 16001;
|
||||
- Language lang = LANG_FR;
|
||||
+ Language lang = LANG_US;
|
||||
int graphicsType = GRAPHICS_GL;
|
||||
DisplayMode dm;
|
||||
dm.mode = DisplayMode::WINDOWED;
|
14
games/rawgl/files/pkg-message.in
Normal file
14
games/rawgl/files/pkg-message.in
Normal file
@ -0,0 +1,14 @@
|
||||
[
|
||||
{ type: install
|
||||
message: <<EOM
|
||||
To play this game, copy Another World game files to %%DATADIR%%.
|
||||
|
||||
Supported versions:
|
||||
* Amiga and PC DOS releases (Bank*)
|
||||
* 15th anniversary edition (Pak01.pak)
|
||||
* 20th anniversary edition (game/*)
|
||||
* Windows 3.1 release (Bank)
|
||||
* 3DO release (GameData/*)
|
||||
EOM
|
||||
}
|
||||
]
|
7
games/rawgl/files/rawgl.in
Normal file
7
games/rawgl/files/rawgl.in
Normal file
@ -0,0 +1,7 @@
|
||||
#!/bin/sh
|
||||
|
||||
if [ -n "$(find %%DATADIR%% -type f 2>/dev/null)" ]; then
|
||||
exec %%PREFIX%%/libexec/rawgl --datapath=%%DATADIR%% "$@"
|
||||
else
|
||||
exec %%PREFIX%%/libexec/rawgl "$@"
|
||||
fi
|
3
games/rawgl/pkg-descr
Normal file
3
games/rawgl/pkg-descr
Normal file
@ -0,0 +1,3 @@
|
||||
rawgl is a re-implementation of the engine used in the game Another World.
|
||||
|
||||
WWW: https://github.com/cyxx/rawgl
|
Loading…
Reference in New Issue
Block a user