pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

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



Module Name:	pkgsrc-wip
Committed By:	Yorick Hardy <yorickhardy%gmail.com@localhost>
Pushed By:	yhardy
Date:		Thu Feb 27 21:35:59 2020 +0200
Changeset:	73d4a3aaf375d3ecb9aeceb04a7f8f0cc1695010

Modified Files:
	Makefile
Added Files:
	OpenLara/DESCR
	OpenLara/Makefile
	OpenLara/PLIST
	OpenLara/distinfo

Log Message:
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/

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=73d4a3aaf375d3ecb9aeceb04a7f8f0cc1695010

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 Makefile          |  1 +
 OpenLara/DESCR    | 13 +++++++++++++
 OpenLara/Makefile | 46 ++++++++++++++++++++++++++++++++++++++++++++++
 OpenLara/PLIST    |  2 ++
 OpenLara/distinfo |  1 +
 5 files changed, 63 insertions(+)

diffs:
diff --git a/Makefile b/Makefile
index d5808fa211..c37cd97439 100644
--- a/Makefile
+++ b/Makefile
@@ -27,6 +27,7 @@ SUBDIR+=	MoleInvasion
 SUBDIR+=	OpenGLUT
 SUBDIR+=	OpenIPMI
 SUBDIR+=	OpenJK-git
+SUBDIR+=	OpenLara
 SUBDIR+=	OpenTESArena
 SUBDIR+=	PHPUnit
 SUBDIR+=	PPower4
diff --git a/OpenLara/DESCR b/OpenLara/DESCR
new file mode 100644
index 0000000000..17ec21f464
--- /dev/null
+++ b/OpenLara/DESCR
@@ -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/
diff --git a/OpenLara/Makefile b/OpenLara/Makefile
new file mode 100644
index 0000000000..97fc3dec47
--- /dev/null
+++ b/OpenLara/Makefile
@@ -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@localhost
+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"
diff --git a/OpenLara/PLIST b/OpenLara/PLIST
new file mode 100644
index 0000000000..f61f2b28a5
--- /dev/null
+++ b/OpenLara/PLIST
@@ -0,0 +1,2 @@
+@comment $NetBSD$
+bin/OpenLara
diff --git a/OpenLara/distinfo b/OpenLara/distinfo
new file mode 100644
index 0000000000..c641c554c2
--- /dev/null
+++ b/OpenLara/distinfo
@@ -0,0 +1 @@
+$NetBSD$


Home | Main Index | Thread Index | Old Index