d2x-rebirth: update to d2x-rebirth-20191018

No changelog provided (changes listed at https://github.com/dxx-rebirth/dxx-rebirth).

pkgsrc: change "raspberrypi" option to the standard "rpi" option.
This commit is contained in:
Yorick Hardy 2019-11-03 08:10:23 +02:00
parent 5503c1c16b
commit 66c38b0bdc
7 changed files with 130 additions and 134 deletions

View File

@ -1,10 +1,11 @@
DXX-Rebirth is a Source Port of the Descent and Descent 2 Engines
for Windows, Mac OS, Linux (most *NIX systems), offering OpenGL
graphics and effects, advanced Multiplayer, many improvements and
new features.
DXX-Rebirth is based on the late D1X and D2X source ports (which,
in turn, were based on the original Descent source and LDescent).
The Rebirth Team has spent a lot of time working to improve the
source code by fixing old bugs and adding some improvements, while
always staying true to our philosophy: Keep it Descent!
Descent and Descent 2 are pretty old games so you usually run into
problems running it on more recent Hardware and Operating Systems.
DXX-Rebirth will also take care about this for you.
It is the goal of DXX-Rebirth to keep Descent 1 & 2 alive and well,
updating them for modern PCs while also keeping them the same games
you remember playing back in 1995!
This is the Descent 2 source port. The data files are not included.

View File

@ -1,67 +1,72 @@
The Descent 2 source code was released by Parallax with this license:
---------------------------------------------------------------------------
THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX
SOFTWARE CORPORATION ("PARALLAX"). PARALLAX, IN DISTRIBUTING THE CODE TO
END-USERS, AND SUBJECT TO ALL OF THE TERMS AND CONDITIONS HEREIN, GRANTS A
ROYALTY-FREE, PERPETUAL LICENSE TO SUCH END-USERS FOR USE BY SUCH END-USERS
IN USING, DISPLAYING, AND CREATING DERIVATIVE WORKS THEREOF, SO LONG AS
SUCH USE, DISPLAY OR CREATION IS FOR NON-COMMERCIAL, ROYALTY OR REVENUE
FREE PURPOSES. IN NO EVENT SHALL THE END-USER USE THE COMPUTER CODE
CONTAINED HEREIN FOR REVENUE-BEARING PURPOSES. THE END-USER UNDERSTANDS
AND AGREES TO THE TERMS HEREIN AND ACCEPTS THE SAME BY USE OF THIS FILE.
COPYRIGHT 1993-1999 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED.
We make no warranties as to the usability or correctness of this code.
---------------------------------------------------------------------------
The modifications to Descent 2 which make up D2X-Rebirth are covered by the
same license as the d1x project, given below.
---------------------------------------------------------------------------
D1x License
Preamble
--------
This License is designed to allow the Descent programming community to
continue to have the Descent source open and available to anyone.
Original Parallax License
-------------------------
THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX
SOFTWARE CORPORATION ("PARALLAX"). PARALLAX, IN DISTRIBUTING THE CODE TO
END-USERS, AND SUBJECT TO ALL OF THE TERMS AND CONDITIONS HEREIN, GRANTS A
ROYALTY-FREE, PERPETUAL LICENSE TO SUCH END-USERS FOR USE BY SUCH END-USERS
IN USING, DISPLAYING, AND CREATING DERIVATIVE WORKS THEREOF, SO LONG AS
SUCH USE, DISPLAY OR CREATION IS FOR NON-COMMERCIAL, ROYALTY OR REVENUE
FREE PURPOSES. IN NO EVENT SHALL THE END-USER USE THE COMPUTER CODE
CONTAINED HEREIN FOR REVENUE-BEARING PURPOSES. THE END-USER UNDERSTANDS
AND AGREES TO THE TERMS HEREIN AND ACCEPTS THE SAME BY USE OF THIS FILE.
COPYRIGHT 1993-1998 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED.
We make no warranties as to the usability or correctness of this code.
-------------------------
The D1x project is the combination of the original Parallax code and the
modifications and additions made to source code. While the original code is
only under the Original Parallax License the D1x project contains original
code that was not made by Parallax. This ADDED and/or CHANGED code has the
following added restrictions:
1) By using this source you are agreeing to these terms.
2) D1x and derived works may only be modified if ONE of the following is done:
a) The modified version is placed under this license. The source
code used to create the modified version is freely and publicly
available under this license.
b) The modified version is only used by the developer.
3) D1X IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR
IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
DXX-REBIRTH LICENSE
====================
The original Descent source release is copyright by Parallax and subject
to the Parallax license below. Contributions from the D1X/D2X ("DXX")
and D1X-Rebirth/D2X-Rebirth ("Rebirth") projects are copyright their
respective contributors. The DXX and Rebirth contributors grant you
permission to convey their work, with or without modifications, pursuant
to the terms of the GNU General Public License, version 3 ("GPLv3"). As
a special exception, in recognition of the restrictions imposed by the
original Parallax license, you are excused from GPLv3 requirements that
conflict with the restrictions of the original Parallax license, but
only to the extent that such excuse is required to prevent a conflict
between the terms of the original Parallax license and the GNU General
Public License v3. This special exception is an "Additional permission"
as defined by section 7 of the GNU General Public License v3. All
provisions of the GPLv3 that can be satisfied without violating the
original Parallax license must be satisfied to the greatest extent
possible without violating the original Parallax license. Failure to
satisfy any non-excused GPLv3 provision is expressly prohibited under
this license, and is therefore void and is handled pursuant to GPLv3
section 8 "Termination.", exactly as would occur for a non-permitted
propagation or modification of a GPLv3 covered work that had no special
exceptions.
For purposes of this document, "copyright by Parallax" shall include any
subsequent entities to which some or all of the Parallax copyrights were
transferred, without regard to how the transfer occurred. In the event
that you are permitted to convey the material originally copyright by
Parallax under terms other than the original Parallax license below,
whether due to a general relicensing by the appropriate copyright
holders, due to special permission from the appropriate copyright
holders, or any other circumstance, the contributions from the DXX and
Rebirth projects remain subject to the GNU General Public License,
version 3. The special exception described in the preceding paragraph
excuses only conflicts with the original Parallax license. If a
subsequent license to the Parallax work conflicts with the GPLv3 in any
way that the original Parallax license did not conflict, then such new
conflicts are not excused. As detailed in GPLv3 section 12 "No
Surrender of Others' Freedom.", if you cannot simultaneously satisfy the
non-excused terms of the GPLv3 and all other conditions imposed on you,
then you may not convey the GPLv3 covered work at all.
Additionally, if you are permitted to convey the material originally
copyright by Parallax under terms other than the original Parallax
license, and such new permission allows you to comply with the GPLv3 to
a greater extent than the original Parallax license allowed, and you
convey the covered work or a portion thereof, then such conveyance must
comply with all GPLv3 terms which can be satisfied without violating the
permission under which you convey the material originally copyright by
Parallax.
See GPL-3.txt for further details on the GPLv3.
For project history and its contributors, please visit the
DXX-Rebirth GIT repository at https://github.com/dxx-rebirth/dxx-rebirth/
PARALLAX LICENSE
================
THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX
SOFTWARE CORPORATION ("PARALLAX"). PARALLAX, IN DISTRIBUTING THE CODE TO
END-USERS, AND SUBJECT TO ALL OF THE TERMS AND CONDITIONS HEREIN, GRANTS A
ROYALTY-FREE, PERPETUAL LICENSE TO SUCH END-USERS FOR USE BY SUCH END-USERS
IN USING, DISPLAYING, AND CREATING DERIVATIVE WORKS THEREOF, SO LONG AS
SUCH USE, DISPLAY OR CREATION IS FOR NON-COMMERCIAL, ROYALTY OR REVENUE
FREE PURPOSES. IN NO EVENT SHALL THE END-USER USE THE COMPUTER CODE
CONTAINED HEREIN FOR REVENUE-BEARING PURPOSES. THE END-USER UNDERSTANDS
AND AGREES TO THE TERMS HEREIN AND ACCEPTS THE SAME BY USE OF THIS FILE.
COPYRIGHT 1993-1998 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED.
We make no warranties as to the usability or correctness of this code.

View File

@ -1,35 +1,41 @@
# $NetBSD: Makefile,v 1.1 2015/08/19 19:11:02 yhardy Exp $
# $NetBSD: Makefile,v 1.1 2015/08/19 19:06:08 yhardy Exp $
DISTNAME= d2x-rebirth_v0.58.1-src
PKGNAME= d2x-rebirth-0.58.1
DISTNAME= dxx-rebirth_20191018-src
PKGNAME= d2x-rebirth-20191018
CATEGORIES= games
MASTER_SITES= http://www.dxx-rebirth.com/download/dxx/
MASTER_SITES= https://www.dxx-rebirth.com/download/dxx/rebirth/
EXTRACT_SUFX= .tar.xz
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.dxx-rebirth.com/
HOMEPAGE= https://www.dxx-rebirth.com/
COMMENT= Source port of the Descent 2 engine
#LICENSE= # TODO: (see mk/license.mk)
#LICENSE= parallax AND (gnu-gpl3-v3 WITH exception)
USE_LANGUAGES= c c++
USE_TOOLS+= pkg-config
BUILD_DEPENDS+= ${PYPKGPREFIX}-scons-[0-9]*:../../devel/scons
SCONS= ${PREFIX}/bin/scons
SCONS_ARGS+= -C ${WRKSRC} prefix=${PREFIX}
SCONS_ARGS+= sharepath=${PREFIX}/share/d1x-rebirth
SCONS_ARGS+= -C ${WRKSRC}
SCONS_ARGS+= DESTDIR=${DESTDIR}
SCONS_ARGS+= d2x=
SCONS_ARGS+= prefix=${PREFIX}
SCONS_ARGS+= sdlmixer=1
SCONS_ARGS+= sharepath=${PREFIX}/share/d2x-rebirth
INSTALLATION_DIRS= bin
PYTHON_VERSIONS_INCOMPATIBLE= 36 37 38
do-build:
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${SCONS} ${SCONS_ARGS}
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/d2x-rebirth ${DESTDIR}${PREFIX}/bin
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${SCONS} ${SCONS_ARGS} install
.include "options.mk"
.include "../../lang/python/pyversion.mk"
.include "../../audio/SDL_mixer/buildlink3.mk"
.include "../../devel/SDL/buildlink3.mk"
.include "../../devel/physfs/buildlink3.mk"
.include "../../graphics/png/buildlink3.mk"
.include "../../lang/python/pyversion.mk"
.include "../../mk/bsd.pkg.mk"

View File

@ -1,7 +1,7 @@
$NetBSD: distinfo,v 1.1 2015/08/19 19:11:02 yhardy Exp $
$NetBSD: distinfo,v 1.1 2015/08/19 19:06:08 yhardy Exp $
SHA1 (d2x-rebirth_v0.58.1-src.tar.gz) = 2f8576da0ab445a1cd79663996b06b8c53ebb5c1
RMD160 (d2x-rebirth_v0.58.1-src.tar.gz) = 0d5edf7becbe4114525d84fad33f5ae2e0fc21f4
SHA512 (d2x-rebirth_v0.58.1-src.tar.gz) = 19281c8dc554d595f6c40cbef2f4921c6325cd736ec648cb1abf60ad6a339e59b882b8a1426987f7bcfb8413c78bbda9b6f7fa86a6ff8927550a37d0290873fd
Size (d2x-rebirth_v0.58.1-src.tar.gz) = 1375376 bytes
SHA1 (patch-include_physfsrwops.h) = 31496ca6262412a3f62945086236fb863dd16af7
SHA1 (dxx-rebirth_20191018-src.tar.xz) = 32e889e5c75750497817e2427b1f5ecce1579351
RMD160 (dxx-rebirth_20191018-src.tar.xz) = 28e10d43263ad45d96613e6414ed6af6ada893bc
SHA512 (dxx-rebirth_20191018-src.tar.xz) = cfdea22b15112ef5013504cbb2a5df8e936c180ab41cbb48e0fe7fd990870dff0ac255091a80e46b33a67a7d4cf1136ab2cc351fa0e74dd905db3280bf784fc2
Size (dxx-rebirth_20191018-src.tar.xz) = 1315824 bytes
SHA1 (patch-SConstruct) = 046b2a5627a601d8654b538be410ae2946f194c6

View File

@ -1,17 +1,17 @@
# $NetBSD: options.mk,v 1.1 2015/08/19 19:11:02 yhardy Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.d2x-rebirth
PKG_SUPPORTED_OPTIONS= raspberrypi
PKG_SUPPORTED_OPTIONS= rpi
PKG_SUGGESTED_OPTIONS=
.include "../../mk/bsd.prefs.mk"
.include "../../mk/bsd.options.mk"
.if !empty(PKG_OPTIONS:Mraspberrypi)
.if !empty(PKG_OPTIONS:Mrpi)
SCONS_ARGS+= raspberrypi=1
SCONS_ARGS+= rpi_vc_path=${PREFIX}
.endif
.if !empty(PKG_OPTIONS:Mraspberrypi)
.if !empty(PKG_OPTIONS:Mrpi)
.include "../../misc/raspberrypi-userland/buildlink3.mk"
.endif

View File

@ -0,0 +1,24 @@
$NetBSD$
Also support NetBSD.
--- SConstruct.orig 2019-10-02 02:06:00.000000000 +0000
+++ SConstruct
@@ -3621,7 +3621,7 @@ class DXXCommon(LazyObjectConstructor):
expect_sconf_tuple = ('0', '1', conftests.expect_sconf_success, conftests.expect_sconf_failure)
sconf_tuple = ('0', '1', '2', conftests.sconf_force_failure, conftests.sconf_force_success, conftests.sconf_assume_success)
sys_platform = sys.platform
- for platform in ('linux', 'freebsd', 'openbsd'):
+ for platform in ('linux', 'freebsd', 'netbsd', 'openbsd'):
if sys_platform.startswith(platform):
sys_platform = platform
break
@@ -3654,7 +3654,7 @@ class DXXCommon(LazyObjectConstructor):
'cross-compile to specified platform',
{
'map': {'msys':'win32'},
- 'allowed_values' : ('darwin', 'linux', 'freebsd', 'openbsd', 'win32'),
+ 'allowed_values' : ('darwin', 'linux', 'freebsd', 'netbsd', 'openbsd', 'win32'),
}
),
('raspberrypi', None, 'build for Raspberry Pi (automatically selects opengles)', {'ignorecase': 2, 'map': {'1':'yes', 'true':'yes', '0':'no', 'false':'no'}, 'allowed_values': ('yes', 'no', 'mesa')}),

View File

@ -1,40 +0,0 @@
$NetBSD$
--- ./include/physfsrwops.h.orig 2019-03-04 22:58:02.523929348 -0800
+++ ./include/physfsrwops.h 2019-03-04 22:58:18.372226593 -0800
@@ -44,7 +44,7 @@
* @return A valid SDL_RWops structure on success, NULL on error. Specifics
* of the error can be gleaned from PHYSFS_getLastError().
*/
-__EXPORT__ SDL_RWops *PHYSFSRWOPS_openRead(const char *fname);
+SDL_RWops *PHYSFSRWOPS_openRead(const char *fname);
/**
* Open a platform-independent filename for writing, and make it accessible
@@ -56,7 +56,7 @@
* @return A valid SDL_RWops structure on success, NULL on error. Specifics
* of the error can be gleaned from PHYSFS_getLastError().
*/
-__EXPORT__ SDL_RWops *PHYSFSRWOPS_openWrite(const char *fname);
+SDL_RWops *PHYSFSRWOPS_openWrite(const char *fname);
/**
* Open a platform-independent filename for appending, and make it accessible
@@ -68,7 +68,7 @@
* @return A valid SDL_RWops structure on success, NULL on error. Specifics
* of the error can be gleaned from PHYSFS_getLastError().
*/
-__EXPORT__ SDL_RWops *PHYSFSRWOPS_openAppend(const char *fname);
+SDL_RWops *PHYSFSRWOPS_openAppend(const char *fname);
/**
* Make a SDL_RWops from an existing PhysicsFS file handle. You should
@@ -80,7 +80,7 @@
* @return A valid SDL_RWops structure on success, NULL on error. Specifics
* of the error can be gleaned from PHYSFS_getLastError().
*/
-__EXPORT__ SDL_RWops *PHYSFSRWOPS_makeRWops(PHYSFS_file *handle);
+SDL_RWops *PHYSFSRWOPS_makeRWops(PHYSFS_file *handle);
#ifdef __cplusplus
}