Saturday, February 27, 2021

Re: [NEW][WIP] games/openxray game engine port for S.T.A.L.K.E.R.

# $OpenBSD: Makefile,v 1.11 2020/12/17 07:41:42 thfr Exp $

# versions are in sync with FNA versions
V = 16
COMMENT = unofficial improved version of X-Ray Engine

PKGNAME = openxray-${V}

GH_ACCOUNT = OpenXRay
GH_PROJECT = xray-16
GH_TAGNAME = 822-december-preview

MASTER_SITES0 = https://github.com/

DIST_SUBDIR = openxray
DISTFILES = ${DISTNAME}${EXTRACT_SUFX}
.for A N C in \
GPUOpen-LibrariesAndSDKs AGS_SDK dbeff30568aa1494d6f520232ea79cdaa1a2398f \
OpenXRay BugTrap c619077b40ee6e7ad6ffc5a194a5d3583af8f78e \
OpenXRay FreeMagic ba39f90bef46fd79166ccdb661e902f45d48560e \
OpenXRay GameSpy 5cd0fcdfd301e7e81d3da48717cf0bb55c59349c \
OpenXRay LuaJIT c114e08f1a15599102ff86afc7239de5c3231db8 \
OpenXRay OpenAutomate 9ee089894c6d403aba5968ce1c8c26578b8e2b0a \
g-truc gli 30808550a20ca53a255e6e1e77070493eda7b736 \
OpenXRay luabind-deboostified 70ef64fee4a9e41fb6ac540938311fc80a52d976 \
OpenXRay mimalloc a43a51ad21e1620a14eae041d8c6b8badd01d2a3
DISTFILES += $N-{$A/$N/archive/}$C.tar.gz:0
.endfor

CATEGORIES = games

HOMEPAGE = https://github.com/OpenXRay/xray-16

MAINTAINER = Eugene Moz. <mozhaaak@schizoden.xyz>

# openxray: "commercial GSC Game World proprietary code"
# AGS_SDK, BugTrap, LuaJIT, gli, luabind, mimalloc: MIT/similar
# FreeMagic: likely free but "see some license pdf on a website which
# no longer exists"
# OpenAutomate: NVIDIA license in Externals/OpenAutomate/LICENSE;
# revocable(sic), renewable on 1 year terms, confidentiality clauses,
# can only be distributed in unmodified form, etc
PERMIT_PACKAGE = license problems
PERMIT_DISTFILES = license problems

# lockfile
WANTLIB += ${COMPILER_LIBCXX} SDL2 jpeg GLEW freeimage cryptopp
WANTLIB += tbb pthread theora ogg openal pcre lzo m xcb-glx xcb-dri3 xcb-present
WANTLIB += xcb-sync xcb-xfixes xshmfence c drm expat glapi xcb xcb-dri2 GL GLU X11
WANTLIB += X11-xcb Xdamage Xext Xfixes Xxf86vm

COMPILER = base-clang ports-gcc

MODULES = devel/cmake

LIB_DEPENDS = archivers/lzo \
devel/cryptopp \
devel/sdl2 \
devel/tbb \
graphics/freeimage

post-extract:
.for D in AGS_SDK BugTrap FreeMagic GameSpy LuaJIT OpenAutomate \
gli luabind mimalloc
rmdir ${WRKSRC}/Externals/$D
mv ${WRKDIR}/$D* ${WRKSRC}/Externals/$D
.endfor

.include <bsd.port.mk>
On 2021/02/27 23:29, Jonathan Gray wrote:
> On Sat, Feb 27, 2021 at 01:53:22PM +0300, Eugene Moz. wrote:
> > Hello,
> > This is based on: https://github.com/OpenXRay/xray-16
>
> Isn't this based on leaked code they don't have permission to distribute?
>
> "All source code included with this distribution, unless declared
> otherwise, is commercial GSC Game World proprietary code."
>
> "Be advised that this is a community project not sanctioned by GSC Game
> World in any way – and they remain the copyright holders of all the
> original source code and S.T.A.L.K.E.R. franchise."

The NVIDIA license in https://github.com/OpenXRay/OpenAutomate/blob/master/LICENSE
is delightful too

> > This is work in progress, at the time of writing, I'm stuck at
> > "undefined reference to `__cxa_atexit'", I've tried building
> > with both ports-gcc and base-clang, same error. For now I've
> > chosen gcc, clang is not officialy supported by ^1.
> > If anyone is willing to help get this working, please do so =)
> > I'll include my last build.log, for examination purposes:
> > https://clbin.com/WjJoU

You can't use gcc, the port uses libraries which are compiled with
clang and the two standard libraries will conflict.

I've attached a Makefile which fixes a few things but I lost interest
when I saw the licenses..

No comments:

Post a Comment