OpenLara: import OpenLara (git snapshot) as wip/OpenLara

Classic Tomb Raider open-source engine inspired by OpenTomb project.

To try it out, download

 https://www.classicdosgames.com/files/games/eidos/tombdemo.zip

and then

 $ OpenLara DATA/LEVEL2.PHD

or try the webgl version

 http://xproger.info/projects/OpenLara/
This commit is contained in:
Yorick Hardy 2020-02-27 21:35:59 +02:00
parent 490919241a
commit 73d4a3aaf3
5 changed files with 63 additions and 0 deletions

View File

@ -27,6 +27,7 @@ SUBDIR+= MoleInvasion
SUBDIR+= OpenGLUT
SUBDIR+= OpenIPMI
SUBDIR+= OpenJK-git
SUBDIR+= OpenLara
SUBDIR+= OpenTESArena
SUBDIR+= PHPUnit
SUBDIR+= PPower4

13
OpenLara/DESCR Normal file
View File

@ -0,0 +1,13 @@
Classic Tomb Raider open-source engine inspired by OpenTomb project.
To try it out, download
https://www.classicdosgames.com/files/games/eidos/tombdemo.zip
and then
$ OpenLara DATA/LEVEL2.PHD
or try the webgl version
http://xproger.info/projects/OpenLara/

46
OpenLara/Makefile Normal file
View File

@ -0,0 +1,46 @@
# $NetBSD$
DISTNAME= OpenLara-0.0
GITHUB_PROJECT= OpenLara
CATEGORIES= games
MASTER_SITES= ${MASTER_SITE_GITHUB:=XProger/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://github.com/XProger/OpenLara/
COMMENT= Classic Tomb Raider open-source engine
LICENSE= 2-clause-bsd
GIT_REPOSITORIES= OpenLara
GIT_REPO.OpenLara= git://github.com/XProger/OpenLara.git
NO_CONFIGURE= yes
WRKSRC= ${WRKDIR}/OpenLara
USE_LANGUAGES= c c++11
INSTALLATION_DIRS+= bin
PTHREAD_AUTO_VARS= YES
# build step adapted from ${WRKSRC}/src/platform/sdl2/build.sh
# TODO: add an option to use GLES
do-build:
cd ${WRKSRC}/src/platform/sdl2 && \
${CXX} -o ${WRKSRC}/OpenLara \
`sdl2-config --cflags` \
${PTHREAD_CPPFLAGS} ${PTHREAD_CFLAGS} \
-fno-exceptions -fno-rtti -ffunction-sections -fdata-sections -Wl,--gc-sections \
-DNDEBUG -D__SDL2__ -DGL_GLEXT_PROTOTYPES \
main.cpp \
../../libs/stb_vorbis/stb_vorbis.c \
../../libs/minimp3/minimp3.cpp \
../../libs/tinf/tinflate.c \
-I../../ \
`sdl2-config --libs` -lGL -lm -lrt \
${PTHREAD_LIBS}
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/OpenLara ${DESTDIR}${PREFIX}/bin/
.include "../../devel/SDL2/buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
.include "../../wip/mk/git-package.mk"
.include "../../mk/bsd.pkg.mk"

2
OpenLara/PLIST Normal file
View File

@ -0,0 +1,2 @@
@comment $NetBSD$
bin/OpenLara

1
OpenLara/distinfo Normal file
View File

@ -0,0 +1 @@
$NetBSD$