From owner-svn-ports-all@freebsd.org Sun Feb 28 21:31:10 2021 Return-Path: Delivered-To: svn-ports-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 84DD554C5F5; Sun, 28 Feb 2021 21:31:10 +0000 (UTC) (envelope-from pkubaj@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Dpc5V3Q1Zz3Dlx; Sun, 28 Feb 2021 21:31:10 +0000 (UTC) (envelope-from pkubaj@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 680E517F2B; Sun, 28 Feb 2021 21:31:10 +0000 (UTC) (envelope-from pkubaj@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 11SLVA3T023074; Sun, 28 Feb 2021 21:31:10 GMT (envelope-from pkubaj@FreeBSD.org) Received: (from pkubaj@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 11SLV9ur023069; Sun, 28 Feb 2021 21:31:09 GMT (envelope-from pkubaj@FreeBSD.org) Message-Id: <202102282131.11SLV9ur023069@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: pkubaj set sender to pkubaj@FreeBSD.org using -f From: Piotr Kubaj Date: Sun, 28 Feb 2021 21:31:09 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r566818 - in head/games: . OpenLara OpenLara/files X-SVN-Group: ports-head X-SVN-Commit-Author: pkubaj X-SVN-Commit-Paths: in head/games: . OpenLara OpenLara/files X-SVN-Commit-Revision: 566818 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Feb 2021 21:31:10 -0000 Author: pkubaj Date: Sun Feb 28 21:31:09 2021 New Revision: 566818 URL: https://svnweb.freebsd.org/changeset/ports/566818 Log: Classic Tomb Raider open-source engine WWW: https://github.com/XProger/OpenLara Added: head/games/OpenLara/ head/games/OpenLara/Makefile (contents, props changed) head/games/OpenLara/distinfo (contents, props changed) head/games/OpenLara/files/ head/games/OpenLara/files/patch-src_platform_sdl2_build.sh (contents, props changed) head/games/OpenLara/pkg-descr (contents, props changed) Modified: head/games/Makefile Modified: head/games/Makefile ============================================================================== --- head/games/Makefile Sun Feb 28 21:27:55 2021 (r566817) +++ head/games/Makefile Sun Feb 28 21:31:09 2021 (r566818) @@ -19,6 +19,7 @@ SUBDIR += KnightCap SUBDIR += NBlood SUBDIR += OpenDiablo2 + SUBDIR += OpenLara SUBDIR += OpenTomb SUBDIR += abbayedesmorts SUBDIR += abe Added: head/games/OpenLara/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/games/OpenLara/Makefile Sun Feb 28 21:31:09 2021 (r566818) @@ -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 Added: head/games/OpenLara/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/games/OpenLara/distinfo Sun Feb 28 21:31:09 2021 (r566818) @@ -0,0 +1,3 @@ +TIMESTAMP = 1614547419 +SHA256 (XProger-OpenLara-g20210226-b4b19f2_GH0.tar.gz) = c985d73c5be592ef0c4dda24d5769537f2a032be723d1d12056b0d6b685df10e +SIZE (XProger-OpenLara-g20210226-b4b19f2_GH0.tar.gz) = 2669808 Added: head/games/OpenLara/files/patch-src_platform_sdl2_build.sh ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/games/OpenLara/files/patch-src_platform_sdl2_build.sh Sun Feb 28 21:31:09 2021 (r566818) @@ -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 Added: head/games/OpenLara/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/games/OpenLara/pkg-descr Sun Feb 28 21:31:09 2021 (r566818) @@ -0,0 +1,3 @@ +Classic Tomb Raider open-source engine + +WWW: https://github.com/XProger/OpenLara