Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Sep 2020 11:33:23 +0000 (UTC)
From:      =?UTF-8?Q?Stefan_E=c3=9fer?= <se@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r550686 - in head/games/tenebrae: . files
Message-ID:  <202009301133.08UBXNb2043631@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: se
Date: Wed Sep 30 11:33:22 2020
New Revision: 550686
URL: https://svnweb.freebsd.org/changeset/ports/550686

Log:
  Fix build with -fno-common
  
  While here add license (GPLv2+, included in all source files).

Modified:
  head/games/tenebrae/Makefile
  head/games/tenebrae/files/patch-cd_linux.c
  head/games/tenebrae/files/patch-common.c
  head/games/tenebrae/files/patch-common.h
  head/games/tenebrae/files/patch-gl_common.c
  head/games/tenebrae/files/patch-gl_vidlinuxglx.c
  head/games/tenebrae/files/patch-glquake.h
  head/games/tenebrae/files/patch-linux__Makefile.i386linux
  head/games/tenebrae/files/patch-net.h
  head/games/tenebrae/files/patch-quakeasm.h
  head/games/tenebrae/files/patch-quakedef.h
  head/games/tenebrae/files/patch-snd_sdl.c
  head/games/tenebrae/files/patch-sys_dosa.s
  head/games/tenebrae/files/patch-sys_linux.c
  head/games/tenebrae/files/patch-sys_uxfindfirst.c

Modified: head/games/tenebrae/Makefile
==============================================================================
--- head/games/tenebrae/Makefile	Wed Sep 30 11:24:09 2020	(r550685)
+++ head/games/tenebrae/Makefile	Wed Sep 30 11:33:22 2020	(r550686)
@@ -3,7 +3,7 @@
 
 PORTNAME=	tenebrae
 PORTVERSION=	1.04
-PORTREVISION=	11
+PORTREVISION=	12
 CATEGORIES=	games
 MASTER_SITES=	http://tenebrae.sourceforge.net/downloads/
 DISTFILES=	${PORTNAME}_src${EXTRACT_SUFX} \
@@ -12,6 +12,8 @@ DISTFILES=	${PORTNAME}_src${EXTRACT_SUFX} \
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Quake engine with lighting similar to that in Doom III
 
+LICENSE=	GPLv2+
+
 LIB_DEPENDS=	libpng.so:graphics/png
 
 USES=		gl gmake dos2unix sdl xorg zip
@@ -19,10 +21,11 @@ USE_GL=		gl glu
 USE_SDL=	sdl
 USE_XORG=	x11 xext xxf86vm xxf86dga
 
-WRKSRC=		${WRKDIR}/${PORTNAME}_0
-BUILD_WRKSRC=	${WRKSRC}/linux
 MAKEFILE=	Makefile.i386linux
 MAKE_ENV=	PTHREAD_LIBS="-lpthread"
+
+BUILD_WRKSRC=	${WRKSRC}/linux
+WRKSRC=		${WRKDIR}/${PORTNAME}_0
 
 OPTIONS_DEFINE=	DOCS
 OPTIONS_DEFINE_amd64=	ASM

Modified: head/games/tenebrae/files/patch-cd_linux.c
==============================================================================
--- head/games/tenebrae/files/patch-cd_linux.c	Wed Sep 30 11:24:09 2020	(r550685)
+++ head/games/tenebrae/files/patch-cd_linux.c	Wed Sep 30 11:33:22 2020	(r550686)
@@ -1,6 +1,6 @@
---- ./cd_linux.c.orig	Sat Jun 10 12:08:13 2006
-+++ ./cd_linux.c	Sat Jun 10 12:08:13 2006
-@@ -31,7 +31,7 @@
+--- cd_linux.c.orig	2020-09-30 11:25:10 UTC
++++ cd_linux.c
+@@ -31,7 +31,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston,
  #include <time.h>
  #include <errno.h>
  
@@ -9,7 +9,7 @@
  
  #include "quakedef.h"
  
-@@ -54,8 +54,8 @@
+@@ -54,8 +54,8 @@ static void CDAudio_Eject(void)
  	if (cdfile == -1 || !enabled)
  		return; // no cd init'd
  
@@ -20,7 +20,7 @@
  }
  
  
-@@ -64,30 +64,30 @@
+@@ -64,30 +64,30 @@ static void CDAudio_CloseDoor(void)
  	if (cdfile == -1 || !enabled)
  		return; // no cd init'd
  
@@ -58,7 +58,7 @@
  
  	return 0;
  }
-@@ -95,8 +95,8 @@
+@@ -95,8 +95,8 @@ static int CDAudio_GetAudioDiskInfo(void)
  
  void CDAudio_Play(byte track, qboolean looping)
  {
@@ -69,7 +69,7 @@
  
  	if (cdfile == -1 || !enabled)
  		return;
-@@ -115,7 +115,7 @@
+@@ -115,7 +115,7 @@ void CDAudio_Play(byte track, qboolean looping)
  		Con_DPrintf("CDAudio: Bad track number %u.\n", track);
  		return;
  	}
@@ -78,7 +78,7 @@
  	// don't try to play a non-audio track
  	entry.cdte_track = track;
  	entry.cdte_format = CDROM_MSF;
-@@ -129,7 +129,7 @@
+@@ -129,7 +129,7 @@ void CDAudio_Play(byte track, qboolean looping)
  		Con_Printf("CDAudio: track %i is not audio\n", track);
  		return;
  	}
@@ -87,7 +87,7 @@
  	if (playing)
  	{
  		if (playTrack == track)
-@@ -137,19 +137,19 @@
+@@ -137,19 +137,19 @@ void CDAudio_Play(byte track, qboolean looping)
  		CDAudio_Stop();
  	}
  
@@ -116,7 +116,7 @@
  
  	playLooping = looping;
  	playTrack = track;
-@@ -168,8 +168,8 @@
+@@ -168,8 +168,8 @@ void CDAudio_Stop(void)
  	if (!playing)
  		return;
  
@@ -127,7 +127,7 @@
  
  	wasPlaying = false;
  	playing = false;
-@@ -183,8 +183,8 @@
+@@ -183,8 +183,8 @@ void CDAudio_Pause(void)
  	if (!playing)
  		return;
  
@@ -138,7 +138,7 @@
  
  	wasPlaying = playing;
  	playing = false;
-@@ -202,8 +202,8 @@
+@@ -202,8 +202,8 @@ void CDAudio_Resume(void)
  	if (!wasPlaying)
  		return;
  	
@@ -149,7 +149,7 @@
  	playing = true;
  }
  
-@@ -327,7 +327,8 @@
+@@ -327,7 +327,8 @@ static void CD_f (void)
  
  void CDAudio_Update(void)
  {
@@ -159,7 +159,7 @@
  	static time_t lastchk;
  
  	if (!enabled)
-@@ -351,14 +352,17 @@
+@@ -351,14 +352,17 @@ void CDAudio_Update(void)
  
  	if (playing && lastchk < time(NULL)) {
  		lastchk = time(NULL) + 2; //two seconds between chks

Modified: head/games/tenebrae/files/patch-common.c
==============================================================================
--- head/games/tenebrae/files/patch-common.c	Wed Sep 30 11:24:09 2020	(r550685)
+++ head/games/tenebrae/files/patch-common.c	Wed Sep 30 11:33:22 2020	(r550686)
@@ -1,6 +1,6 @@
---- ./common.c.orig	Sat Jun 10 12:08:13 2006
-+++ ./common.c	Sat Jun 10 12:08:13 2006
-@@ -2221,7 +2221,10 @@
+--- common.c.orig	2020-09-30 11:25:10 UTC
++++ common.c
+@@ -2221,7 +2221,10 @@ void COM_InitFilesystem (void)
  		if ((userdir[j-1] == '\\') || (userdir[j-1] == '/'))
  			userdir[j-1] = 0;
  	}

Modified: head/games/tenebrae/files/patch-common.h
==============================================================================
--- head/games/tenebrae/files/patch-common.h	Wed Sep 30 11:24:09 2020	(r550685)
+++ head/games/tenebrae/files/patch-common.h	Wed Sep 30 11:33:22 2020	(r550686)
@@ -1,6 +1,6 @@
---- ./common.h.orig	Sat Jun 10 12:08:13 2006
-+++ ./common.h	Sat Jun 10 12:08:13 2006
-@@ -169,6 +169,10 @@
+--- common.h.orig	2020-09-30 11:25:10 UTC
++++ common.h
+@@ -169,6 +169,10 @@ struct cache_user_s;
  
  extern	char	com_gamedir[MAX_OSPATH];
  

Modified: head/games/tenebrae/files/patch-gl_common.c
==============================================================================
--- head/games/tenebrae/files/patch-gl_common.c	Wed Sep 30 11:24:09 2020	(r550685)
+++ head/games/tenebrae/files/patch-gl_common.c	Wed Sep 30 11:33:22 2020	(r550686)
@@ -1,6 +1,6 @@
---- ./gl_common.c.orig	Sat Jun 10 12:08:13 2006
-+++ ./gl_common.c	Sat Jun 10 12:08:13 2006
-@@ -248,11 +248,11 @@
+--- gl_common.c.orig	2020-09-30 11:25:10 UTC
++++ gl_common.c
+@@ -248,11 +248,11 @@ void CheckDiffuseBumpMappingExtensions(void)
       if (!strstr(gl_extensions, "GL_ARB_texture_env_dot3")) {
            Sys_Error ("ARB_texture_env_dot3 not found.\nProbably your 3d-card is not supported.\n");
       }

Modified: head/games/tenebrae/files/patch-gl_vidlinuxglx.c
==============================================================================
--- head/games/tenebrae/files/patch-gl_vidlinuxglx.c	Wed Sep 30 11:24:09 2020	(r550685)
+++ head/games/tenebrae/files/patch-gl_vidlinuxglx.c	Wed Sep 30 11:33:22 2020	(r550686)
@@ -1,6 +1,6 @@
---- ./gl_vidlinuxglx.c.orig	Sat Jun 10 12:08:13 2006
-+++ ./gl_vidlinuxglx.c	Sat Jun 10 12:08:13 2006
-@@ -20,7 +20,6 @@
+--- gl_vidlinuxglx.c.orig	2020-09-30 11:25:10 UTC
++++ gl_vidlinuxglx.c
+@@ -20,7 +20,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston,
  #include <termios.h>
  #include <sys/ioctl.h>
  #include <sys/stat.h>
@@ -8,7 +8,7 @@
  #include <stdarg.h>
  #include <stdio.h>
  #include <signal.h>
-@@ -339,8 +338,6 @@
+@@ -339,8 +338,6 @@ static void HandleEvents(void)
  				{
  					mx += ((int)event.xmotion.x - mwx) * 2;
  					my += ((int)event.xmotion.y - mwy) * 2;

Modified: head/games/tenebrae/files/patch-glquake.h
==============================================================================
--- head/games/tenebrae/files/patch-glquake.h	Wed Sep 30 11:24:09 2020	(r550685)
+++ head/games/tenebrae/files/patch-glquake.h	Wed Sep 30 11:33:22 2020	(r550686)
@@ -1,6 +1,6 @@
---- ./glquake.h.orig	Sat Jun 10 12:08:13 2006
-+++ ./glquake.h	Sat Jun 10 12:08:13 2006
-@@ -419,8 +419,8 @@
+--- glquake.h.orig	2020-09-30 11:25:10 UTC
++++ glquake.h
+@@ -419,8 +419,8 @@ extern	const char *gl_extensions;
  void R_TranslatePlayerSkin (int playernum);
  void GL_Bind (int texnum);
  
@@ -11,7 +11,7 @@
  #endif
  
  #if !defined (__APPLE__) && !defined (MACOSX)
-@@ -470,6 +470,9 @@
+@@ -470,6 +470,9 @@ void GL_Bind (int texnum);
  // ARB_texture_compression defines
  #define GL_COMPRESSED_RGBA_ARB                0x84EE
  
@@ -21,7 +21,7 @@
  #define GL_STENCIL_BACK_FUNC_ATI                    0x8800
  #define GL_STENCIL_BACK_FAIL_ATI                    0x8801
  #define GL_STENCIL_BACK_PASS_DEPTH_FAIL_ATI         0x8802
-@@ -478,6 +481,8 @@
+@@ -478,6 +481,8 @@ void GL_Bind (int texnum);
  typedef void (APIENTRY *PFNGLSTENCILOPSEPARATEATIPROC)(GLenum face, GLenum sfail, GLenum dpfail, GLenum dppass);
  typedef void (APIENTRY *PFNGLSTENCILFUNCSEPARATEATIPROC)(GLenum frontfunc, GLenum backfunc, GLint ref, GLuint mask);
  
@@ -30,7 +30,7 @@
  extern PFNGLSTENCILOPSEPARATEATIPROC qglStencilOpSeparateATI;
  extern PFNGLSTENCILFUNCSEPARATEATIPROC qglStencilFuncSeparateATI;
  
-@@ -1134,8 +1139,13 @@
+@@ -1134,9 +1139,14 @@ extern PFNGLVERTEXATTRIBS4UBVNVPROC qglVertexAttribs4u
  // <AWE> There are some diffs with the function parameters. wgl stuff not present with MacOS X. -DC- and SDL 
  #if defined (__APPLE__) || defined (MACOSX) || defined(SDL) || defined (__glx__)
  
@@ -39,8 +39,18 @@
 +
  typedef void (APIENTRY * PFNGLFLUSHVERTEXARRAYRANGEAPPLEPROC) (GLsizei length, const GLvoid *pointer);
  typedef void (APIENTRY * PFNGLVERTEXARRAYRANGEAPPLEPROC) (GLsizei size, const GLvoid *pointer);
-+
-+#endif
  
++#endif
++
  extern PFNGLFLUSHVERTEXARRAYRANGEAPPLEPROC qglFlushVertexArrayRangeAPPLE;
  extern PFNGLVERTEXARRAYRANGEAPPLEPROC qglVertexArrayRangeAPPLE;
+ 
+@@ -1524,7 +1534,7 @@ extern mirrorplane_t mirrorplanes[NUM_MIRROR_PLANES];
+ extern int mirror_contents;
+ extern int newenvmap;
+ 
+-msurface_t	*causticschain;
++extern msurface_t	*causticschain;
+ extern int	caustics_textures[8];
+ extern qboolean	busy_caustics;
+ 

Modified: head/games/tenebrae/files/patch-linux__Makefile.i386linux
==============================================================================
--- head/games/tenebrae/files/patch-linux__Makefile.i386linux	Wed Sep 30 11:24:09 2020	(r550685)
+++ head/games/tenebrae/files/patch-linux__Makefile.i386linux	Wed Sep 30 11:33:22 2020	(r550686)
@@ -1,6 +1,6 @@
---- ./linux/Makefile.i386linux.orig	Sat Jun 10 12:08:13 2006
-+++ ./linux/Makefile.i386linux	Sat Jun 10 12:12:17 2006
-@@ -18,56 +18,60 @@
+--- linux/Makefile.i386linux.orig	2020-09-30 11:25:10 UTC
++++ linux/Makefile.i386linux
+@@ -18,57 +18,61 @@ NOARCH=noarch
  
  MOUNT_DIR     = ../
  
@@ -54,11 +54,11 @@
  
 -TARGETS=$(BUILDDIR)/bin/tenebrae.run
 +TARGETS=$(BUILDDIR)/bin/tenebrae
-+
+ 
 +all: build_release
 +
 +targets: $(TARGETS)
- 
++
  build_debug:
  	@-mkdir -p $(BUILD_DEBUG_DIR) \
  		$(BUILD_DEBUG_DIR)/bin \
@@ -71,15 +71,16 @@
  		$(BUILD_RELEASE_DIR)/bin \
  		$(BUILD_RELEASE_DIR)/glquake
 -	$(MAKE) targets BUILDDIR=$(BUILD_RELEASE_DIR) CFLAGS="$(RELEASE_CFLAGS)"
--
++	$(MAKE) targets BUILDDIR=$(BUILD_RELEASE_DIR) CFLAGS+="$(RELEASE_CFLAGS)"
+ 
 -all: build_debug build_release
 -
 -targets: $(TARGETS)
-+	$(MAKE) targets BUILDDIR=$(BUILD_RELEASE_DIR) CFLAGS+="$(RELEASE_CFLAGS)"
- 
+-
  #############################################################################
  # GLQuake
-@@ -143,7 +147,7 @@
+ #############################################################################
+@@ -143,7 +147,7 @@ GLQUAKE_OBJS= \
  	$(BUILDDIR)/glquake/snd_dma.o \
  	$(BUILDDIR)/glquake/snd_mem.o \
  	$(BUILDDIR)/glquake/snd_mix.o \
@@ -88,7 +89,7 @@
  	$(BUILDDIR)/glquake/gl_vidlinuxglx.o \
  	$(BUILDDIR)/glquake/math.o \
  	$(BUILDDIR)/glquake/worlda.o \
-@@ -154,7 +158,7 @@
+@@ -154,7 +158,7 @@ GLQUAKE_OBJS= \
  	$(BUILDDIR)/glquake/te_scripts.o 
  
  
@@ -97,7 +98,7 @@
  	$(CC) $(CFLAGS) -o $@ $(GLQUAKE_OBJS) $(LDFLAGS)
  
  $(BUILDDIR)/glquake/cl_demo.o :      $(MOUNT_DIR)/cl_demo.c
-@@ -361,7 +365,7 @@
+@@ -361,7 +365,7 @@ $(BUILDDIR)/glquake/snd_mem.o :      $(MOUNT_DIR)/snd_
  $(BUILDDIR)/glquake/snd_mix.o :      $(MOUNT_DIR)/snd_mix.c
  	$(DO_GL_CC)
  

Modified: head/games/tenebrae/files/patch-net.h
==============================================================================
--- head/games/tenebrae/files/patch-net.h	Wed Sep 30 11:24:09 2020	(r550685)
+++ head/games/tenebrae/files/patch-net.h	Wed Sep 30 11:33:22 2020	(r550686)
@@ -1,6 +1,6 @@
---- ./net.h.orig	Sat Jun 10 12:08:13 2006
-+++ ./net.h	Sat Jun 10 12:08:13 2006
-@@ -239,7 +239,7 @@
+--- net.h.orig	2020-09-30 11:25:10 UTC
++++ net.h
+@@ -239,7 +239,7 @@ typedef struct
  extern int hostCacheCount;
  extern hostcache_t hostcache[HOSTCACHESIZE];
  

Modified: head/games/tenebrae/files/patch-quakeasm.h
==============================================================================
--- head/games/tenebrae/files/patch-quakeasm.h	Wed Sep 30 11:24:09 2020	(r550685)
+++ head/games/tenebrae/files/patch-quakeasm.h	Wed Sep 30 11:33:22 2020	(r550686)
@@ -1,6 +1,6 @@
---- ./quakeasm.h.orig	Sat Jun 10 12:08:13 2006
-+++ ./quakeasm.h	Sat Jun 10 12:08:13 2006
-@@ -31,7 +31,7 @@
+--- quakeasm.h.orig	2020-09-30 11:25:10 UTC
++++ quakeasm.h
+@@ -31,7 +31,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston,
  
  #endif
  

Modified: head/games/tenebrae/files/patch-quakedef.h
==============================================================================
--- head/games/tenebrae/files/patch-quakedef.h	Wed Sep 30 11:24:09 2020	(r550685)
+++ head/games/tenebrae/files/patch-quakedef.h	Wed Sep 30 11:33:22 2020	(r550686)
@@ -1,6 +1,6 @@
---- ./quakedef.h.orig	Sat Jun 10 12:08:13 2006
-+++ ./quakedef.h	Sat Jun 10 12:08:13 2006
-@@ -74,11 +74,6 @@
+--- quakedef.h.orig	2020-09-30 11:25:10 UTC
++++ quakedef.h
+@@ -74,11 +74,6 @@ void	VID_UnlockBuffer (void);
  
  #endif
  

Modified: head/games/tenebrae/files/patch-snd_sdl.c
==============================================================================
--- head/games/tenebrae/files/patch-snd_sdl.c	Wed Sep 30 11:24:09 2020	(r550685)
+++ head/games/tenebrae/files/patch-snd_sdl.c	Wed Sep 30 11:33:22 2020	(r550686)
@@ -1,6 +1,6 @@
---- ./snd_sdl.c.orig	Sat Jun 10 12:08:13 2006
-+++ ./snd_sdl.c	Sat Jun 10 12:08:13 2006
-@@ -94,7 +94,7 @@
+--- snd_sdl.c.orig	2020-09-30 11:25:10 UTC
++++ snd_sdl.c
+@@ -94,7 +94,7 @@ qboolean SNDDMA_Init(void)
  	shm = &the_shm;
  	shm->splitbuffer = 0;
  	shm->samplebits = (obtained.format & 0xFF);
@@ -9,7 +9,7 @@
          shm->channels = obtained.channels;
  	shm->samples = obtained.samples*shm->channels;
  	shm->samplepos = 0;
-@@ -119,3 +119,12 @@
+@@ -119,3 +119,12 @@ void SNDDMA_Shutdown(void)
  	}
  }
  

Modified: head/games/tenebrae/files/patch-sys_dosa.s
==============================================================================
--- head/games/tenebrae/files/patch-sys_dosa.s	Wed Sep 30 11:24:09 2020	(r550685)
+++ head/games/tenebrae/files/patch-sys_dosa.s	Wed Sep 30 11:33:22 2020	(r550686)
@@ -1,5 +1,5 @@
---- ./sys_dosa.s.orig	Sat Jun 10 12:08:13 2006
-+++ ./sys_dosa.s	Sat Jun 10 12:08:13 2006
+--- sys_dosa.s.orig	2020-09-30 11:25:10 UTC
++++ sys_dosa.s
 @@ -5,6 +5,7 @@
  #include "asm_i386.h"
  #include "quakeasm.h"
@@ -8,7 +8,7 @@
  
  	.data
  
-@@ -93,3 +94,4 @@
+@@ -93,3 +94,4 @@ C(Sys_SetFPCW):
  
  	ret
  

Modified: head/games/tenebrae/files/patch-sys_linux.c
==============================================================================
--- head/games/tenebrae/files/patch-sys_linux.c	Wed Sep 30 11:24:09 2020	(r550685)
+++ head/games/tenebrae/files/patch-sys_linux.c	Wed Sep 30 11:33:22 2020	(r550686)
@@ -1,6 +1,6 @@
---- ./sys_linux.c.orig	Sat Jun 10 12:08:13 2006
-+++ ./sys_linux.c	Sat Jun 10 12:08:13 2006
-@@ -27,7 +27,7 @@
+--- sys_linux.c.orig	2020-09-30 11:25:10 UTC
++++ sys_linux.c
+@@ -27,7 +27,7 @@ int nostdout = 0;
  // user preference directory
  
  #if defined (USERPREF_DIR)

Modified: head/games/tenebrae/files/patch-sys_uxfindfirst.c
==============================================================================
--- head/games/tenebrae/files/patch-sys_uxfindfirst.c	Wed Sep 30 11:24:09 2020	(r550685)
+++ head/games/tenebrae/files/patch-sys_uxfindfirst.c	Wed Sep 30 11:33:22 2020	(r550686)
@@ -1,6 +1,6 @@
---- ./sys_uxfindfirst.c.orig	Sat Jun 10 12:08:13 2006
-+++ ./sys_uxfindfirst.c	Sat Jun 10 12:08:13 2006
-@@ -36,7 +36,7 @@
+--- sys_uxfindfirst.c.orig	2020-09-30 11:25:10 UTC
++++ sys_uxfindfirst.c
+@@ -36,7 +36,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston,
  #include "quakedef.h"
  #include <errno.h>
  



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202009301133.08UBXNb2043631>