Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 24 Apr 2004 21:32:48 +0700 (NOVST)
From:      Alexey Dokuchaev <danfe@regency.nsu.ru>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/65929: BROKEN PORT UPDATE: games/fuhquake: to recent version and unbreak
Message-ID:  <200404241432.i3OEWmMv021690@regency.nsu.ru>
Resent-Message-ID: <200404241440.i3OEeCFN052224@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         65929
>Category:       ports
>Synopsis:       BROKEN PORT UPDATE: games/fuhquake: to recent version and unbreak
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Sat Apr 24 07:40:12 PDT 2004
>Closed-Date:
>Last-Modified:
>Originator:     Alexey Dokuchaev
>Release:        FreeBSD 4.9-STABLE i386
>Organization:
CNIT NSU
>Environment:
System: FreeBSD regency.nsu.ru 4.9-STABLE FreeBSD 4.9-STABLE #1: Wed Mar 3 13:17:54 NOVT 2004 root@regency.nsu.ru:/usr/src/sys/compile/REGENCY i386
>Description:
Update games/fuhquake to most recent version (0.31) and unbreak on
bento, making this pretty good candidate for portmgr@'s approval for
upcoming 4.10-RELEASE.
>How-To-Repeat:
See bento lons.
>Fix:
Remove the following files from files/:

	fix^m.sh
	patch-keys.c
	patch-keys.h
	patch-sv_sys_unix.c
	patch-vid_x11.c

Add two (2) new patch-files:

%%% === start of ``patch-modules.h'' === %%%
--- modules.h.orig	Wed Feb  4 21:13:04 2004
+++ modules.h	Wed Feb  4 21:13:36 2004
@@ -24,7 +24,7 @@
 
 #include "security.h"
 
-#ifdef __linux__
+#if defined(__linux__) || defined(__FreeBSD__)
 #include <dlfcn.h>
 #endif

%%% === end of ``patch-modules.h'' === %%%

	... and ...

%%% === end of ``patch-r_part.c'' === %%%
--- r_part.c.orig	Wed Feb  4 23:15:44 2004
+++ r_part.c	Wed Feb  4 23:32:01 2004
@@ -60,6 +60,17 @@
 
 #if	!id386
 
+#define	PARTICLE_Z_CLIP		8.0
+float	xcenter, ycenter;
+int	d_vrectx, d_vrecty, d_vrectright_particle, d_vrectbottom_particle;
+short	*d_pzbuffer;
+unsigned int	d_zwidth;
+pixel_t	*d_viewbuffer;
+#define	MAXHEIGHT	1024
+int	d_scantable[MAXHEIGHT];
+int	d_y_aspect_shift, d_pix_min, d_pix_max, d_pix_shift;
+int	screenwidth;
+
 void D_DrawParticle (particle_t *pparticle) {
 	vec3_t local, transformed;
 	float zi;
%%% === end of ``patch-r_part.c'' === %%%

Please check md5 sums of two new patch-files:
MD5 (files/patch-modules.h) = dbddaf8702b6614a9e9dd3fe5a7a37e0
MD5 (files/patch-r_part.c) = 6c8a3c942e82ed9db414a8b23a7d10c2

Apply the following diff:

%%%
diff -ur /usr/ports/games/fuhquake/Makefile ./Makefile
--- /usr/ports/games/fuhquake/Makefile	Fri Apr  9 16:43:40 2004
+++ ./Makefile	Sat Apr 24 21:11:54 2004
@@ -6,22 +6,22 @@
 #
 
 PORTNAME=	fuhquake
-PORTVERSION=	0.28
-PORTREVISION=	1
+PORTVERSION=	0.31
 CATEGORIES=	games
-MASTER_SITES=	http://www.fuhquake.net/files/source/:src \
-		http://www.fuhquake.net/files/releases/:dat \
+MASTER_SITES=	http://www.fuhquake.net/files/releases/v${PORTVERSION}/:src \
+		http://www.fuhquake.net/files/releases/v${PORTVERSION}/:dat \
 		http://freebsd.nsu.ru/distfiles/:pak
 DISTNAME=	${PORTNAME}-source-v${PORTVERSION}
+
 DISTFILES=	${DISTNAME}${EXTRACT_SUFX}:src \
-		${PORTNAME}-linux-v${PORTVERSION}${EXTRACT_SUFX}:dat \
-		pak0.pak:pak
+		${PORTNAME}-linux-v${PORTVERSION}${EXTRACT_SUFX}:dat
+DIST_SUBDIR=	${PORTNAME}
+EXTRACT_ONLY=	${DISTNAME}${EXTRACT_SUFX} \
+		${PORTNAME}-linux-v${PORTVERSION}${EXTRACT_SUFX}
 
 MAINTAINER=	danfe@regency.nsu.ru
 COMMENT=	An excellent QuakeWorld client
 
-BROKEN=		"Checksum mismatch"
-
 .if defined(WITH_SHAREWARE_DATA)
 DISTFILES+=	q1-shareware-pak0.pak:pak
 PLIST_SUB+=	SHAREWARE=""
@@ -29,9 +29,6 @@
 PLIST_SUB+=	SHAREWARE="@comment "
 .endif
 
-EXTRACT_ONLY=	${DISTNAME}${EXTRACT_SUFX} \
-		${PORTNAME}-linux-v${PORTVERSION}${EXTRACT_SUFX}
-
 .if exists(${LOCALBASE}/lib/libvga.so.1)
 WITH_SVGA=	yes
 .endif
@@ -75,9 +72,13 @@
 pre-everything::
 .if ${MACHINE_ARCH} == "i386" && !defined(WITH_SVGA)
 	@${ECHO_MSG} "Define WITH_SVGA to build SVGA client"
+.elif !defined(WITHOUT_SVGA)
+	@${ECHO_MSG} "Define WITHOUT_SVGA to disable building of SVGA client"
 .endif
 .if !defined(WITH_XMMS)
 	@${ECHO_MSG} "Define WITH_XMMS to enable \`\`MP3 Player'' feature"
+.elif !defined(WITHOUT_XMMS)
+	@${ECHO_MSG} "Define WITHOUT_XMMS to build without \`\`MP3 Player'' feature"
 .endif
 .if !defined(WITHOUT_X11)
 	@${ECHO_MSG} "Define WITHOUT_X11 to disable building of X11 client"
@@ -88,9 +89,6 @@
 .if defined(WITH_SHAREWARE_DATA)
 	@${ECHO_MSG} "Define WITH_SHAREWARE_DATA to install demo version game data"
 .endif
-.if !defined(WITHOUT_XMMS) && exists(${X11BASE}/lib/libxmms.so.4)
-	@${ECHO_MSG} "Define WITHOUT_XMMS to build without \`\`MP3 Player'' feature"
-.endif
 .if !defined(WITH_OPTIMIZED_CFLAGS)
 	@${ECHO_MSG} "Define WITH_OPTIMIZED_CFLAGS to enable extra optimization options"
 .endif
@@ -103,18 +101,10 @@
 USE_ZIP=	yes
 WRKSRC=		${WRKDIR}/source
 
-post-extract:
-	@${FIND} -E ${WRKDIR} -type f -iregex ".*\.(c|h|s|txt)" -exec ${FILESDIR}/fix^m.sh '{}' \;
-	@${CP} ${FILESDIR}/*.c ${WRKSRC}
-
 post-patch:
-	@${REINPLACE_CMD} -e 's|%%%%BASEDIR%%%%|${DATADIR}|' ${WRKSRC}/common.c
-.for file in cmd.h common.h render.h console.h quakedef.h cvar.h cvar_groups.h \
-	fmod.h config_manager.h auth.h logging.h ignore.h fchecks.h rulesets.h \
-	modules.h mp3_player.h r_local.h movie.c logging.c quotes.h zone.c \
-	gl_local.h gl_image.h gl_warp_sin.h
-	@${ECHO_CMD} "" >> ${WRKSRC}/${file}
-.endfor
+	@${REINPLACE_CMD} -e 's|%%BASEDIR%%|${DATADIR}|' ${WRKSRC}/common.c
+	@${REINPLACE_CMD} -e 's|%%X11BASE%%|${X11BASE}|' ${WRKSRC}/mp3_player.c
+	@${CP} ${FILESDIR}/*.c ${WRKSRC}
 
 do-build:
 .if !defined(WITHOUT_X11)
@@ -133,20 +123,20 @@
 .for tgt in ${END_TARGETS}
 	${INSTALL_PROGRAM} ${WRKSRC}/${tgt} ${PREFIX}/bin
 .endfor
-	@${MKDIR} ${DATADIR}/qw ${DATADIR}/${PORTNAME}
+	@${MKDIR} ${DATADIR}/qw
+	${INSTALL_DATA} ${WRKDIR}/qw/fragfile.dat ${DATADIR}/qw
 	${INSTALL_DATA} ${WRKDIR}/qw/qwprogs.dat ${DATADIR}/qw
 	${INSTALL_DATA} ${WRKDIR}/qw/spprogs.dat ${DATADIR}/qw
-	${INSTALL_DATA} ${DISTDIR}/pak0.pak ${DATADIR}/${PORTNAME}
 .if defined(WITH_SHAREWARE_DATA)
 	@${MKDIR} ${DATADIR}/id1
-	${INSTALL_DATA} ${DISTDIR}/q1-shareware-pak0.pak \
+	${INSTALL_DATA} ${_DISTDIR}/q1-shareware-pak0.pak \
 		${DATADIR}/id1/pak0.pak
 .endif
 .if !defined(NOPORTDOCS)
 	@${MKDIR} ${DOCSDIR}
-. for txt in benchmark config_manager crosshairs linux logitech mp3 \
-	particles pointing rulesets track
-	${INSTALL_DATA} ${WRKDIR}/doc/${txt}.txt ${DOCSDIR}
+. for txt in FAQ-v0.30-b585 FuhQuake-v0.31-FAQ benchmark config_manager crosshairs \
+	linux logitech match_tools mp3 particles pointing rulesets track
+	${INSTALL_DATA} ${WRKDIR}/${PORTNAME}/doc/${txt}.txt ${DOCSDIR}
 . endfor
 	${INSTALL_DATA} ${WRKDIR}/${PORTNAME}.txt ${DOCSDIR}
 .endif
diff -ur /usr/ports/games/fuhquake/distinfo ./distinfo
--- /usr/ports/games/fuhquake/distinfo	Sat Sep  6 22:14:32 2003
+++ ./distinfo	Sat Apr 24 20:35:55 2004
@@ -1,4 +1,6 @@
-MD5 (fuhquake-source-v0.28.zip) = 7e77a97a1e1524b289ffa6978ce5377e
-MD5 (fuhquake-linux-v0.28.zip) = 72e99f8df1baab11e0492b7cee93fdd3
-MD5 (pak0.pak) = 2fa37c49cb1d3902d97cb82a1c96115a
-MD5 (q1-shareware-pak0.pak) = 5906e5998fc3d896ddaf5e6a62e03abb
+MD5 (fuhquake/fuhquake-source-v0.31.zip) = 3db5852cfbdf4a4855072305c32f6075
+SIZE (fuhquake/fuhquake-source-v0.31.zip) = 789610
+MD5 (fuhquake/fuhquake-linux-v0.31.zip) = 479a6f8dad1174333819e850b3aca8c1
+SIZE (fuhquake/fuhquake-linux-v0.31.zip) = 4520020
+MD5 (fuhquake/q1-shareware-pak0.pak) = 5906e5998fc3d896ddaf5e6a62e03abb
+SIZE (fuhquake/q1-shareware-pak0.pak) = 18689235
diff -ur /usr/ports/games/fuhquake/files/Makefile ./files/Makefile
--- /usr/ports/games/fuhquake/files/Makefile	Tue Jun  3 01:29:57 2003
+++ ./files/Makefile	Wed Feb  4 21:51:29 2004
@@ -23,7 +23,7 @@
 .endif
 
 .if make(glx)
-DO_CFLAGS +=	-DWITH_PNG -DWITH_JPEG -DGLQUAKE -DWITH_DGA -DWITH_VMODE
+DO_CFLAGS +=	-DWITH_ZLIB -DWITH_PNG -DWITH_JPEG -DGLQUAKE -DWITH_DGA -DWITH_VMODE
 .endif
 
 .if defined(WITH_OPTIMIZED_CFLAGS)
@@ -84,11 +84,13 @@
 		cl_main.o \
 		cl_parse.o \
 		cl_pred.o \
+		cl_screen.o \
 		cl_slist.o \
 		cl_tent.o \
 		cl_view.o \
 \
 		cmd.o \
+		com_msg.o \
 		common.o \
 		console.o \
 		crc.o \
@@ -108,8 +110,10 @@
 		config_manager.o \
 		fchecks.o \
 		fmod.o \
+		fragstats.o \
 		ignore.o \
 		logging.o \
+		match_tools.o \
 		modules.o \
 		movie.o \
 		mp3_player.o \
@@ -129,7 +133,6 @@
 		d_fill.o \
 		d_init.o \
 		d_modech.o \
-		d_part.o \
 		d_polyse.o \
 		d_scan.o \
 		d_sky.o \
@@ -138,8 +141,6 @@
 		d_vars.o \
 		d_zpoint.o \
 \
-		screen.o \
-\
 		r_aclip.o \
 		r_alias.o \
 		r_bsp.o \
@@ -171,7 +172,6 @@
 		r_drawa.o \
 		r_edgea.o \
 		r_varsa.o \
-		surf16.o \
 		surf8.o
 .endif
 
@@ -179,7 +179,6 @@
 
 CL_GLX_OBJS = \
 		gl_draw.o \
-		gl_image.o \
 		gl_mesh.o \
 		gl_model.o \
 		gl_ngraph.o \
@@ -189,7 +188,6 @@
 		gl_rmisc.o \
 		gl_rpart.o \
 		gl_rsurf.o \
-		gl_screen.o \
 		gl_texture.o \
 		gl_warp.o \
 		r_part.o \
diff -ur /usr/ports/games/fuhquake/files/nonintel.c ./files/nonintel.c
--- /usr/ports/games/fuhquake/files/nonintel.c	Tue Jun  3 01:29:57 2003
+++ ./files/nonintel.c	Tue Sep 23 17:24:54 2003
@@ -38,17 +38,6 @@
 
 /*
 ================
-R_Surf16Patch
-================
-*/
-void R_Surf16Patch ()
-{
-	// we only patch code on Intel
-}
-
-
-/*
-================
 R_SurfacePatch
 ================
 */
diff -ur /usr/ports/games/fuhquake/files/patch-common.c ./files/patch-common.c
--- /usr/ports/games/fuhquake/files/patch-common.c	Mon Sep  1 18:52:05 2003
+++ ./files/patch-common.c	Thu Feb  5 01:09:34 2004
@@ -1,11 +1,11 @@
---- common.c.orig	Thu Aug 28 18:15:40 2003
-+++ common.c	Thu Aug 28 18:16:04 2003
-@@ -1512,7 +1512,7 @@
+--- common.c.orig	Thu Feb  5 01:05:19 2004
++++ common.c	Thu Feb  5 01:09:07 2004
+@@ -1006,7 +1006,7 @@
  	if ((i = COM_CheckParm ("-basedir")) && i < com_argc - 1)
  		Q_strncpyz (com_basedir, com_argv[i + 1], sizeof(com_basedir));
  	else
--		strcpy (com_basedir, ".");
-+		strcpy (com_basedir, "%%%%BASEDIR%%%%");
+-		getcwd(com_basedir, sizeof(com_basedir) - 1);
++		strcpy(com_basedir, "%%BASEDIR%%");
  
  	for (i = 0; i < strlen(com_basedir); i++)
  		if (com_basedir[i] == '\\')
diff -ur /usr/ports/games/fuhquake/files/patch-menu.c ./files/patch-menu.c
--- /usr/ports/games/fuhquake/files/patch-menu.c	Tue Jun  3 01:29:57 2003
+++ ./files/patch-menu.c	Sat Apr 24 21:40:38 2004
@@ -1,77 +1,6 @@
---- menu.c.orig	Wed May 21 17:18:36 2003
-+++ menu.c	Tue May 27 23:06:19 2003
-@@ -62,6 +62,7 @@
- 		void M_Menu_Fps_f (void);
- 		void M_Menu_Video_f (void);
- 	void M_Menu_MP3_Control_f (void);
-+	void M_Menu_Help_f (void);
- 	void M_Menu_Quit_f (void);
- 
- void M_Main_Draw (void);
-@@ -78,6 +79,7 @@
- 		void M_Keys_Draw (void);
- 		void M_Fps_Draw (void);
- 		void M_Video_Draw (void);
-+	void M_MP3_Control_Draw (void);
- 	void M_Help_Draw (void);
- 	void M_Quit_Draw (void);
- 
-@@ -95,6 +97,7 @@
- 		void M_Keys_Key (int key);
- 		void M_Fps_Key (int key);
- 		void M_Video_Key (int key);
-+	void M_MP3_Control_Key (int key);
- 	void M_Help_Key (int key);
- 	void M_Quit_Key (int key);
- 
-@@ -251,7 +254,11 @@
- /* MAIN MENU */
- 
- int	m_main_cursor;
-+#if defined(_WIN32) || defined(__XMMS__)
-+#define	MAIN_ITEMS	6
-+#else
- #define	MAIN_ITEMS	5
-+#endif
- 
- 
- void M_Menu_Main_f (void) {
-@@ -269,7 +276,13 @@
- 	M_DrawTransPic (16, 4, Draw_CachePic ("gfx/qplaque.lmp") );
- 	p = Draw_CachePic ("gfx/ttl_main.lmp");
- 	M_DrawPic ( (320-p->width)/2, 4, p);
--	M_DrawTransPic (72, 32, Draw_CachePic ("gfx/mainmenu.lmp") );
-+	M_DrawTransPic (72, 32, Draw_CachePic
-+#if defined(_WIN32) || defined(__XMMS__)
-+	("gfx/mainmenu_mp3.lmp")
-+#else
-+	("gfx/mainmenu.lmp")
-+#endif
-+	);
- 
- 	f = (int)(curtime * 10)%6;
- 	
-@@ -332,7 +345,19 @@
- 			break;
- 	#endif
- 
-+	#if defined(_WIN32) || defined(__XMMS__)
- 		case 4:
-+	#else
-+		case 3:
-+	#endif
-+			M_Menu_Help_f ();
-+			break;
-+
-+	#if defined(_WIN32) || defined(__XMMS__)
-+		case 5:
-+	#else
-+		case 4:
-+	#endif
- 			M_Menu_Quit_f ();
- 			break;
- 		}
-@@ -442,9 +467,11 @@
+--- menu.c.orig	Thu Feb  5 00:33:07 2004
++++ menu.c	Thu Feb  5 00:34:32 2004
+@@ -411,9 +436,11 @@
  		Cvar_SetValue (&cl_hudswap, !cl_hudswap.value);
  		break;
  
@@ -83,126 +12,27 @@
  	}
  }
  
-@@ -491,25 +518,25 @@
- 	r = v_contrast.value - 1.0;
- 	M_DrawSlider (220, 72, r);
- 
--	M_Print (16, 80, "           Mouse Speed");
-+	M_Print (16, 80, "           Mouse speed");
- 	r = (sensitivity.value - 1)/10;
- 	M_DrawSlider (220, 80, r);
- 
--	M_Print (16, 88, "       CD Music Volume");
-+	M_Print (16, 88, "       CD music volume");
- 	r = bgmvolume.value;
- 	M_DrawSlider (220, 88, r);
- 
--	M_Print (16, 96, "          Sound Volume");
-+	M_Print (16, 96, "          Sound volume");
- 	r = s_volume.value;
- 	M_DrawSlider (220, 96, r);
- 
--	M_Print (16, 104,  "            Always Run");
-+	M_Print (16, 104,  "            Always run");
- 	M_DrawCheckbox (220, 104, cl_forwardspeed.value > 200);
- 
- 	M_Print (16, 112, "            Mouse look");
- 	M_DrawCheckbox (220, 112, freelook.value);
- 
--	M_Print (16, 120, "          Invert Mouse");
-+	M_Print (16, 120, "          Invert mouse");
- 	M_DrawCheckbox (220, 120, m_pitch.value < 0);
- 
- 	M_Print (16, 128, "            Lookstrafe");
-@@ -524,17 +551,19 @@
- 	M_Print (16, 152, "          FPS settings");
- 
- 	if (vid_menudrawfn)
--		M_Print (16, 160, "           Video Modes");
-+		M_Print (16, 160, "           Video modes");
- 
-+#ifndef NO_WINDOWED_MOUSE
- #ifdef _WIN32
- 	if (modestate == MS_WINDOWED)
- 	{
- #endif
--		M_Print (16, 168, "             Use Mouse");
-+		M_Print (16, 168, "             Use mouse");
- 		M_DrawCheckbox (220, 168, _windowed_mouse.value);
- #ifdef _WIN32
- 	}
- #endif
-+#endif /* NO_WINDOWED_MOUSE */
- 
- // cursor
- 	M_DrawCharacter (200, 32 + options_cursor*8, 12+((int)(curtime*4)&1));
-@@ -611,22 +640,34 @@
- 		break;
- 	}
- 
--	if (options_cursor == 16 && vid_menudrawfn == NULL) {
--		if (k == K_UPARROW || k == K_END || k == K_PGDN)
-+	if (k == K_UPARROW || k == K_END || k == K_PGDN)
-+	{
-+#ifdef NO_WINDOWED_MOUSE
-+		if ((options_cursor == 17)
-+#ifdef _WIN32
-+		&& (modestate != MS_WINDOWED)
-+#endif
-+		)
-+			options_cursor = 16;
-+#endif /* NO_WINDOWED_MOUSE */
-+
-+		if (options_cursor == 16 && vid_menudrawfn == NULL)
- 			options_cursor = 15;
--		else
--			options_cursor = 0;
- 	}
-+	else
-+	{
-+		if (options_cursor == 16 && vid_menudrawfn == NULL)
-+			options_cursor = 17;
- 
--	if ((options_cursor == 17)
-+#ifdef NO_WINDOWED_MOUSE
-+		if ((options_cursor == 17)
- #ifdef _WIN32
--	&& (modestate != MS_WINDOWED)
-+		&& (modestate != MS_WINDOWED)
- #endif
--	)
--	if (k == K_UPARROW || k == K_END || k == K_PGDN)
--		options_cursor = 16;
--	else
--		options_cursor = 0;
-+		)
-+			options_cursor = 0;
-+#endif /* NO_WINDOWED_MOUSE */
-+	}
- }
- 
- 
-@@ -894,24 +935,24 @@
+@@ -873,24 +900,24 @@
  	M_Print (16, 96, "        Pickup flashes");
- 	M_DrawCheckbox (220, 96, v_bonusflash.value);
+ 	M_DrawCheckbox (ALIGN_FPS_OPTIONS, 96, v_bonusflash.value);
  
 -	M_Print (16, 104, "         Powerup glow");
 +	M_Print (16, 104, "          Powerup glow");
- 	M_Print (220, 104, r_powerupglow.value==2 ? "own off" :
+ 	M_Print (ALIGN_FPS_OPTIONS, 104, r_powerupglow.value==2 ? "own off" :
  		r_powerupglow.value ? "on" : "off");
  
 -	M_Print (16, 112, "         Draw torches");
 +	M_Print (16, 112, "          Draw torches");
- 	M_DrawCheckbox (220, 112, r_drawflame.value);
+ 	M_DrawCheckbox (ALIGN_FPS_OPTIONS, 112, r_drawflame.value);
  
 -	M_Print (16, 120, "             Fast sky");
 +	M_Print (16, 120, "              Fast sky");
- 	M_DrawCheckbox (220, 120, r_fastsky.value);
+ 	M_DrawCheckbox (ALIGN_FPS_OPTIONS, 120, r_fastsky.value);
  
  #ifdef GLQUAKE
 -	M_Print (16, 128, "          Fast lights");
 +	M_Print (16, 128, "           Fast lights");
- 	M_DrawCheckbox (220, 128, gl_flashblend.value);
+ 	M_DrawCheckbox (ALIGN_FPS_OPTIONS, 128, gl_flashblend.value);
  #endif
  
 -	M_PrintWhite (16, 136, "            Fast mode");
@@ -212,4 +42,4 @@
 +	M_PrintWhite (16, 144, "          High quality");
  
  // cursor
- 	M_DrawCharacter (200, 32 + fps_cursor*8, 12+((int)(curtime*4)&1));
+ 	M_DrawCharacter (196, 32 + fps_cursor * 8, 12 + ((int) (curtime * 4) & 1));
diff -ur /usr/ports/games/fuhquake/files/patch-modules.c ./files/patch-modules.c
--- /usr/ports/games/fuhquake/files/patch-modules.c	Tue Jun  3 01:29:57 2003
+++ ./files/patch-modules.c	Wed Feb  4 21:14:48 2004
@@ -1,11 +1,13 @@
---- modules.c.orig	Wed May 21 17:18:36 2003
-+++ modules.c	Wed May 21 17:22:37 2003
-@@ -22,7 +22,7 @@
- #include "modules.h"
- #include "version.h"
+--- modules.c.orig	Wed Feb  4 21:05:56 2004
++++ modules.c	Wed Feb  4 21:14:23 2004
+@@ -31,10 +31,6 @@
+ char _temp_modulename[MAX_OSPATH];
+ static registeredModule_t registeredModules[qlib_nummodules];
  
 -#ifdef __linux
-+#if defined(__linux__) || defined(__FreeBSD__)
- #include <dlfcn.h>
- #endif
- 
+-#include <dlfcn.h>
+-#endif
+-
+ #ifdef _WIN32
+ #define SECURITY_GETFUNC(f) (Security_##f = (Security_##f##_t) GetProcAddress(hSecurity, "Security_" #f))
+ #else
diff -ur /usr/ports/games/fuhquake/files/patch-mp3_player.c ./files/patch-mp3_player.c
--- /usr/ports/games/fuhquake/files/patch-mp3_player.c	Sat Sep  6 22:14:32 2003
+++ ./files/patch-mp3_player.c	Wed Feb  4 21:23:58 2004
@@ -1,6 +1,6 @@
---- mp3_player.c.orig	Mon Sep  1 18:18:40 2003
-+++ mp3_player.c	Mon Sep  1 18:20:09 2003
-@@ -48,9 +48,10 @@
+--- mp3_player.c.orig	Wed Feb  4 21:19:26 2004
++++ mp3_player.c	Wed Feb  4 21:23:46 2004
+@@ -56,9 +56,10 @@
  
  #ifdef __XMMS__
  
@@ -8,25 +8,7 @@
  #include <sys/wait.h>
  
 -cvar_t mp3_dir = {"mp3_xmms_dir", "/usr/local/bin"};
-+cvar_t mp3_dir = {"mp3_xmms_dir", "/usr/X11R6/bin"};
++cvar_t mp3_dir = {"mp3_xmms_dir", "%%X11BASE%%/bin"};
  cvar_t mp3_xmms_session = {"mp3_xmms_session", "0"};
  
  #endif
-@@ -288,7 +289,7 @@
- #define XMMS_COMMAND(Name, Param)						\
-     void MP3_##Name##_f(void) {							\
- 	   if (MP3_IsPlayerRunning()) {						\
--		   xmms_remote_##Param##(XMMS_SESSION);			\
-+		   xmms_remote_##Param(XMMS_SESSION);			\
- 	   } else {											\
- 		   Com_Printf("%s\n", mp3_notrunning_msg);		\
- 	   }												\
-@@ -769,7 +770,7 @@
- 
- #endif
- 
--#ifdef __linux__
-+#if defined(__linux__) || defined(__FreeBSD__)
- 
- #ifdef __XMMS__
- 
diff -ur /usr/ports/games/fuhquake/files/patch-version.h ./files/patch-version.h
--- /usr/ports/games/fuhquake/files/patch-version.h	Wed Sep 24 16:18:43 2003
+++ ./files/patch-version.h	Wed Feb  4 21:02:14 2004
@@ -1,10 +1,16 @@
---- version.h.orig	Thu Sep 18 23:36:30 2003
-+++ version.h	Thu Sep 18 23:36:50 2003
-@@ -7,7 +7,7 @@
- #ifdef _WIN32
+--- version.h.orig	Wed Sep 24 20:56:57 2003
++++ version.h	Wed Sep 24 20:58:44 2003
+@@ -4,10 +4,12 @@
+ #define FUH_VERSION		"0.30"
+ #define LINUX_VERSION	0.98
+ 
+-#ifdef _WIN32
++#if defined(_WIN32)
  #define QW_PLATFORM	"Win32"
- #else 
--#define QW_PLATFORM	"Linux"
+-#else 
++#elif defined(__linux__)
+ #define QW_PLATFORM	"Linux"
++#elif defined(__FreeBSD__)
 +#define QW_PLATFORM	"FreeBSD"
  #endif
  
diff -ur /usr/ports/games/fuhquake/files/patch-vid_glx.c ./files/patch-vid_glx.c
--- /usr/ports/games/fuhquake/files/patch-vid_glx.c	Sat Sep  6 22:14:32 2003
+++ ./files/patch-vid_glx.c	Wed Feb  4 21:02:14 2004
@@ -10,25 +10,3 @@
  #include <stdarg.h>
  #include <stdio.h>
  #include <signal.h>
-@@ -284,8 +286,8 @@
- 	case MotionNotify:
- #ifdef WITH_DGA
- 		if (dgamouse && _windowed_mouse.value) {
--			mouse_x = event.xmotion.x_root;
--			mouse_y = event.xmotion.y_root;
-+			mouse_x += event.xmotion.x_root;
-+			mouse_y += event.xmotion.y_root;
- 		} else
- #endif
- 		{
-@@ -601,8 +603,9 @@
- #ifdef WITH_VMODE
- 	// fullscreen
- 	if (vidmode_active) {
--		mask = CWBackPixel | CWColormap | CWSaveUnder | CWBackingStore | CWEventMask;
-+		mask = CWBackPixel | CWColormap | CWSaveUnder | CWBackingStore | CWEventMask | CWOverrideRedirect;
- 		attr.backing_store = NotUseful;
-+		attr.override_redirect = True;
- 		attr.save_under = False;
- 	}
- #endif
diff -ur /usr/ports/games/fuhquake/files/patch-vid_svga.c ./files/patch-vid_svga.c
--- /usr/ports/games/fuhquake/files/patch-vid_svga.c	Tue Jun  3 01:29:57 2003
+++ ./files/patch-vid_svga.c	Thu Feb  5 00:52:00 2004
@@ -1,5 +1,5 @@
---- vid_svgalib.c.orig	Thu May 29 17:56:45 2003
-+++ vid_svgalib.c	Thu May 29 17:56:28 2003
+--- vid_svgalib.c.orig	Thu Feb  5 00:41:00 2004
++++ vid_svgalib.c	Thu Feb  5 00:51:44 2004
 @@ -20,12 +20,18 @@
  #include <termios.h>
  #include <sys/ioctl.h>
@@ -27,7 +27,7 @@
  cvar_t	m_filter = {"m_filter","0"};
  cvar_t cl_keypad = {"cl_keypad", "1"};
  
-@@ -330,45 +335,41 @@
+@@ -307,45 +312,41 @@
  }
  
  static byte scantokey_kp[128] = {
@@ -48,7 +48,7 @@
 -	KP_ENTER,K_RCTRL,KP_SLASH,0, K_RALT,  K_PAUSE,K_HOME, K_UPARROW,
 -	K_PGUP, K_LEFTARROW,K_RIGHTARROW,K_END, K_DOWNARROW,K_PGDN,K_INS,K_DEL,        // 6
 -	0,      0,      0,      0,      0,      0,      0,      K_PAUSE,
--	0,      0,      0,      0,      0,      0,      0,      0						 // 7
+-	0,      0,      0,      0,      0,      K_LWIN, K_RWIN, K_MENU					// 7
 +	0,            K_ESCAPE,   '1',          '2',           '3',         '4',           '5',         '6',
 +	'7',          '8',        '9',          '0',           '-',         '=',           K_BACKSPACE, 9,
 +	'q',          'w',        'e',          'r',           't',         'y',           'u',         'i',
@@ -62,7 +62,7 @@
 +	KP_DOWNARROW, KP_PGDN,     KP_INS,       KP_DEL,       0,           0,             0,           K_F11,
 +	K_F12,        KP_ENTER,    K_RCTRL,      KP_SLASH,     K_PRINTSCR,  K_RALT,        K_HOME,      K_UPARROW,
 +	K_PGUP,       K_LEFTARROW, K_RIGHTARROW, K_END,        K_DOWNARROW, K_PGDN,        K_INS,       K_DEL,
-+	K_PAUSE,      K_LWINDOW,   K_RWINDOW,    K_POPUPMENU,  0,           0,             0,           0,
++	K_PAUSE,      K_LWIN,      K_RWIN,       K_MENU,       0,           0,             0,           0,
 +	0,            0,           0,            0,            0,           0,             0,           0,
 +	0,            0,           0,            0,            0,           0,             0,           0
  };
@@ -85,7 +85,7 @@
 -	K_ENTER,K_RCTRL,'/',     0, K_RALT,  K_PAUSE,K_HOME, K_UPARROW,
 -	K_PGUP, K_LEFTARROW,K_RIGHTARROW,K_END, K_DOWNARROW,K_PGDN,K_INS,K_DEL,        // 6
 -	0,      0,      0,      0,      0,      0,      0,      K_PAUSE,
--	0,      0,      0,      0,      0,      0,      0,      0         // 7
+-	0,      0,      0,      0,      0,      K_LWIN, K_RWIN, K_MENU			// 7
 +	0,           K_ESCAPE,   '1',          '2',          '3',         '4',          '5',         '6',
 +	'7',         '8',        '9',          '0',          '-',         '=',          K_BACKSPACE, 9,
 +	'q',         'w',        'e',          'r',          't',         'y',          'u',         'i',
@@ -99,7 +99,7 @@
 +	K_DOWNARROW, K_PGDN,      K_INS,        K_DEL,       0,           0,            0,           K_F11,
 +	K_F12,       K_ENTER,     K_RCTRL,      '/',         K_PRINTSCR,  K_RALT,       K_HOME,      K_UPARROW,
 +	K_PGUP,      K_LEFTARROW, K_RIGHTARROW, K_END,       K_DOWNARROW, K_PGDN,       K_INS,       K_DEL,
-+	K_PAUSE,     K_LWINDOW,   K_RWINDOW,    K_POPUPMENU, 0,           0,            0,           0,
++	K_PAUSE,     K_LWIN,      K_RWIN,       K_MENU,      0,           0,            0,           0,
 +	0,           0,           0,            0,           0,           0,            0,           0,
 +	0,           0,           0,            0,           0,           0,            0,           0
  };
diff -ur /usr/ports/games/fuhquake/pkg-message ./pkg-message
--- /usr/ports/games/fuhquake/pkg-message	Sat Sep  6 22:14:32 2003
+++ ./pkg-message	Tue Sep 23 22:21:06 2003
@@ -6,10 +6,10 @@
     You must also have registered version of
     Quake per to be able to legally copy the
     PAK files (pak*.pak) from id1/ directory
-    to ${DATADIR}/id1/ from CDROM or Windows
-    installation.  In case it is not an opt-
-    ion, you can rebuild the port with "make
-    -DWITH_SHAREWARE_DATA", and thus install
-    demo version (shareware) data files.
+    to ${DATADIR}/id1/ from a
+    Windows installation or CDROM.  If it is
+    not an option, you can still rebuild the
+    port with WITH_SHAREWARE_DATA knob so to
+    install shareware version data files.
 
 ================================================
diff -ur /usr/ports/games/fuhquake/pkg-plist ./pkg-plist
--- /usr/ports/games/fuhquake/pkg-plist	Sat Sep  6 22:14:32 2003
+++ ./pkg-plist	Sat Apr 24 20:59:57 2004
@@ -1,23 +1,25 @@
 %%X11%%bin/fuhquake-x11
 %%GLX%%bin/fuhquake-glx
 %%SVGA%%bin/fuhquake-svga
+%%PORTDOCS%%%%DOCSDIR%%/FAQ-v0.30-b585.txt
+%%PORTDOCS%%%%DOCSDIR%%/FuhQuake-v0.31-FAQ.txt
 %%PORTDOCS%%%%DOCSDIR%%/benchmark.txt
 %%PORTDOCS%%%%DOCSDIR%%/config_manager.txt
 %%PORTDOCS%%%%DOCSDIR%%/crosshairs.txt
 %%PORTDOCS%%%%DOCSDIR%%/fuhquake.txt
 %%PORTDOCS%%%%DOCSDIR%%/linux.txt
 %%PORTDOCS%%%%DOCSDIR%%/logitech.txt
+%%PORTDOCS%%%%DOCSDIR%%/match_tools.txt
 %%PORTDOCS%%%%DOCSDIR%%/mp3.txt
 %%PORTDOCS%%%%DOCSDIR%%/particles.txt
 %%PORTDOCS%%%%DOCSDIR%%/pointing.txt
 %%PORTDOCS%%%%DOCSDIR%%/rulesets.txt
 %%PORTDOCS%%%%DOCSDIR%%/track.txt
 %%PORTDOCS%%@dirrm %%DOCSDIR%%
-share/fuhquake/fuhquake/pak0.pak
 %%SHAREWARE%%share/fuhquake/id1/pak0.pak
+share/fuhquake/qw/fragfile.dat
 share/fuhquake/qw/qwprogs.dat
 share/fuhquake/qw/spprogs.dat
 @dirrm share/fuhquake/qw
 %%SHAREWARE%%@dirrm share/fuhquake/id1
-@dirrm share/fuhquake/fuhquake
 @dirrm share/fuhquake
>Release-Note:
>Audit-Trail:
>Unformatted:



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