Remove games/quake2 on request from bmercer@
The games/quake2 port has been superseded by games/yquake2 the port has also been disabled from the build 2 months ago (rev 1.326 by bmercer)
This commit is contained in:
parent
0b175d320e
commit
dcbdfa51a1
@ -1,39 +0,0 @@
|
||||
# $OpenBSD: Makefile,v 1.28 2016/03/20 18:17:50 naddy Exp $
|
||||
|
||||
ONLY_FOR_ARCHS= amd64 i386
|
||||
|
||||
COMMENT= first person shooter
|
||||
|
||||
DISTNAME= quake2-0.3
|
||||
REVISION = 13
|
||||
CATEGORIES= games
|
||||
|
||||
HOMEPAGE= http://www.quakeforge.net/
|
||||
MAINTAINER= Claudio Jeker <claudio@openbsd.org>
|
||||
|
||||
# GPL
|
||||
PERMIT_PACKAGE_CDROM= Yes
|
||||
|
||||
WANTLIB= ICE GL SM X11 Xau Xdmcp Xext Xxf86dga \
|
||||
Xxf86vm c m pthread pthread-stubs sndio usbhid xcb \
|
||||
SDL X11-xcb Xdamage Xfixes drm glapi stdc++ \
|
||||
xcb-dri2 xcb-glx
|
||||
|
||||
MASTER_SITES= https://distfiles.nl/
|
||||
|
||||
MODULES= converters/libiconv
|
||||
LIB_DEPENDS= devel/sdl
|
||||
|
||||
SEPARATE_BUILD= Yes
|
||||
LIBTOOL_FLAGS= --tag=disable-static
|
||||
CONFIGURE_STYLE= gnu
|
||||
CONFIGURE_ARGS+= --with-opengl=${X11BASE} --without-svgalib \
|
||||
--without-ao
|
||||
NO_TEST= Yes
|
||||
|
||||
CFLAGS+= -pthread -g
|
||||
|
||||
post-extract:
|
||||
cp ${FILESDIR}/snd_sndio.c ${WRKSRC}/src
|
||||
|
||||
.include <bsd.port.mk>
|
@ -1,2 +0,0 @@
|
||||
SHA256 (quake2-0.3.tar.gz) = jilDB6Nk/n9OJyh9fZ1+D6uhFyYX31O7pRcTtr1Mhg0=
|
||||
SIZE (quake2-0.3.tar.gz) = 1757285
|
@ -1,174 +0,0 @@
|
||||
/*
|
||||
* Copyright (c) 2010 Jacob Meuser <jakemsr@sdf.lonestar.org>
|
||||
*
|
||||
* Permission to use, copy, modify, and distribute this software for any
|
||||
* purpose with or without fee is hereby granted, provided that the above
|
||||
* copyright notice and this permission notice appear in all copies.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
||||
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
||||
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
||||
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
||||
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
||||
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
||||
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
#include <fcntl.h>
|
||||
#include <poll.h>
|
||||
#include <errno.h>
|
||||
|
||||
#include <sndio.h>
|
||||
|
||||
#include "client.h"
|
||||
#include "snd_loc.h"
|
||||
|
||||
static struct sio_hdl *hdl;
|
||||
static int snd_inited;
|
||||
|
||||
unsigned char *dma_buffer;
|
||||
size_t dma_buffer_size, dma_ptr;
|
||||
|
||||
struct sndinfo *si;
|
||||
|
||||
qboolean
|
||||
SNDDMA_Init(struct sndinfo *s)
|
||||
{
|
||||
struct sio_par par;
|
||||
int i;
|
||||
|
||||
if (snd_inited)
|
||||
return true;
|
||||
|
||||
si = s;
|
||||
|
||||
/* si->device->string */
|
||||
hdl = sio_open(NULL, SIO_PLAY, 1);
|
||||
if (hdl == NULL) {
|
||||
si->Com_Printf("Could not open sndio device\n");
|
||||
return false;
|
||||
}
|
||||
|
||||
si->dma->samplebits = (int)si->bits->value;
|
||||
if (si->dma->samplebits != 8 && si->dma->samplebits != 16) {
|
||||
si->Com_Printf("using 16-bit samples\n");
|
||||
si->dma->samplebits = 16;
|
||||
}
|
||||
si->dma->channels = (int)si->channels->value;
|
||||
if (si->dma->channels != 1 && si->dma->channels != 2) {
|
||||
si->Com_Printf("using 2 channels\n");
|
||||
si->dma->channels = 2;
|
||||
}
|
||||
si->dma->speed = (int)si->speed->value;
|
||||
if (!si->dma->speed)
|
||||
si->dma->speed = 44100;
|
||||
|
||||
sio_initpar(&par);
|
||||
par.pchan = si->dma->channels;
|
||||
par.rate = si->dma->speed;
|
||||
par.bits = si->dma->samplebits;
|
||||
par.sig = par.bits == 16 ? 1 : 0;
|
||||
par.le = SIO_LE_NATIVE;
|
||||
par.appbufsz = par.rate / 10; /* 1/10 second latency */
|
||||
|
||||
if (!sio_setpar(hdl, &par) || !sio_getpar(hdl, &par)) {
|
||||
si->Com_Printf("Error setting audio parameters\n");
|
||||
sio_close(hdl);
|
||||
return false;
|
||||
}
|
||||
if ((par.pchan != 1 && par.pchan != 2) ||
|
||||
!((par.bits == 16 && par.sig == 1) ||
|
||||
(par.bits == 8 && par.sig == 0))) {
|
||||
si->Com_Printf("Could not set appropriate audio parameters\n");
|
||||
sio_close(hdl);
|
||||
return false;
|
||||
}
|
||||
si->dma->speed = par.rate;
|
||||
si->dma->channels = par.pchan;
|
||||
si->dma->samplebits = par.bits;
|
||||
|
||||
/*
|
||||
* find the smallest power of two larger than the buffer size
|
||||
* and use it as the internal buffer's size
|
||||
*/
|
||||
for (i = 1; i < par.appbufsz; i <<= 2)
|
||||
; /* nothing */
|
||||
si->dma->samples = i * par.pchan;
|
||||
|
||||
dma_buffer_size = si->dma->samples * si->dma->samplebits / 8;
|
||||
dma_buffer = calloc(1, dma_buffer_size);
|
||||
if (dma_buffer == NULL) {
|
||||
si->Com_Printf("Could not allocate audio ring buffer\n");
|
||||
return false;
|
||||
}
|
||||
dma_ptr = 0;
|
||||
si->dma->buffer = dma_buffer;
|
||||
if (!sio_start(hdl)) {
|
||||
si->Com_Printf("Could not start audio\n");
|
||||
sio_close(hdl);
|
||||
return false;
|
||||
}
|
||||
si->dma->submission_chunk = 1;
|
||||
si->dma->samplepos = 0;
|
||||
snd_inited = true;
|
||||
return true;
|
||||
}
|
||||
|
||||
void
|
||||
SNDDMA_Shutdown(void)
|
||||
{
|
||||
if (snd_inited == true) {
|
||||
sio_close(hdl);
|
||||
snd_inited = false;
|
||||
}
|
||||
free(dma_buffer);
|
||||
}
|
||||
|
||||
int
|
||||
SNDDMA_GetDMAPos(void)
|
||||
{
|
||||
if (!snd_inited)
|
||||
return (0);
|
||||
si->dma->samplepos = dma_ptr / (si->dma->samplebits / 8);
|
||||
return si->dma->samplepos;
|
||||
}
|
||||
|
||||
void
|
||||
SNDDMA_Submit(void)
|
||||
{
|
||||
struct pollfd pfd;
|
||||
size_t count, todo, avail;
|
||||
int n;
|
||||
|
||||
n = sio_pollfd(hdl, &pfd, POLLOUT);
|
||||
while (poll(&pfd, n, 0) < 0 && errno == EINTR)
|
||||
;
|
||||
if (!(sio_revents(hdl, &pfd) & POLLOUT))
|
||||
return;
|
||||
avail = dma_buffer_size;
|
||||
while (avail > 0) {
|
||||
todo = dma_buffer_size - dma_ptr;
|
||||
if (todo > avail)
|
||||
todo = avail;
|
||||
count = sio_write(hdl, dma_buffer + dma_ptr, todo);
|
||||
if (count == 0)
|
||||
break;
|
||||
dma_ptr += count;
|
||||
if (dma_ptr >= dma_buffer_size)
|
||||
dma_ptr -= dma_buffer_size;
|
||||
avail -= count;
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
SNDDMA_BeginPainting(void)
|
||||
{
|
||||
}
|
@ -1,52 +0,0 @@
|
||||
$OpenBSD: patch-configure,v 1.3 2010/09/01 00:29:07 jakemsr Exp $
|
||||
--- configure.orig Tue Mar 16 02:38:24 2004
|
||||
+++ configure Mon May 3 02:17:09 2010
|
||||
@@ -21844,10 +21844,10 @@ rm -f conftest.err conftest.$ac_objext \
|
||||
|
||||
|
||||
fi
|
||||
-if test "x$HAVE_SDL" = xyes ; then
|
||||
- SNDDRIVERS="$SNDDRIVERS snd_sdl.la"
|
||||
- BUILD_SNDSDL="yes"
|
||||
-fi
|
||||
+#if test "x$HAVE_SDL" = xyes ; then
|
||||
+# SNDDRIVERS="$SNDDRIVERS snd_sdl.la"
|
||||
+# BUILD_SNDSDL="yes"
|
||||
+#fi
|
||||
|
||||
|
||||
if test "x$BUILD_SNDSDL" = xyes; then
|
||||
@@ -22152,7 +22152,7 @@ rm -f conftest*
|
||||
fi
|
||||
|
||||
|
||||
-
|
||||
+HAVE_OSS="no"
|
||||
if test "x$HAVE_OSS" = xyes; then
|
||||
BUILD_SNDOSS_TRUE=
|
||||
BUILD_SNDOSS_FALSE='#'
|
||||
@@ -22161,7 +22161,7 @@ else
|
||||
BUILD_SNDOSS_FALSE=
|
||||
fi
|
||||
|
||||
-SNDDRIVERS="$SNDDRIVERS snd_oss.la"
|
||||
+# SNDDRIVERS="$SNDDRIVERS snd_oss.la"
|
||||
|
||||
|
||||
HAVE_AO=no
|
||||
@@ -22854,12 +22854,11 @@ fi
|
||||
|
||||
HAVE_SOLARIS="$ac_cv_header_sys_audioio_h"
|
||||
|
||||
-
|
||||
if test "x$HAVE_SOLARIS" = xyes ; then
|
||||
- SNDDRIVERS="$SNDDRIVERS snd_solaris.la"
|
||||
- BUILD_SNDSOLARIS="yes"
|
||||
+ # unmaintained/broken/solaris specific
|
||||
+ # SNDDRIVERS="$SNDDRIVERS snd_solaris.la"
|
||||
+ BUILD_SNDSOLARIS="no"
|
||||
fi
|
||||
-
|
||||
|
||||
if test "x$BUILD_SNDSOLARIS" = xyes; then
|
||||
BUILD_SNDSOLARIS_TRUE=
|
@ -1,15 +0,0 @@
|
||||
$OpenBSD: patch-data_baseq2_config_cfg,v 1.1 2007/05/29 14:49:16 claudio Exp $
|
||||
--- data/baseq2/config.cfg.orig Tue May 29 05:26:39 2007
|
||||
+++ data/baseq2/config.cfg Tue May 29 05:28:15 2007
|
||||
@@ -116,9 +116,9 @@ set hostname "noname"
|
||||
set sndbits "16"
|
||||
set sndspeed "0"
|
||||
set sndchannels "2"
|
||||
-set snddevice "/dev/dsp"
|
||||
+set snddevice "/dev/audio"
|
||||
set cd_volume "1"
|
||||
-set cd_dev "/dev/cdrom"
|
||||
+set cd_dev "/dev/rcd0c"
|
||||
set cl_drawfps "1"
|
||||
set in_dgamouse "1"
|
||||
set vid_ref "softx"
|
@ -1,187 +0,0 @@
|
||||
$OpenBSD: patch-src_Makefile_in,v 1.1 2010/09/01 00:29:07 jakemsr Exp $
|
||||
--- src/Makefile.in.orig Tue Mar 16 02:38:18 2004
|
||||
+++ src/Makefile.in Mon May 3 02:11:04 2010
|
||||
@@ -16,7 +16,7 @@
|
||||
|
||||
|
||||
|
||||
-SOURCES = $(ref_glx_la_SOURCES) $(EXTRA_ref_glx_la_SOURCES) $(ref_sdlgl_la_SOURCES) $(ref_soft_la_SOURCES) $(EXTRA_ref_soft_la_SOURCES) $(ref_softsdl_la_SOURCES) $(EXTRA_ref_softsdl_la_SOURCES) $(ref_softx_la_SOURCES) $(EXTRA_ref_softx_la_SOURCES) $(ref_tdfx_la_SOURCES) $(EXTRA_ref_tdfx_la_SOURCES) $(snd_alsa_la_SOURCES) $(snd_ao_la_SOURCES) $(snd_oss_la_SOURCES) $(snd_sdl_la_SOURCES) $(snd_solaris_la_SOURCES) $(quake2_SOURCES) $(EXTRA_quake2_SOURCES)
|
||||
+SOURCES = $(ref_glx_la_SOURCES) $(EXTRA_ref_glx_la_SOURCES) $(ref_sdlgl_la_SOURCES) $(ref_soft_la_SOURCES) $(EXTRA_ref_soft_la_SOURCES) $(ref_softsdl_la_SOURCES) $(EXTRA_ref_softsdl_la_SOURCES) $(ref_softx_la_SOURCES) $(EXTRA_ref_softx_la_SOURCES) $(ref_tdfx_la_SOURCES) $(EXTRA_ref_tdfx_la_SOURCES) $(snd_alsa_la_SOURCES) $(snd_ao_la_SOURCES) $(snd_oss_la_SOURCES) $(snd_sndio_la_SOURCES) $(snd_sdl_la_SOURCES) $(snd_solaris_la_SOURCES) $(quake2_SOURCES) $(EXTRA_quake2_SOURCES)
|
||||
|
||||
srcdir = @srcdir@
|
||||
top_srcdir = @top_srcdir@
|
||||
@@ -178,6 +178,10 @@ snd_oss_la_DEPENDENCIES =
|
||||
am__snd_oss_la_SOURCES_DIST = snd_oss.c
|
||||
@BUILD_SNDOSS_TRUE@am_snd_oss_la_OBJECTS = snd_oss_la-snd_oss.lo
|
||||
snd_oss_la_OBJECTS = $(am_snd_oss_la_OBJECTS)
|
||||
+snd_sndio_la_DEPENDENCIES =
|
||||
+am__snd_sndio_la_SOURCES_DIST = snd_sndio.c
|
||||
+am_snd_sndio_la_OBJECTS = snd_sndio_la-snd_sndio.lo
|
||||
+snd_sndio_la_OBJECTS = $(am_snd_sndio_la_OBJECTS)
|
||||
snd_sdl_la_DEPENDENCIES =
|
||||
am__snd_sdl_la_SOURCES_DIST = snd_sdl.c
|
||||
@BUILD_SNDSDL_TRUE@am_snd_sdl_la_OBJECTS = snd_sdl_la-snd_sdl.lo
|
||||
@@ -267,6 +271,7 @@ am__depfiles_maybe = depfiles
|
||||
@AMDEP_TRUE@ ./$(DEPDIR)/quake2-snd_mem.Po \
|
||||
@AMDEP_TRUE@ ./$(DEPDIR)/quake2-snd_mix.Po \
|
||||
@AMDEP_TRUE@ ./$(DEPDIR)/quake2-snd_oss.Po \
|
||||
+@AMDEP_TRUE@ ./$(DEPDIR)/quake2-snd_sndio.Po \
|
||||
@AMDEP_TRUE@ ./$(DEPDIR)/quake2-snd_sdl.Po \
|
||||
@AMDEP_TRUE@ ./$(DEPDIR)/quake2-sv_ccmds.Po \
|
||||
@AMDEP_TRUE@ ./$(DEPDIR)/quake2-sv_ents.Po \
|
||||
@@ -388,6 +393,7 @@ am__depfiles_maybe = depfiles
|
||||
@AMDEP_TRUE@ ./$(DEPDIR)/snd_alsa_la-snd_alsa.Plo \
|
||||
@AMDEP_TRUE@ ./$(DEPDIR)/snd_ao_la-snd_ao.Plo \
|
||||
@AMDEP_TRUE@ ./$(DEPDIR)/snd_oss_la-snd_oss.Plo \
|
||||
+@AMDEP_TRUE@ ./$(DEPDIR)/snd_sndio_la-snd_sndio.Plo \
|
||||
@AMDEP_TRUE@ ./$(DEPDIR)/snd_sdl_la-snd_sdl.Plo \
|
||||
@AMDEP_TRUE@ ./$(DEPDIR)/snd_solaris_la-snd_solaris.Plo
|
||||
CCASCOMPILE = $(CCAS) $(AM_CCASFLAGS) $(CCASFLAGS)
|
||||
@@ -407,7 +413,7 @@ SOURCES = $(ref_glx_la_SOURCES) $(EXTRA_ref_glx_la_SOU
|
||||
$(EXTRA_ref_softsdl_la_SOURCES) $(ref_softx_la_SOURCES) \
|
||||
$(EXTRA_ref_softx_la_SOURCES) $(ref_tdfx_la_SOURCES) \
|
||||
$(EXTRA_ref_tdfx_la_SOURCES) $(snd_alsa_la_SOURCES) \
|
||||
- $(snd_ao_la_SOURCES) $(snd_oss_la_SOURCES) \
|
||||
+ $(snd_ao_la_SOURCES) $(snd_oss_la_SOURCES) $(snd_sndio_la_SOURCES) \
|
||||
$(snd_sdl_la_SOURCES) $(snd_solaris_la_SOURCES) \
|
||||
$(quake2_SOURCES) $(EXTRA_quake2_SOURCES)
|
||||
DIST_SOURCES = $(am__ref_glx_la_SOURCES_DIST) \
|
||||
@@ -419,6 +425,7 @@ DIST_SOURCES = $(am__ref_glx_la_SOURCES_DIST) \
|
||||
$(am__ref_tdfx_la_SOURCES_DIST) $(EXTRA_ref_tdfx_la_SOURCES) \
|
||||
$(am__snd_alsa_la_SOURCES_DIST) $(am__snd_ao_la_SOURCES_DIST) \
|
||||
$(am__snd_oss_la_SOURCES_DIST) $(am__snd_sdl_la_SOURCES_DIST) \
|
||||
+ $(am__snd_sndio_la_SOURCES_DIST) \
|
||||
$(am__snd_solaris_la_SOURCES_DIST) $(am__quake2_SOURCES_DIST) \
|
||||
$(EXTRA_quake2_SOURCES)
|
||||
RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
|
||||
@@ -538,7 +545,7 @@ SDL_CONFIG = @SDL_CONFIG@
|
||||
SDL_LIBS = @SDL_LIBS@
|
||||
SET_MAKE = @SET_MAKE@
|
||||
SHELL = @SHELL@
|
||||
-SNDDRIVERS = @SNDDRIVERS@
|
||||
+SNDDRIVERS = @SNDDRIVERS@ snd_sndio.la
|
||||
SOLARIS_CFLAGS = @SOLARIS_CFLAGS@
|
||||
SOLARIS_LIBS = @SOLARIS_LIBS@
|
||||
STRIP = @STRIP@
|
||||
@@ -602,10 +609,10 @@ unamepath = @unamepath@
|
||||
SUBDIRS = . baseq2 ctf xatrix rogue
|
||||
std_cflags = -pipe @WARN_CFLAGS@ @OPT_CFLAGS@
|
||||
module_ldflags = -module -avoid-version -rpath $(pkglibdir)
|
||||
-pkglib_LTLIBRARIES = @VID_REFS@ @SNDDRIVERS@
|
||||
+pkglib_LTLIBRARIES = @VID_REFS@ @SNDDRIVERS@ snd_sndio.la
|
||||
EXTRA_LTLIBRARIES = ref_soft.la ref_softx.la ref_softsdl.la \
|
||||
ref_glx.la ref_sdlgl.la ref_tdfx.la \
|
||||
- snd_oss.la snd_alsa.la snd_ao.la snd_sdl.la \
|
||||
+ snd_oss.la snd_sndio.la snd_alsa.la snd_ao.la snd_sdl.la \
|
||||
snd_solaris.la
|
||||
|
||||
|
||||
@@ -668,7 +675,7 @@ EXTRA_ref_tdfx_la_SOURCES = rw_in_svgalib.c gl_fxmesa.
|
||||
EXTRA_ref_softx_la_SOURCES = rw_x11.c
|
||||
EXTRA_quake2_SOURCES = snd_mixa.S cd_sdl.c snd_sdl.c snd_dma.c \
|
||||
snd_mix.c snd_mem.c cd.c \
|
||||
- snd_oss.c snd_ao.c snd_alsa.c
|
||||
+ snd_oss.c snd_sndio.c snd_ao.c snd_alsa.c
|
||||
|
||||
quake2_CFLAGS = $(std_cflags)
|
||||
quake2_LDADD = @DL_LIBS@ @SYSTEM_LIBS@ -lm
|
||||
@@ -679,6 +686,12 @@ quake2_LDADD = @DL_LIBS@ @SYSTEM_LIBS@ -lm
|
||||
@BUILD_SNDOSS_TRUE@snd_oss_la_LIBADD = @OSS_LIBS@
|
||||
@BUILD_SNDOSS_TRUE@snd_oss_la_LDFLAGS = $(module_ldflags)
|
||||
|
||||
+# sndio sound driver
|
||||
+snd_sndio_la_SOURCES = snd_sndio.c
|
||||
+snd_sndio_la_CFLAGS = $(std_cflags) -fPIC
|
||||
+snd_sndio_la_LIBADD = -lsndio
|
||||
+snd_sndio_la_LDFLAGS = $(module_ldflags)
|
||||
+
|
||||
# alsa sound driver
|
||||
@BUILD_SNDALSA_TRUE@snd_alsa_la_SOURCES = snd_alsa.c
|
||||
@BUILD_SNDALSA_TRUE@snd_alsa_la_CFLAGS = $(std_cflags) -fPIC @ALSA_CFLAGS@
|
||||
@@ -822,6 +835,8 @@ snd_ao.la: $(snd_ao_la_OBJECTS) $(snd_ao_la_DEPENDENCI
|
||||
$(LINK) $(snd_ao_la_LDFLAGS) $(snd_ao_la_OBJECTS) $(snd_ao_la_LIBADD) $(LIBS)
|
||||
snd_oss.la: $(snd_oss_la_OBJECTS) $(snd_oss_la_DEPENDENCIES)
|
||||
$(LINK) $(snd_oss_la_LDFLAGS) $(snd_oss_la_OBJECTS) $(snd_oss_la_LIBADD) $(LIBS)
|
||||
+snd_sndio.la: $(snd_sndio_la_OBJECTS) $(snd_sndio_la_DEPENDENCIES)
|
||||
+ $(LINK) $(snd_sndio_la_LDFLAGS) $(snd_sndio_la_OBJECTS) $(snd_sndio_la_LIBADD) $(LIBS)
|
||||
snd_sdl.la: $(snd_sdl_la_OBJECTS) $(snd_sdl_la_DEPENDENCIES)
|
||||
$(LINK) $(snd_sdl_la_LDFLAGS) $(snd_sdl_la_OBJECTS) $(snd_sdl_la_LIBADD) $(LIBS)
|
||||
snd_solaris.la: $(snd_solaris_la_OBJECTS) $(snd_solaris_la_DEPENDENCIES)
|
||||
@@ -904,6 +919,7 @@ distclean-compile:
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/quake2-snd_mem.Po@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/quake2-snd_mix.Po@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/quake2-snd_oss.Po@am__quote@
|
||||
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/quake2-snd_sndio.Po@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/quake2-snd_sdl.Po@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/quake2-sv_ccmds.Po@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/quake2-sv_ents.Po@am__quote@
|
||||
@@ -1025,6 +1041,7 @@ distclean-compile:
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/snd_alsa_la-snd_alsa.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/snd_ao_la-snd_ao.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/snd_oss_la-snd_oss.Plo@am__quote@
|
||||
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/snd_sndio_la-snd_sndio.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/snd_sdl_la-snd_sdl.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/snd_solaris_la-snd_solaris.Plo@am__quote@
|
||||
|
||||
@@ -3701,6 +3718,30 @@ snd_oss_la-snd_oss.lo: snd_oss.c
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||
@am__fastdepCC_FALSE@ $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(snd_oss_la_CFLAGS) $(CFLAGS) -c -o snd_oss_la-snd_oss.lo `test -f 'snd_oss.c' || echo '$(srcdir)/'`snd_oss.c
|
||||
|
||||
+snd_sndio_la-snd_sndio.o: snd_sndio.c
|
||||
+@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(snd_sndio_la_CFLAGS) $(CFLAGS) -MT snd_sndio_la-snd_sndio.o -MD -MP -MF "$(DEPDIR)/snd_sndio_la-snd_sndio.Tpo" -c -o snd_sndio_la-snd_sndio.o `test -f 'snd_sndio.c' || echo '$(srcdir)/'`snd_sndio.c; \
|
||||
+@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/snd_sndio_la-snd_sndio.Tpo" "$(DEPDIR)/snd_sndio_la-snd_sndio.Po"; else rm -f "$(DEPDIR)/snd_sndio_la-snd_sndio.Tpo"; exit 1; fi
|
||||
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='snd_sndio.c' object='snd_sndio_la-snd_sndio.o' libtool=no @AMDEPBACKSLASH@
|
||||
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/snd_sndio_la-snd_sndio.Po' tmpdepfile='$(DEPDIR)/snd_sndio_la-snd_sndio.TPo' @AMDEPBACKSLASH@
|
||||
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(snd_sndio_la_CFLAGS) $(CFLAGS) -c -o snd_sndio_la-snd_sndio.o `test -f 'snd_sndio.c' || echo '$(srcdir)/'`snd_sndio.c
|
||||
+
|
||||
+snd_sndio_la-snd_sndio.obj: snd_sndio.c
|
||||
+@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(snd_sndio_la_CFLAGS) $(CFLAGS) -MT snd_sndio_la-snd_sndio.obj -MD -MP -MF "$(DEPDIR)/snd_sndio_la-snd_sndio.Tpo" -c -o snd_sndio_la-snd_sndio.obj `if test -f 'snd_sndio.c'; then $(CYGPATH_W) 'snd_sndio.c'; else $(CYGPATH_W) '$(srcdir)/snd_sndio.c'; fi`; \
|
||||
+@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/snd_sndio_la-snd_sndio.Tpo" "$(DEPDIR)/snd_sndio_la-snd_sndio.Po"; else rm -f "$(DEPDIR)/snd_sndio_la-snd_sndio.Tpo"; exit 1; fi
|
||||
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='snd_sndio.c' object='snd_sndio_la-snd_sndio.obj' libtool=no @AMDEPBACKSLASH@
|
||||
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/snd_sndio_la-snd_sndio.Po' tmpdepfile='$(DEPDIR)/snd_sndio_la-snd_sndio.TPo' @AMDEPBACKSLASH@
|
||||
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(snd_sndio_la_CFLAGS) $(CFLAGS) -c -o snd_sndio_la-snd_sndio.obj `if test -f 'snd_sndio.c'; then $(CYGPATH_W) 'snd_sndio.c'; else $(CYGPATH_W) '$(srcdir)/snd_sndio.c'; fi`
|
||||
+
|
||||
+snd_sndio_la-snd_sndio.lo: snd_sndio.c
|
||||
+@am__fastdepCC_TRUE@ if $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(snd_sndio_la_CFLAGS) $(CFLAGS) -MT snd_sndio_la-snd_sndio.lo -MD -MP -MF "$(DEPDIR)/snd_sndio_la-snd_sndio.Tpo" -c -o snd_sndio_la-snd_sndio.lo `test -f 'snd_sndio.c' || echo '$(srcdir)/'`snd_sndio.c; \
|
||||
+@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/snd_sndio_la-snd_sndio.Tpo" "$(DEPDIR)/snd_sndio_la-snd_sndio.Plo"; else rm -f "$(DEPDIR)/snd_sndio_la-snd_sndio.Tpo"; exit 1; fi
|
||||
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='snd_sndio.c' object='snd_sndio_la-snd_sndio.lo' libtool=yes @AMDEPBACKSLASH@
|
||||
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/snd_sndio_la-snd_sndio.Plo' tmpdepfile='$(DEPDIR)/snd_sndio_la-snd_sndio.TPlo' @AMDEPBACKSLASH@
|
||||
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||
+@am__fastdepCC_FALSE@ $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(snd_sndio_la_CFLAGS) $(CFLAGS) -c -o snd_sndio_la-snd_sndio.lo `test -f 'snd_sndio.c' || echo '$(srcdir)/'`snd_sndio.c
|
||||
+
|
||||
snd_sdl_la-snd_sdl.o: snd_sdl.c
|
||||
@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(snd_sdl_la_CFLAGS) $(CFLAGS) -MT snd_sdl_la-snd_sdl.o -MD -MP -MF "$(DEPDIR)/snd_sdl_la-snd_sdl.Tpo" -c -o snd_sdl_la-snd_sdl.o `test -f 'snd_sdl.c' || echo '$(srcdir)/'`snd_sdl.c; \
|
||||
@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/snd_sdl_la-snd_sdl.Tpo" "$(DEPDIR)/snd_sdl_la-snd_sdl.Po"; else rm -f "$(DEPDIR)/snd_sdl_la-snd_sdl.Tpo"; exit 1; fi
|
||||
@@ -4924,6 +4965,30 @@ quake2-snd_oss.lo: snd_oss.c
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/quake2-snd_oss.Plo' tmpdepfile='$(DEPDIR)/quake2-snd_oss.TPlo' @AMDEPBACKSLASH@
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||
@am__fastdepCC_FALSE@ $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quake2_CFLAGS) $(CFLAGS) -c -o quake2-snd_oss.lo `test -f 'snd_oss.c' || echo '$(srcdir)/'`snd_oss.c
|
||||
+
|
||||
+quake2-snd_sndio.o: snd_sndio.c
|
||||
+@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quake2_CFLAGS) $(CFLAGS) -MT quake2-snd_sndio.o -MD -MP -MF "$(DEPDIR)/quake2-snd_sndio.Tpo" -c -o quake2-snd_sndio.o `test -f 'snd_sndio.c' || echo '$(srcdir)/'`snd_sndio.c; \
|
||||
+@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/quake2-snd_sndio.Tpo" "$(DEPDIR)/quake2-snd_sndio.Po"; else rm -f "$(DEPDIR)/quake2-snd_sndio.Tpo"; exit 1; fi
|
||||
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='snd_sndio.c' object='quake2-snd_sndio.o' libtool=no @AMDEPBACKSLASH@
|
||||
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/quake2-snd_sndio.Po' tmpdepfile='$(DEPDIR)/quake2-snd_sndio.TPo' @AMDEPBACKSLASH@
|
||||
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quake2_CFLAGS) $(CFLAGS) -c -o quake2-snd_sndio.o `test -f 'snd_sndio.c' || echo '$(srcdir)/'`snd_sndio.c
|
||||
+
|
||||
+quake2-snd_sndio.obj: snd_sndio.c
|
||||
+@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quake2_CFLAGS) $(CFLAGS) -MT quake2-snd_sndio.obj -MD -MP -MF "$(DEPDIR)/quake2-snd_sndio.Tpo" -c -o quake2-snd_sndio.obj `if test -f 'snd_sndio.c'; then $(CYGPATH_W) 'snd_sndio.c'; else $(CYGPATH_W) '$(srcdir)/snd_sndio.c'; fi`; \
|
||||
+@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/quake2-snd_sndio.Tpo" "$(DEPDIR)/quake2-snd_sndio.Po"; else rm -f "$(DEPDIR)/quake2-snd_sndio.Tpo"; exit 1; fi
|
||||
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='snd_sndio.c' object='quake2-snd_sndio.obj' libtool=no @AMDEPBACKSLASH@
|
||||
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/quake2-snd_sndio.Po' tmpdepfile='$(DEPDIR)/quake2-snd_sndio.TPo' @AMDEPBACKSLASH@
|
||||
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quake2_CFLAGS) $(CFLAGS) -c -o quake2-snd_sndio.obj `if test -f 'snd_sndio.c'; then $(CYGPATH_W) 'snd_sndio.c'; else $(CYGPATH_W) '$(srcdir)/snd_sndio.c'; fi`
|
||||
+
|
||||
+quake2-snd_sndio.lo: snd_sndio.c
|
||||
+@am__fastdepCC_TRUE@ if $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quake2_CFLAGS) $(CFLAGS) -MT quake2-snd_sndio.lo -MD -MP -MF "$(DEPDIR)/quake2-snd_sndio.Tpo" -c -o quake2-snd_sndio.lo `test -f 'snd_sndio.c' || echo '$(srcdir)/'`snd_sndio.c; \
|
||||
+@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/quake2-snd_sndio.Tpo" "$(DEPDIR)/quake2-snd_sndio.Plo"; else rm -f "$(DEPDIR)/quake2-snd_sndio.Tpo"; exit 1; fi
|
||||
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='snd_sndio.c' object='quake2-snd_sndio.lo' libtool=yes @AMDEPBACKSLASH@
|
||||
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/quake2-snd_sndio.Plo' tmpdepfile='$(DEPDIR)/quake2-snd_sndio.TPlo' @AMDEPBACKSLASH@
|
||||
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||
+@am__fastdepCC_FALSE@ $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quake2_CFLAGS) $(CFLAGS) -c -o quake2-snd_sndio.lo `test -f 'snd_sndio.c' || echo '$(srcdir)/'`snd_sndio.c
|
||||
|
||||
quake2-snd_ao.o: snd_ao.c
|
||||
@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(quake2_CFLAGS) $(CFLAGS) -MT quake2-snd_ao.o -MD -MP -MF "$(DEPDIR)/quake2-snd_ao.Tpo" -c -o quake2-snd_ao.o `test -f 'snd_ao.c' || echo '$(srcdir)/'`snd_ao.c; \
|
@ -1,19 +0,0 @@
|
||||
$OpenBSD: patch-src_baseq2_g_local_h,v 1.1 2010/06/07 16:03:40 espie Exp $
|
||||
--- src/baseq2/g_local.h.orig Mon Jun 7 17:57:55 2010
|
||||
+++ src/baseq2/g_local.h Mon Jun 7 17:58:55 2010
|
||||
@@ -505,10 +505,11 @@ extern int meansOfDeath;
|
||||
|
||||
extern edict_t *g_edicts;
|
||||
|
||||
-#define FOFS(x) (int)&(((edict_t *)0)->x)
|
||||
-#define STOFS(x) (int)&(((spawn_temp_t *)0)->x)
|
||||
-#define LLOFS(x) (int)&(((level_locals_t *)0)->x)
|
||||
-#define CLOFS(x) (int)&(((gclient_t *)0)->x)
|
||||
+#include <stddef.h>
|
||||
+#define FOFS(x) offsetof(edict_t, x)
|
||||
+#define STOFS(x) offsetof(spawn_temp_t, x)
|
||||
+#define LLOFS(x) offsetof(level_locals_t, x)
|
||||
+#define CLOFS(x) offsetof(gclient_t, x)
|
||||
|
||||
#define random() ((rand () & 0x7fff) / ((float)0x7fff))
|
||||
#define crandom() (2.0 * (random() - 0.5))
|
@ -1,19 +0,0 @@
|
||||
$OpenBSD: patch-src_ctf_g_local_h,v 1.1 2010/06/07 16:03:40 espie Exp $
|
||||
--- src/ctf/g_local.h.orig Mon Jun 7 18:00:36 2010
|
||||
+++ src/ctf/g_local.h Mon Jun 7 18:01:30 2010
|
||||
@@ -514,10 +514,11 @@ extern int meansOfDeath;
|
||||
|
||||
extern edict_t *g_edicts;
|
||||
|
||||
-#define FOFS(x) (int)&(((edict_t *)0)->x)
|
||||
-#define STOFS(x) (int)&(((spawn_temp_t *)0)->x)
|
||||
-#define LLOFS(x) (int)&(((level_locals_t *)0)->x)
|
||||
-#define CLOFS(x) (int)&(((gclient_t *)0)->x)
|
||||
+#include <stddef.h>
|
||||
+#define FOFS(x) offsetof(edict_t, x)
|
||||
+#define STOFS(x) offsetof(spawn_temp_t, x)
|
||||
+#define LLOFS(x) offsetof(level_locals_t, x)
|
||||
+#define CLOFS(x) offsetof(gclient_t, x)
|
||||
|
||||
#define random() ((rand () & 0x7fff) / ((float)0x7fff))
|
||||
#define crandom() (2.0 * (random() - 0.5))
|
@ -1,12 +0,0 @@
|
||||
$OpenBSD: patch-src_gl_glx_c,v 1.1 2010/04/30 13:57:05 naddy Exp $
|
||||
--- src/gl_glx.c.orig Fri Apr 30 15:49:55 2010
|
||||
+++ src/gl_glx.c Fri Apr 30 15:50:06 2010
|
||||
@@ -64,7 +64,7 @@
|
||||
#include <X11/cursorfont.h>
|
||||
|
||||
#ifdef HAVE_XF86_DGA
|
||||
-#include <X11/extensions/xf86dga.h>
|
||||
+#include <X11/extensions/Xxf86dga.h>
|
||||
#endif /* HAVE_XF86_DGA */
|
||||
#ifdef HAVE_XF86_VIDMODE
|
||||
#include <X11/extensions/xf86vmode.h>
|
@ -1,12 +0,0 @@
|
||||
$OpenBSD: patch-src_gl_rmain_c,v 1.1 2008/05/25 02:54:58 jsg Exp $
|
||||
--- src/gl_rmain.c.orig Sat May 24 21:12:32 2008
|
||||
+++ src/gl_rmain.c Sat May 24 21:13:27 2008
|
||||
@@ -1060,7 +1060,7 @@ void R_Register( void )
|
||||
#ifdef _WIN32
|
||||
gl_driver = ri.Cvar_Get( "gl_driver", "opengl32", CVAR_ARCHIVE );
|
||||
#else
|
||||
- gl_driver = ri.Cvar_Get( "gl_driver", "libGL.so.1", CVAR_ARCHIVE );
|
||||
+ gl_driver = ri.Cvar_Get( "gl_driver", "libGL.so", CVAR_ARCHIVE );
|
||||
#endif
|
||||
gl_texturemode = ri.Cvar_Get( "gl_texturemode", "GL_LINEAR_MIPMAP_NEAREST", CVAR_ARCHIVE );
|
||||
gl_texturealphamode = ri.Cvar_Get( "gl_texturealphamode", "default", CVAR_ARCHIVE );
|
@ -1,12 +0,0 @@
|
||||
$OpenBSD: patch-src_glw_h,v 1.1 2008/05/25 02:54:58 jsg Exp $
|
||||
--- src/glw.h.orig Sat May 24 20:42:41 2008
|
||||
+++ src/glw.h Sat May 24 20:42:52 2008
|
||||
@@ -30,7 +30,7 @@
|
||||
#ifndef __GLW_H__
|
||||
#define __GLW_H__
|
||||
|
||||
-#if defined (__linux__) || defined (__bsd__) || defined (__sgi) || defined (__FreeBSD__) || defined (__NetBSD__) || defined (__sun__)
|
||||
+#if defined (__linux__) || defined (__bsd__) || defined (__sgi) || defined (__FreeBSD__) || defined (__NetBSD__) || defined (__sun__) || defined(__OpenBSD__)
|
||||
|
||||
typedef struct
|
||||
{
|
@ -1,12 +0,0 @@
|
||||
$OpenBSD: patch-src_q_sh_c,v 1.1.1.1 2007/03/16 18:26:01 claudio Exp $
|
||||
--- src/q_sh.c.orig Sat Jan 21 23:29:07 2006
|
||||
+++ src/q_sh.c Sat Jan 21 23:29:17 2006
|
||||
@@ -54,7 +54,7 @@ void *Hunk_Begin (int maxsize)
|
||||
/* FIXME: clean all this up into configure tests for mmap, MAP_ANONYMOUS and malloc */
|
||||
#if defined(__linux__)
|
||||
membase = mmap(0, maxhunksize, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0);
|
||||
-#elif defined(__FreeBSD__) || defined(__bsd__) || defined(__NetBSD__)
|
||||
+#elif defined(__FreeBSD__) || defined(__bsd__) || defined(__NetBSD__) || defined(__OpenBSD__)
|
||||
membase = mmap(0, maxhunksize, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANON, -1, 0);
|
||||
#elif defined(__sun__) || defined(__sgi)
|
||||
membase = malloc(maxhunksize);
|
@ -1,39 +0,0 @@
|
||||
$OpenBSD: patch-src_qgl_c,v 1.1 2008/05/25 02:54:58 jsg Exp $
|
||||
--- src/qgl.c.orig Sat May 24 20:42:30 2008
|
||||
+++ src/qgl.c Sat May 24 20:42:47 2008
|
||||
@@ -70,7 +70,7 @@ static FILE * log_fp = NULL;
|
||||
#endif
|
||||
|
||||
/* merged in from qgl_bsd.c -- jaq */
|
||||
-#if defined(__bsd__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__sun__)
|
||||
+#if defined(__bsd__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__sun__) || defined(__OpenBSD__)
|
||||
/*
|
||||
//FX Mesa Functions
|
||||
fxMesaContext (*qfxMesaCreateContext)(GLuint win, GrScreenResolution_t, GrScreenRefresh_t, const GLint attribList[]);
|
||||
@@ -3020,7 +3020,7 @@ void QGL_Shutdown( void )
|
||||
qglVertexPointer = NULL;
|
||||
qglViewport = NULL;
|
||||
/* merged in from qgl_bsd.c -- jaq */
|
||||
-#if defined(__bsd__) || defined(__FreeBSD__) || defined(__NetBSD__)
|
||||
+#if defined(__bsd__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
|
||||
/*
|
||||
qfxMesaCreateContext = NULL;
|
||||
qfxMesaCreateBestContext = NULL;
|
||||
@@ -3041,7 +3041,7 @@ void QGL_Shutdown( void )
|
||||
}
|
||||
|
||||
/* merged in from qgl_bsd.c -- jaq */
|
||||
-#if defined(__linux__) || defined (__FreeBSD__) || defined(__NetBSD__) || defined (__sun__)
|
||||
+#if defined(__linux__) || defined (__FreeBSD__) || defined(__NetBSD__) || defined (__sun__) || defined(__OpenBSD__)
|
||||
#define GPA( a ) dlsym( glw_state.OpenGLLib, a )
|
||||
|
||||
void *qwglGetProcAddress(char *symbol)
|
||||
@@ -3444,7 +3444,7 @@ qboolean QGL_Init( const char *dllname )
|
||||
qglVertexPointer = dllVertexPointer = GPA( "glVertexPointer" );
|
||||
qglViewport = dllViewport = GPA( "glViewport" );
|
||||
/* merged in from qgl_bsd.c -- jaq */
|
||||
-#if defined(__bsd__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__sun__)
|
||||
+#if defined(__bsd__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__sun__) || defined(__OpenBSD__)
|
||||
/*
|
||||
qfxMesaCreateContext = GPA("fxMesaCreateContext");
|
||||
qfxMesaCreateBestContext = GPA("fxMesaCreateBestContext");
|
@ -1,12 +0,0 @@
|
||||
$OpenBSD: patch-src_rw_x11_c,v 1.1 2010/04/30 13:57:05 naddy Exp $
|
||||
--- src/rw_x11.c.orig Fri Apr 30 15:48:04 2010
|
||||
+++ src/rw_x11.c Fri Apr 30 15:48:14 2010
|
||||
@@ -62,7 +62,7 @@
|
||||
#include <X11/keysym.h>
|
||||
#include <X11/extensions/XShm.h>
|
||||
#ifdef HAVE_XF86_DGA
|
||||
-#include <X11/extensions/xf86dga.h>
|
||||
+#include <X11/extensions/Xxf86dga.h>
|
||||
#endif
|
||||
#ifdef HAVE_XF86_VIDMODE
|
||||
#include <X11/extensions/xf86vmode.h>
|
@ -1,16 +0,0 @@
|
||||
$OpenBSD: patch-src_snd_dma_c,v 1.2 2010/09/01 00:29:07 jakemsr Exp $
|
||||
--- src/snd_dma.c.orig Mon Mar 15 04:50:39 2004
|
||||
+++ src/snd_dma.c Mon May 3 17:43:55 2010
|
||||
@@ -164,10 +164,10 @@ void S_Init (void)
|
||||
struct stat st;
|
||||
|
||||
/* load sound driver */
|
||||
- snddriver = Cvar_Get("snddriver", "oss", CVAR_ARCHIVE);
|
||||
+ snddriver = Cvar_Get("snddriver", "sndio", CVAR_ARCHIVE);
|
||||
|
||||
Com_Printf("loading %s sound output driver", snddriver->string);
|
||||
- snprintf(fn, MAX_OSPATH, PKGLIBDIR"/snd_%s.so", snddriver->string);
|
||||
+ snprintf(fn, MAX_OSPATH, PKGLIBDIR"/snd_%s.so", "sndio");
|
||||
if (stat(fn, &st) == -1) {
|
||||
Com_Printf("\nload %s failed: %s\n", fn, strerror(errno));
|
||||
return;
|
@ -1,17 +0,0 @@
|
||||
$OpenBSD: patch-src_sv_world_c,v 1.1 2010/06/07 16:03:40 espie Exp $
|
||||
--- src/sv_world.c.orig Mon Jun 7 17:49:42 2010
|
||||
+++ src/sv_world.c Mon Jun 7 17:56:40 2010
|
||||
@@ -30,10 +30,12 @@ FIXME: this use of "area" is different from the bsp fi
|
||||
===============================================================================
|
||||
*/
|
||||
|
||||
+#include <stddef.h>
|
||||
+
|
||||
// (type *)STRUCT_FROM_LINK(link_t *link, type, member)
|
||||
// ent = STRUCT_FROM_LINK(link,entity_t,order)
|
||||
// FIXME: remove this mess!
|
||||
-#define STRUCT_FROM_LINK(l,t,m) ((t *)((byte *)l - (int)&(((t *)0)->m)))
|
||||
+#define STRUCT_FROM_LINK(l,t,m) ((t *)((byte *)l - offsetof(t, m)))
|
||||
|
||||
#define EDICT_FROM_AREA(l) STRUCT_FROM_LINK(l,edict_t,area)
|
||||
|
@ -1,93 +0,0 @@
|
||||
$OpenBSD: patch-src_vid_menu_c,v 1.3 2010/05/28 14:58:06 jasper Exp $
|
||||
--- src/vid_menu.c.orig Tue Mar 9 13:59:00 2004
|
||||
+++ src/vid_menu.c Fri May 21 22:08:02 2010
|
||||
@@ -23,12 +23,10 @@
|
||||
#include "qmenu.h"
|
||||
|
||||
/* irix/vid_menu.c defines only REF_SOFT and REF_OPENGL, we'll use REF_GLX */
|
||||
-#define REF_SOFT 0
|
||||
-#define REF_SOFTX11 1
|
||||
-#define REF_SOFTSDL 2
|
||||
-#define REF_GLX 3
|
||||
-#define REF_SDLGL 4
|
||||
-#define REF_FXGL 5
|
||||
+#define REF_SOFTX11 0
|
||||
+#define REF_SOFTSDL 1
|
||||
+#define REF_GLX 2
|
||||
+#define REF_SDLGL 3
|
||||
|
||||
#define GL_REF_START REF_GLX
|
||||
|
||||
@@ -152,9 +150,6 @@ static void ApplyChanges( void *unused )
|
||||
|
||||
switch ( s_ref_list[s_current_menu_index].curvalue )
|
||||
{
|
||||
- case REF_SOFT:
|
||||
- Cvar_Set( "vid_ref", "soft" );
|
||||
- break;
|
||||
case REF_SOFTX11:
|
||||
Cvar_Set( "vid_ref", "softx" );
|
||||
break;
|
||||
@@ -164,24 +159,17 @@ static void ApplyChanges( void *unused )
|
||||
case REF_GLX:
|
||||
Cvar_Set( "vid_ref", "glx" );
|
||||
/* below is wrong if we use different libs for different GL reflibs */
|
||||
- Cvar_Set( "gl_driver", "libGL.so.1" );
|
||||
+ Cvar_Set( "gl_driver", "libGL.so" );
|
||||
if (gl_driver->modified)
|
||||
vid_ref->modified = true;
|
||||
break;
|
||||
case REF_SDLGL:
|
||||
Cvar_Set( "vid_ref", "sdlgl" );
|
||||
/* below is wrong if we use different libs for different GL reflibs */
|
||||
- Cvar_Set( "gl_driver", "libGL.so.1" );
|
||||
+ Cvar_Set( "gl_driver", "libGL.so" );
|
||||
if (gl_driver->modified)
|
||||
vid_ref->modified = true;
|
||||
break;
|
||||
- case REF_FXGL:
|
||||
- Cvar_Set("vid_ref", "tdfx");
|
||||
- /* below is wrong if we use different libs for different GL reflibs */
|
||||
- Cvar_Set( "gl_driver", "libGL.so.1" );
|
||||
- if (gl_driver->modified)
|
||||
- vid_ref->modified = true;
|
||||
- break;
|
||||
default:
|
||||
Com_Printf("No video refresher\n");
|
||||
break;
|
||||
@@ -243,12 +231,10 @@ void VID_MenuInit( void )
|
||||
};
|
||||
static const char *refs[] =
|
||||
{
|
||||
- "[software ]",
|
||||
"[software X11 ]",
|
||||
"[software SDL ]",
|
||||
"[OpenGL GLX ]",
|
||||
"[SDL OpenGL ]",
|
||||
- "[3DFX OpenGL ]",
|
||||
0
|
||||
};
|
||||
static const char *yesno_names[] =
|
||||
@@ -260,7 +246,7 @@ void VID_MenuInit( void )
|
||||
int i;
|
||||
|
||||
if ( !gl_driver )
|
||||
- gl_driver = Cvar_Get( "gl_driver", "libGL.so.1", 0 );
|
||||
+ gl_driver = Cvar_Get( "gl_driver", "libGL.so", 0 );
|
||||
if ( !gl_picmip )
|
||||
gl_picmip = Cvar_Get( "gl_picmip", "0", 0 );
|
||||
if ( !gl_mode )
|
||||
@@ -285,12 +271,7 @@ void VID_MenuInit( void )
|
||||
s_screensize_slider[SOFTWARE_MENU].curvalue = scr_viewsize->value/10;
|
||||
s_screensize_slider[OPENGL_MENU].curvalue = scr_viewsize->value/10;
|
||||
|
||||
- if ( strcmp( vid_ref->string, "soft" ) == 0)
|
||||
- {
|
||||
- s_current_menu_index = SOFTWARE_MENU;
|
||||
- s_ref_list[0].curvalue = s_ref_list[1].curvalue = REF_SOFT;
|
||||
- }
|
||||
- else if (strcmp( vid_ref->string, "softx" ) == 0 )
|
||||
+ if (strcmp( vid_ref->string, "softx" ) == 0 )
|
||||
{
|
||||
s_current_menu_index = SOFTWARE_MENU;
|
||||
s_ref_list[0].curvalue = s_ref_list[1].curvalue = REF_SOFTX11;
|
@ -1,2 +0,0 @@
|
||||
Quake2 is a 3D action game, which can be played both single-user as
|
||||
multi-user.
|
@ -1,3 +0,0 @@
|
||||
Quake2 requires the original version of Quake2 data files in order
|
||||
to function. Data files and music files should be placed in
|
||||
${PREFIX}/share/quake2/baseq2/
|
@ -1,22 +0,0 @@
|
||||
@comment $OpenBSD: PLIST,v 1.6 2010/09/01 00:29:07 jakemsr Exp $
|
||||
@bin bin/quake2
|
||||
lib/quake2/
|
||||
lib/quake2/baseq2/
|
||||
lib/quake2/baseq2/game.la
|
||||
lib/quake2/baseq2/game.so
|
||||
lib/quake2/ctf/
|
||||
lib/quake2/ctf/game.la
|
||||
lib/quake2/ctf/game.so
|
||||
lib/quake2/ref_glx.la
|
||||
lib/quake2/ref_glx.so
|
||||
lib/quake2/ref_sdlgl.la
|
||||
lib/quake2/ref_sdlgl.so
|
||||
lib/quake2/ref_softsdl.la
|
||||
lib/quake2/ref_softsdl.so
|
||||
lib/quake2/ref_softx.la
|
||||
lib/quake2/ref_softx.so
|
||||
lib/quake2/snd_sndio.la
|
||||
lib/quake2/snd_sndio.so
|
||||
share/quake2/
|
||||
share/quake2/baseq2/
|
||||
share/quake2/baseq2/config.cfg
|
Loading…
Reference in New Issue
Block a user