1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-22 04:17:44 +00:00

Classic Tomb Raider open-source engine

WWW: https://github.com/XProger/OpenLara
This commit is contained in:
Piotr Kubaj 2021-02-28 21:31:09 +00:00
parent f7bb8989f9
commit 3a27e7ca6c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=566818
5 changed files with 55 additions and 0 deletions

View File

@ -19,6 +19,7 @@
SUBDIR += KnightCap
SUBDIR += NBlood
SUBDIR += OpenDiablo2
SUBDIR += OpenLara
SUBDIR += OpenTomb
SUBDIR += abbayedesmorts
SUBDIR += abe

33
games/OpenLara/Makefile Normal file
View File

@ -0,0 +1,33 @@
# $FreeBSD$
PORTNAME= OpenLara
DISTVERSION= g20210226
CATEGORIES= games
MAINTAINER= pkubaj@FreeBSD.org
COMMENT= Classic Tomb Raider open-source engine
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= compiler:c++11-lang gl sdl
USE_GL= gl
USE_GITHUB= yes
GH_ACCOUNT= XProger
GH_TAGNAME= b4b19f2
USE_SDL= sdl2
PLIST_FILES= bin/${PORTNAME}
post-patch:
${REINPLACE_CMD} 's/g++/${CXX} ${CXXFLAGS}/' \
${WRKSRC}/src/platform/sdl2/build.sh
do-build:
cd ${WRKSRC}/src/platform/sdl2 && ./build.sh
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/src/platform/sdl2/OpenLara \
${STAGEDIR}${PREFIX}/bin/${PORTNAME}
.include <bsd.port.mk>

3
games/OpenLara/distinfo Normal file
View File

@ -0,0 +1,3 @@
TIMESTAMP = 1614547419
SHA256 (XProger-OpenLara-g20210226-b4b19f2_GH0.tar.gz) = c985d73c5be592ef0c4dda24d5769537f2a032be723d1d12056b0d6b685df10e
SIZE (XProger-OpenLara-g20210226-b4b19f2_GH0.tar.gz) = 2669808

View File

@ -0,0 +1,15 @@
--- src/platform/sdl2/build.sh.orig 2021-02-28 21:10:13 UTC
+++ src/platform/sdl2/build.sh
@@ -1,10 +1,10 @@
set -e
# Use this compilation line to build SDL2/GLES version, GLES2 version.
-g++ -DSDL2_GLES -D_GAPI_GLES2 -std=c++11 `sdl2-config --cflags` -O3 -fno-exceptions -fno-rtti -ffunction-sections -fdata-sections -Wl,--gc-sections -DNDEBUG -D__SDL2__ main.cpp ../../libs/stb_vorbis/stb_vorbis.c ../../libs/minimp3/minimp3.cpp ../../libs/tinf/tinflate.c -I../../ -o OpenLara `sdl2-config --libs` -lGLESv2 -lEGL -lm -lrt -lpthread -lasound -ludev
+#g++ -DSDL2_GLES -D_GAPI_GLES2 -std=c++11 `sdl2-config --cflags` -O3 -fno-exceptions -fno-rtti -ffunction-sections -fdata-sections -Wl,--gc-sections -DNDEBUG -D__SDL2__ main.cpp ../../libs/stb_vorbis/stb_vorbis.c ../../libs/minimp3/minimp3.cpp ../../libs/tinf/tinflate.c -I../../ -o OpenLara `sdl2-config --libs` -lGLESv2 -lEGL -lm -lrt -lpthread -lasound -ludev
# Use this compilation line to build SDL2/GLES version, GLES3, which is an extension to GLES2 so we use -lGLESv2, too.
#g++ -DSDL2_GLES -std=c++11 `sdl2-config --cflags` -O3 -fno-exceptions -fno-rtti -ffunction-sections -fdata-sections -Wl,--gc-sections -DNDEBUG -D__SDL2__ main.cpp ../../libs/stb_vorbis/stb_vorbis.c ../../libs/minimp3/minimp3.cpp ../../libs/tinf/tinflate.c -I../../ -o OpenLara `sdl2-config --libs` -lGLESv2 -lEGL -lm -lrt -lpthread -lasound -ludev
# Use this compilation line to build SDL2/OpenGL version.
-#g++ -std=c++11 `sdl2-config --cflags` -O3 -fno-exceptions -fno-rtti -ffunction-sections -fdata-sections -Wl,--gc-sections -DNDEBUG -D__SDL2__ -D_SDL2_OPENGL main.cpp ../../libs/stb_vorbis/stb_vorbis.c ../../libs/minimp3/minimp3.cpp ../../libs/tinf/tinflate.c -I../../ -o OpenLara `sdl2-config --libs` -lGL -lm -lrt -lpthread -lasound -ludev
+g++ -std=c++11 `sdl2-config --cflags` -O3 -fno-exceptions -fno-rtti -ffunction-sections -fdata-sections -Wl,--gc-sections -DNDEBUG -D__SDL2__ -D_SDL2_OPENGL main.cpp ../../libs/stb_vorbis/stb_vorbis.c ../../libs/minimp3/minimp3.cpp ../../libs/tinf/tinflate.c -I../../ -o OpenLara `sdl2-config --libs` -lGL

3
games/OpenLara/pkg-descr Normal file
View File

@ -0,0 +1,3 @@
Classic Tomb Raider open-source engine
WWW: https://github.com/XProger/OpenLara