mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
Update to 0.2.1.
Submitted by: maintainer
This commit is contained in:
parent
b80de4efc3
commit
f1b92aefa7
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=77612
@ -6,25 +6,25 @@
|
||||
#
|
||||
|
||||
PORTNAME= quake2forge
|
||||
PORTVERSION= 0.1
|
||||
PORTVERSION= 0.2.1
|
||||
CATEGORIES= games
|
||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
||||
MASTER_SITE_SUBDIR= quake
|
||||
DISTNAME= quake2-${PORTVERSION}
|
||||
|
||||
MAINTAINER= q@uni.de
|
||||
COMMENT= Quakeforge version of Quake 2 (First Person Shooter)
|
||||
COMMENT= First Person Shooter with many addons available
|
||||
|
||||
USE_BZIP2= yes
|
||||
USE_GMAKE= yes
|
||||
USE_LIBTOOL= yes
|
||||
USE_XLIB= yes
|
||||
INSTALLS_SHLIB= yes
|
||||
LDCONFIG_DIRS= ${PREFIX}/lib ${PREFIX}/lib/quake2
|
||||
LDCONFIG_DIRS= ${PREFIX}/lib/quake2 ${PREFIX}/lib/quake2/baseq2 ${PREFIX}/lib/quake2/ctf
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
CONFIGURE_ARGS= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL} --enable-static=no
|
||||
CONFIGURE_ARGS= --enable-static=no
|
||||
CONFIGURE_TARGET=
|
||||
|
||||
.if exists(${LOCALBASE}/lib/libSDL-1.1.so.5)
|
||||
|
@ -1 +1 @@
|
||||
MD5 (quake2-0.1.tar.bz2) = 8bbaa5bcf089cc7f113ad743f705fab0
|
||||
MD5 (quake2-0.2.1.tar.bz2) = 564bef79bd83f3b9fc1d34a19b29ae2c
|
||||
|
@ -1,69 +0,0 @@
|
||||
--- src/snd.c.orig Fri Oct 18 16:08:56 2002
|
||||
+++ src/snd.c Tue Oct 15 17:56:17 2002
|
||||
@@ -211,12 +211,7 @@
|
||||
sndbits = Cvar_Get("sndbits", "16", CVAR_ARCHIVE);
|
||||
sndspeed = Cvar_Get("sndspeed", "0", CVAR_ARCHIVE);
|
||||
sndchannels = Cvar_Get("sndchannels", "2", CVAR_ARCHIVE);
|
||||
-/* merged in from snd_bsd.c -- jaq */
|
||||
-#ifdef __linux__
|
||||
snddevice = Cvar_Get("snddevice", "/dev/dsp", CVAR_ARCHIVE);
|
||||
-#else /* bsd */
|
||||
- snddevice = Cvar_Get("snddevice", "/dev/audio", CVAR_ARCHIVE);
|
||||
-#endif
|
||||
}
|
||||
|
||||
// open /dev/dsp, check capability to mmap, and get size of dma buffer
|
||||
@@ -321,24 +316,6 @@
|
||||
if (dma.channels < 1 || dma.channels > 2)
|
||||
dma.channels = 2;
|
||||
|
||||
- if (mmapped) {
|
||||
- dma.samples = info.fragstotal * info.fragsize / (dma.samplebits/8);
|
||||
- dma.submission_chunk = 1;
|
||||
-
|
||||
- // memory map the dma buffer
|
||||
-
|
||||
- if (!dma.buffer)
|
||||
- dma.buffer = (unsigned char *) mmap(NULL, info.fragstotal
|
||||
- * info.fragsize, PROT_WRITE, MAP_FILE|MAP_SHARED, audio_fd, 0);
|
||||
- if (!dma.buffer || dma.buffer == MAP_FAILED) {
|
||||
- perror(snddevice->string);
|
||||
- Com_Printf("SNDDMA_Init: Could not mmap %s.\n", snddevice->string);
|
||||
- close(audio_fd);
|
||||
- audio_fd = -1;
|
||||
- return 0;
|
||||
- }
|
||||
- }
|
||||
-
|
||||
tmp = 0;
|
||||
if (dma.channels == 2)
|
||||
tmp = 1;
|
||||
@@ -432,6 +409,28 @@
|
||||
} else {
|
||||
tmp = 0;
|
||||
rc = ioctl(audio_fd, SNDCTL_DSP_SETTRIGGER, &tmp);
|
||||
+ dma.samples = info.fragstotal * info.fragsize / (dma.samplebits/8);
|
||||
+ dma.submission_chunk = 1;
|
||||
+
|
||||
+ // memory map the dma buffer
|
||||
+
|
||||
+ if (!dma.buffer) {
|
||||
+ dma.buffer = (unsigned char *) mmap(NULL, info.fragstotal * info.fragsize,
|
||||
+#if (defined(__FreeBSD__) && (__FreeBSD_version < 500000))
|
||||
+ PROT_READ|PROT_WRITE,
|
||||
+#else
|
||||
+ PROT_WRITE,
|
||||
+#endif
|
||||
+ MAP_FILE|MAP_SHARED, audio_fd, 0);
|
||||
+ }
|
||||
+ if (!dma.buffer || dma.buffer == MAP_FAILED) {
|
||||
+ perror(snddevice->string);
|
||||
+ Com_Printf("SNDDMA_Init: Could not mmap %s.\n", snddevice->string);
|
||||
+ close(audio_fd);
|
||||
+ audio_fd = -1;
|
||||
+ return 0;
|
||||
+ }
|
||||
+
|
||||
if (rc < 0) {
|
||||
perror(snddevice->string);
|
||||
Com_Printf("SNDDMA_Init: Could not toggle. (1)\n");
|
@ -1,42 +0,0 @@
|
||||
--- configure.orig Wed Sep 18 07:02:16 2002
|
||||
+++ configure Thu Oct 31 17:55:52 2002
|
||||
@@ -2789,7 +2789,7 @@
|
||||
echo "$as_me: error: this package needs a convenience libltdl" >&2;}
|
||||
{ (exit 1); exit 1; }; } ;;
|
||||
"") enable_ltdl_convenience=yes
|
||||
- ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
|
||||
+ ac_configure_args="--enable-ltdl-convenience" ;;
|
||||
esac
|
||||
LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
|
||||
LTDLINCL='-I${top_srcdir}/''libltdl'
|
||||
@@ -9633,9 +9633,9 @@
|
||||
|
||||
|
||||
|
||||
-# Check whether --with-gl or --without-gl was given.
|
||||
-if test "${with_gl+set}" = set; then
|
||||
- withval="$with_gl"
|
||||
+# Check whether --with-opengl or --without-opengl was given.
|
||||
+if test "${with_opengl+set}" = set; then
|
||||
+ withval="$with_opengl"
|
||||
HAVE_OPENGL=$withval
|
||||
else
|
||||
HAVE_OPENGL=auto
|
||||
@@ -9763,7 +9763,7 @@
|
||||
echo $ECHO_N "(cached) $ECHO_C" >&6
|
||||
else
|
||||
ac_check_lib_save_LIBS=$LIBS
|
||||
-LIBS="-lGL $OPENGL_LIBS
|
||||
+LIBS="-lGL $OPENGL_LIBS -lX11 -lXext
|
||||
$LIBS"
|
||||
cat >conftest.$ac_ext <<_ACEOF
|
||||
#line $LINENO "configure"
|
||||
@@ -9814,7 +9814,7 @@
|
||||
echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glBegin" >&5
|
||||
echo "${ECHO_T}$ac_cv_lib_GL_glBegin" >&6
|
||||
if test $ac_cv_lib_GL_glBegin = yes; then
|
||||
- OPENGL_LIBS="$OPENGL_LIBS -lGL"
|
||||
+ OPENGL_LIBS="$OPENGL_LIBS -lGL -lX11 -lXext"
|
||||
HAVE_OPENGL=yes
|
||||
else
|
||||
HAVE_OPENGL=no
|
@ -1,21 +0,0 @@
|
||||
--- src/Makefile.am.orig Thu Oct 31 20:08:06 2002
|
||||
+++ src/Makefile.am Thu Oct 31 20:11:19 2002
|
||||
@@ -79,15 +79,15 @@
|
||||
#ref_glx_la_CFLAGS = $(std_cflags) -fPIC @X_CFLAGS@ @OPENGL_CFLAGS@
|
||||
ref_glx_la_CFLAGS = $(std_cflags) -fPIC @X_CFLAGS@
|
||||
#ref_glx_la_LDADD = @X_PRE_LIBS@ @X_LIBS@ @XTRA_LIBS@ @X_EXTRA_LIBS@ @OPENGL_LIBS@ @DL_LIBS@
|
||||
-ref_glx_la_LDADD = @X_PRE_LIBS@ @X_LIBS@ @XTRA_LIBS@ @X_EXTRA_LIBS@ @DL_LIBS@
|
||||
+ref_glx_la_LDADD = @X_PRE_LIBS@ @X_LIBS@ @XTRA_LIBS@ @X_EXTRA_LIBS@ @DL_LIBS@ @OPENGL_LIBS@
|
||||
ref_glx_la_LDFLAGS = $(module_ldflags)
|
||||
endif
|
||||
|
||||
# ref_tdfx
|
||||
if BUILD_TDFX
|
||||
ref_tdfx_la_SOURCES = $(REF_GL_COMMON) rw_in_svgalib.c gl_fxmesa.c
|
||||
-ref_tdfx_la_CFLAGS = $(std_cflags) -fPIC @SVGALIB_CFLAGS@
|
||||
-ref_tdfx_la_LDADD = @SVGALIB_LIBS@
|
||||
+ref_tdfx_la_CFLAGS = $(std_cflags) -fPIC @SVGALIB_CFLAGS@ @OPENGL_CFLAGS@
|
||||
+ref_tdfx_la_LDADD = @SVGALIB_LIBS@ @OPENGL_LIBS@
|
||||
ref_tdfx_la_LDFLAGS = $(module_ldflags)
|
||||
endif
|
||||
|
@ -1,19 +0,0 @@
|
||||
--- src/Makefile.in.orig Thu Oct 31 20:07:59 2002
|
||||
+++ src/Makefile.in Thu Oct 31 20:11:21 2002
|
||||
@@ -200,13 +200,13 @@
|
||||
#ref_glx_la_CFLAGS = $(std_cflags) -fPIC @X_CFLAGS@ @OPENGL_CFLAGS@
|
||||
@BUILD_GLX_TRUE@ref_glx_la_CFLAGS = $(std_cflags) -fPIC @X_CFLAGS@
|
||||
#ref_glx_la_LDADD = @X_PRE_LIBS@ @X_LIBS@ @XTRA_LIBS@ @X_EXTRA_LIBS@ @OPENGL_LIBS@ @DL_LIBS@
|
||||
-@BUILD_GLX_TRUE@ref_glx_la_LDADD = @X_PRE_LIBS@ @X_LIBS@ @XTRA_LIBS@ @X_EXTRA_LIBS@ @DL_LIBS@
|
||||
+@BUILD_GLX_TRUE@ref_glx_la_LDADD = @X_PRE_LIBS@ @X_LIBS@ @XTRA_LIBS@ @X_EXTRA_LIBS@ @DL_LIBS@ @OPENGL_LIBS@
|
||||
@BUILD_GLX_TRUE@ref_glx_la_LDFLAGS = $(module_ldflags)
|
||||
|
||||
# ref_tdfx
|
||||
@BUILD_TDFX_TRUE@ref_tdfx_la_SOURCES = $(REF_GL_COMMON) rw_in_svgalib.c gl_fxmesa.c
|
||||
-@BUILD_TDFX_TRUE@ref_tdfx_la_CFLAGS = $(std_cflags) -fPIC @SVGALIB_CFLAGS@
|
||||
-@BUILD_TDFX_TRUE@ref_tdfx_la_LDADD = @SVGALIB_LIBS@
|
||||
+@BUILD_TDFX_TRUE@ref_tdfx_la_CFLAGS = $(std_cflags) -fPIC @SVGALIB_CFLAGS@ @OPENGL_CFLAGS@
|
||||
+@BUILD_TDFX_TRUE@ref_tdfx_la_LDADD = @SVGALIB_LIBS@ @OPENGL_LIBS@
|
||||
@BUILD_TDFX_TRUE@ref_tdfx_la_LDFLAGS = $(module_ldflags)
|
||||
|
||||
# ref_sdlgl
|
10
games/quake2forge/files/patch-configure
Normal file
10
games/quake2forge/files/patch-configure
Normal file
@ -0,0 +1,10 @@
|
||||
--- configure.orig Mon Mar 10 16:54:16 2003
|
||||
+++ configure Mon Mar 10 16:54:17 2003
|
||||
@@ -7829,6 +7829,7 @@
|
||||
|
||||
# This can be used to rebuild libtool when needed
|
||||
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
|
||||
+$ac_aux_dir/ltconfig $LIBTOOL_DEPS
|
||||
|
||||
# Always use our own libtool.
|
||||
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
|
24
games/quake2forge/files/patch-main.c
Normal file
24
games/quake2forge/files/patch-main.c
Normal file
@ -0,0 +1,24 @@
|
||||
--- src/main.c.orig Fri Feb 7 14:25:46 2003
|
||||
+++ src/main.c Fri Feb 7 14:34:14 2003
|
||||
@@ -49,12 +49,21 @@
|
||||
#include <mntent.h>
|
||||
#elif defined(__FreeBSD__) || defined(__bsd__) || defined (__NetBSD__)
|
||||
#include <fstab.h>
|
||||
+ #include <pthread.h>
|
||||
#elif defined(__sun__)
|
||||
#include <sys/file.h>
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_DLOPEN
|
||||
# include <dlfcn.h>
|
||||
+#endif
|
||||
+
|
||||
+/* This should probably go into configure
|
||||
+ * BSDs and Linux have SIGIO, Solaris needs SIGPOLL
|
||||
+ * This should probably be changed the other way round
|
||||
+ * SIGIO as default and SIGPOLL only for Solrais */
|
||||
+#ifndef SIGPOLL
|
||||
+#define SIGPOLL SIGIO
|
||||
#endif
|
||||
|
||||
#include "qcommon.h"
|
@ -1,25 +1,19 @@
|
||||
bin/quake2
|
||||
%%SVGA:%%lib/quake2/ref_soft.so
|
||||
%%SVGA:%%lib/quake2/ref_soft.la
|
||||
%%SDL:%%lib/quake2/ref_softsdl.so
|
||||
%%SDL:%%lib/quake2/ref_softsdl.la
|
||||
%%SDLGL:%%lib/quake2/ref_sdlgl.so
|
||||
%%SDLGL:%%lib/quake2/ref_sdlgl.la
|
||||
%%GL:%%lib/quake2/ref_glx.so
|
||||
%%GL:%%lib/quake2/ref_glx.la
|
||||
%%SVGA:%%%%GL:%%lib/quake2/ref_tdfx.so
|
||||
%%SVGA:%%%%GL:%%lib/quake2/ref_tdfx.la
|
||||
lib/quake2/ref_softx.so
|
||||
lib/quake2/ref_softx.la
|
||||
lib/quake2/baseq2/game.so
|
||||
lib/quake2/baseq2/game.la
|
||||
lib/quake2/ctf/game.so
|
||||
lib/quake2/ctf/game.la
|
||||
%%PORTDOCS%%share/doc/quake2/README.axp
|
||||
%%PORTDOCS%%share/doc/quake2/README.install
|
||||
%%PORTDOCS%%share/doc/quake2/README.joystick
|
||||
%%PORTDOCS%%share/doc/quake2/README.linux
|
||||
%%PORTDOCS%%share/doc/quake2/README.sdl
|
||||
%%PORTDOCS%%share/doc/quake2/README.solaris
|
||||
%%PORTDOCS%%share/doc/quake2/README.Solaris
|
||||
%%PORTDOCS%%share/doc/quake2/TODO-ctf.txt
|
||||
%%PORTDOCS%%share/doc/quake2/changes-ctf.txt
|
||||
%%PORTDOCS%%share/doc/quake2/changes.txt
|
||||
|
Loading…
Reference in New Issue
Block a user