aboutsummaryrefslogtreecommitdiff
path: root/graphics/glide3/files
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2014-09-01 16:33:09 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2014-09-01 16:33:09 +0000
commit8901c97d1268a3e5a236e33a7624116a6d4af04f (patch)
treeebb104d4e4859dfae91de591c24abfb3d7b599d5 /graphics/glide3/files
parentc7ac817ffffd3f473dcc1dbb0329108453a41d6a (diff)
downloadports-8901c97d1268a3e5a236e33a7624116a6d4af04f.tar.gz
ports-8901c97d1268a3e5a236e33a7624116a6d4af04f.zip
Notes
Diffstat (limited to 'graphics/glide3/files')
-rw-r--r--graphics/glide3/files/patch-configure_in23
-rw-r--r--graphics/glide3/files/patch-h3-distate.c32
-rw-r--r--graphics/glide3/files/patch-h3-fxglide_h33
-rw-r--r--graphics/glide3/files/patch-h3-gglide_c_dri110
-rw-r--r--graphics/glide3/files/patch-h3-glide_h40
-rw-r--r--graphics/glide3/files/patch-h3-gsst_c_dri138
-rw-r--r--graphics/glide3/files/patch-h3-minihwc-linhwc_c_dri10
-rw-r--r--graphics/glide3/files/patch-h3-minihwc-makefile12
-rw-r--r--graphics/glide3/files/patch-h3-src-makefile66
-rw-r--r--graphics/glide3/files/patch-h3-xdraw_inc_S12
-rw-r--r--graphics/glide3/files/patch-h5-distate.c43
-rw-r--r--graphics/glide3/files/patch-h5-fxglide_h40
-rw-r--r--graphics/glide3/files/patch-h5-gdebug_c21
-rw-r--r--graphics/glide3/files/patch-h5-gdebug_h25
-rw-r--r--graphics/glide3/files/patch-h5-glfb_c11
-rw-r--r--graphics/glide3/files/patch-h5-glide3-src-glfb_c73
-rw-r--r--graphics/glide3/files/patch-h5-glide_h40
-rw-r--r--graphics/glide3/files/patch-h5-minihwc-makefile12
-rw-r--r--graphics/glide3/files/patch-h5-src-makefile62
-rw-r--r--graphics/glide3/files/patch-h5-xdraw2_inc_s12
-rw-r--r--graphics/glide3/files/patch-make-3dfx_linux_mak32
-rw-r--r--graphics/glide3/files/patch-make-3dfx_mak34
-rw-r--r--graphics/glide3/files/patch-make-makefile33
-rw-r--r--graphics/glide3/files/patch-swlibs-fxmisc-fxos_c55
24 files changed, 0 insertions, 969 deletions
diff --git a/graphics/glide3/files/patch-configure_in b/graphics/glide3/files/patch-configure_in
deleted file mode 100644
index 128ce8b2b007..000000000000
--- a/graphics/glide3/files/patch-configure_in
+++ /dev/null
@@ -1,23 +0,0 @@
---- configure.in.orig 2001-05-31 14:05:51.000000000 -0500
-+++ configure.in 2011-03-06 14:40:30.000000000 -0600
-@@ -27,2 +27,6 @@
- AC_PREFIX_DEFAULT([/usr])
-+
-+AC_PATH_X
-+AC_SUBST(x_includes)
-+
- includedir='${prefix}/include/glide3'
-@@ -170,2 +174,7 @@
- AC_SUBST(FX_GLIDE_BUILD_ARCHITECTURE)
-+
-+# Appease automake1.5 about assembly targets
-+ASFLAGS=
-+AC_SUBST(ASFLAGS)
-+
- #
-@@ -250,3 +259,4 @@
- AC_PROG_CPP
--AC_CHECK_TOOL(AS, as, false)
-+AM_PROG_AS
-+AM_PROG_CC_C_O
- AC_CHECK_TOOL(OBJDUMP, objdump, false)
diff --git a/graphics/glide3/files/patch-h3-distate.c b/graphics/glide3/files/patch-h3-distate.c
deleted file mode 100644
index 447bb95e9208..000000000000
--- a/graphics/glide3/files/patch-h3-distate.c
+++ /dev/null
@@ -1,32 +0,0 @@
---- h3/glide3/src/distate.c.orig Sun Sep 28 22:48:55 2003
-+++ h3/glide3/src/distate.c Sun Sep 28 22:49:07 2003
-@@ -206,23 +206,23 @@
- */
-
- #define STOREARG(function, arg) \
--gc->state.stateArgs.##function##Args.arg = arg
-+gc->state.stateArgs.function##Args.arg = arg
-
- #define LOADARG(function, arg) \
--gc->state.stateArgs.##function##Args.arg
-+gc->state.stateArgs.function##Args.arg
-
-
- #define NOTVALID(regset) \
--(gc->state.invalid & ##regset##BIT)
-+(gc->state.invalid & regset##BIT)
-
- #define SETVALID(regset) \
--(gc->state.invalid &= ~(##regset##BIT))
-+(gc->state.invalid &= ~(regset##BIT))
-
- #define ENABLEMODE(mode) \
--gc->state.grEnableArgs.##mode## = GR_MODE_ENABLE;
-+gc->state.grEnableArgs.mode = GR_MODE_ENABLE;
-
- #define DISABLEMODE(mode) \
--gc->state.grEnableArgs.##mode## = GR_MODE_DISABLE;
-+gc->state.grEnableArgs.mode = GR_MODE_DISABLE;
-
- /*-------------------------------------------------------------------
- Function: grAlphaBlendFunction
diff --git a/graphics/glide3/files/patch-h3-fxglide_h b/graphics/glide3/files/patch-h3-fxglide_h
deleted file mode 100644
index 57c406fef8a5..000000000000
--- a/graphics/glide3/files/patch-h3-fxglide_h
+++ /dev/null
@@ -1,33 +0,0 @@
---- h3/glide3/src/fxglide.h.orig Thu May 31 12:05:52 2001
-+++ h3/glide3/src/fxglide.h Sun Sep 28 22:41:02 2003
-@@ -1526,7 +1526,7 @@
-
- #ifdef GLIDE3
- #define GR_STATE_ENTRY(name, type, args) \
-- type _##name## args
-+ type _##name args
- #else
- #define GR_STATE_ENTRY(name, type, args) \
- GR_ENTRY(name, type, args)
-@@ -1845,7 +1845,7 @@
- #define CUR_TRI_PROC(__checkValidP, __cullP) \
- (*gc->archDispatchProcs.coorModeTriVector)[__checkValidP][__cullP]
- #define INVALIDATE(regset) {\
-- gc->state.invalid |= ##regset##BIT; \
-+ gc->state.invalid |= regset##BIT; \
- gc->triSetupProc = CUR_TRI_PROC(FXTRUE, (gc->state.cull_mode != GR_CULL_DISABLE)); \
- }
-
-@@ -2133,7 +2133,11 @@
- #if defined(GLIDE_SANITY_ASSERT)
- #define GR_ASSERT(exp) ((void)((!(exp)) ? (_grAssert(#exp, __FILE__, __LINE__),0) : 0xFFFFFFFF))
- #else
--#define GR_ASSERT(exp) ((void)(0 && ((FxU32)(exp))))
-+# ifdef __GNUC__
-+# define GR_ASSERT(exp) ((void) 0)
-+# else
-+# define GR_ASSERT(exp) ((void)(0 && ((FxU32)(exp))))
-+# endif
- #endif
-
- #define INTERNAL_CHECK(__name, __cond, __msg, __fatalP) \
diff --git a/graphics/glide3/files/patch-h3-gglide_c_dri b/graphics/glide3/files/patch-h3-gglide_c_dri
deleted file mode 100644
index 6eb669df7a65..000000000000
--- a/graphics/glide3/files/patch-h3-gglide_c_dri
+++ /dev/null
@@ -1,110 +0,0 @@
-diff -ru ../Glide3.orig/h3/glide3/src/gglide.c.dri ./h3/glide3/src/gglide.c.dri
---- ../Glide3.orig/h3/glide3/src/gglide.c.dri Fri Nov 24 10:38:46 2000
-+++ ./h3/glide3/src/gglide.c.dri Sun Jan 13 17:32:04 2002
-@@ -448,7 +448,7 @@
- #include "fxcmd.h"
- #include "fxinline.h"
-
--#ifdef __linux__
-+#ifdef DRI_BUILD
- #include <lindri.h>
- #endif
-
-@@ -483,12 +483,12 @@
-
- alphamode = gc->state.shadow.alphaMode;
- if (alpha_sf != GR_BLEND_ONE && alpha_sf != GR_BLEND_ZERO) {
-- GR_CHECK_W(myName, 1, "unsupported alpha source blend function");
-+ /*GR_CHECK_W(myName, 1, "unsupported alpha source blend function");*/
- alpha_sf = GR_BLEND_ONE;
- }
-
- if (alpha_df != GR_BLEND_ONE && alpha_df != GR_BLEND_ZERO) {
-- GR_CHECK_W(myName, 1, "unsupported alpha destination blend function");
-+ /*GR_CHECK_W(myName, 1, "unsupported alpha destination blend function");*/
- alpha_df = GR_BLEND_ZERO;
- }
-
-@@ -917,7 +917,7 @@
-
- REG_GROUP_BEGIN(BROADCAST_ID, colBufferAddr, 2, 0x3);
- REG_GROUP_SET(hw, colBufferAddr,gc->buffers[gc->grColBuf]);
--#ifdef __linux__
-+#ifdef DRI_BUILD
- REG_GROUP_SET(hw, colBufferStride, (!gc->curBuffer)? driInfo.stride :
- gc->state.shadow.auxBufferStride);
- #else
-@@ -951,7 +951,7 @@
- REG_GROUP_BEGIN(BROADCAST_ID, colBufferAddr, 2, 0x3);
- REG_GROUP_SET(hw, colBufferAddr, gc->buffers[gc->windowed ? 0 : gc->curBuffer]);
-
--#ifdef __linux__
-+#ifdef DRI_BUILD
- REG_GROUP_SET(hw, colBufferStride, (!gc->curBuffer) ? driInfo.stride :
- gc->state.shadow.colBufferStride);
- #else
-@@ -1923,7 +1923,7 @@
- ** grStippleMode
- */
-
--#ifdef __linux__
-+#ifdef DRI_BUILD
- GR_STATE_ENTRY(grStippleMode, void, (GrStippleMode_t mode))
- {
- #define FN_NAME "_grStippleMode"
-@@ -1957,7 +1957,7 @@
- #endif /* !GLIDE3 */
- #undef FN_NAME
- } /* grStippleMode */
--#endif /* __linux__ */
-+#endif /* DRI_BUILD */
-
- /*---------------------------------------------------------------------------
- ** grDitherMode
-@@ -2325,7 +2325,7 @@
- ** and the only drawbuffer modes supported by the fbzMode register are 0
- ** (back) and 1 (front)
- */
--#ifndef __linux__
-+#ifndef DRI_BUILD
- GR_STATE_ENTRY(grRenderBuffer, void, (GrBuffer_t buffer))
- {
- #define FN_NAME "_grRenderBuffer"
-@@ -2352,7 +2352,7 @@
- GR_END();
- #undef FN_NAME
- } /* grRenderBuffer */
--#else /* __linux__ */
-+#else /* DRI_BUILD */
- GR_STATE_ENTRY(grRenderBuffer, void, (GrBuffer_t buffer))
- {
- #define FN_NAME "_grRenderBuffer"
-diff -ru ../Glide3.orig/h3/glide3/src/glfb.c.dri ./h3/glide3/src/glfb.c.dri
---- ../Glide3.orig/h3/glide3/src/glfb.c.dri Wed Aug 30 01:47:03 2000
-+++ ./h3/glide3/src/glfb.c.dri Sun Jan 13 17:35:08 2002
-@@ -217,7 +217,7 @@
- #include "fxglide.h"
- #include "fxcmd.h"
-
--#ifdef __linux__
-+#ifdef DRI_BUILD
- #include <lindri.h>
- #endif
-
-@@ -456,7 +456,7 @@
- }
-
- if (rv) {
--#ifdef __linux__
-+#ifdef DRI_BUILD
- if (!colBufferIndex)
- info->strideInBytes = driInfo.stride;
- else
-@@ -487,7 +487,7 @@
- GR_CHECK_SIZE();
-
- info->lfbPtr = (void *)gc->lfb_ptr;
--#ifdef __linux__
-+#ifdef DRI_BUILD
- info->strideInBytes = 0x1000;
- #endif
diff --git a/graphics/glide3/files/patch-h3-glide_h b/graphics/glide3/files/patch-h3-glide_h
deleted file mode 100644
index 8fc5ee8cbc10..000000000000
--- a/graphics/glide3/files/patch-h3-glide_h
+++ /dev/null
@@ -1,40 +0,0 @@
-diff -ru ../Glide3.orig/h3/glide3/src/glide.h ./h3/glide3/src/glide.h
---- ../Glide3.orig/h3/glide3/src/glide.h Thu May 31 12:05:52 2001
-+++ ./h3/glide3/src/glide.h Sun Jan 13 14:46:12 2002
-@@ -52,9 +52,7 @@
- typedef FxU32 GrColor_t;
- typedef FxU8 GrAlpha_t;
- typedef FxU32 GrMipMapId_t;
--#if defined(DRI_BUILD)
- typedef FxU32 GrStipplePattern_t;
--#endif
- typedef FxU8 GrFog_t;
- typedef AnyPtr GrContext_t;
- typedef int (FX_CALL *GrProc)();
-@@ -253,12 +251,10 @@
- #define GR_DITHER_2x2 0x1
- #define GR_DITHER_4x4 0x2
-
--#if defined(DRI_BUILD)
- typedef FxI32 GrStippleMode_t;
- #define GR_STIPPLE_DISABLE 0x0
- #define GR_STIPPLE_PATTERN 0x1
- #define GR_STIPPLE_ROTATE 0x2
--#endif /* DRI_BUILD */
-
- typedef FxI32 GrFogMode_t;
- #define GR_FOG_DISABLE 0x0
-@@ -709,13 +705,11 @@
- FX_ENTRY void FX_CALL
- grDitherMode( GrDitherMode_t mode );
-
--#if defined(DRI_BUILD)
- FX_ENTRY void FX_CALL
- grStippleMode( GrStippleMode_t mode );
-
- FX_ENTRY void FX_CALL
- grStipplePattern( GrStipplePattern_t mode );
--#endif /* DRI_BUILD */
-
- FX_ENTRY void FX_CALL
- grFogColorValue( GrColor_t fogcolor );
diff --git a/graphics/glide3/files/patch-h3-gsst_c_dri b/graphics/glide3/files/patch-h3-gsst_c_dri
deleted file mode 100644
index 696a68e942dc..000000000000
--- a/graphics/glide3/files/patch-h3-gsst_c_dri
+++ /dev/null
@@ -1,138 +0,0 @@
-diff -ru ../Glide3.orig/h3/glide3/src/gsst.c.dri ./h3/glide3/src/gsst.c.dri
---- ../Glide3.orig/h3/glide3/src/gsst.c.dri Wed Aug 30 01:47:03 2000
-+++ ./h3/glide3/src/gsst.c.dri Sun Jan 13 17:33:57 2002
-@@ -534,7 +534,7 @@
- #include <windows.h>
- #endif
-
--#ifdef __linux__
-+#ifdef DRI_BUILD
- #include <lindri.h>
- #endif
-
-@@ -746,7 +746,7 @@
- GDBG_INFO(95, FN_NAME"(0x%X)\n", gc);
-
- /* Setup the indices of the logical buffers */
--#ifdef __linux__
-+#ifdef DRI_BUILD
- gc->curBuffer = (gc->grColBuf > 1) ? 1 : 0;
- gc->frontBuffer = 0;
- #else
-@@ -939,7 +939,7 @@
- struct cmdTransportInfo *gcFifo = 0;
- GrContext_t retVal = 0;
-
--#ifndef __linux__
-+#ifndef DRI_BUILD
- if (!hWnd)
- GrErrorCallback("grSstWinOpen: need to use a valid window handle",
- FXTRUE);
-@@ -977,7 +977,7 @@
- ? GR_RESOLUTION_640x480
- : resolution;
-
--#ifdef __linux__
-+#ifdef DRI_BUILD
- gc->state.screen_width = driInfo.screenWidth;
- gc->state.screen_height = driInfo.screenHeight;
- #else
-@@ -1059,7 +1059,7 @@
- gc->hwInitP = FXTRUE;
- }
-
--#ifdef __linux__
-+#ifdef DRI_BUILD
- vInfo->xRes = driInfo.w;
- vInfo->yRes = driInfo.h;
- #else
-@@ -1118,7 +1118,7 @@
- /* This actually gets taken in hwcInitVideo */
- gc->contextP = FXTRUE;
-
--#ifndef __linux__
-+#ifndef DRI_BUILD
- /* CSR - Set up flag for display driver to tell us that context was lost */
- if ( !gc->open ) /* If we already have a context open, then lets not
- re-initialize the pointers */
-@@ -1400,7 +1400,7 @@
- gcFifo->fifoPtr = gcFifo->fifoStart;
- gcFifo->fifoRead = HW_FIFO_PTR( FXTRUE );
-
--#ifndef __linux__
-+#ifndef DRI_BUILD
- if ( (void*)gcFifo->fifoPtr != (void*)gcFifo->fifoRead ) {
- #ifdef GLIDE_INIT_HWC
- hwcRestoreVideo( bInfo );
-@@ -1442,7 +1442,7 @@
- gcFifo->fifoSize,
- gcFifo->fifoPtr );
-
--#ifdef __linux__
-+#ifdef DRI_BUILD
- _grImportFifo((AnyPtr)*driInfo.fifoPtr, (AnyPtr)*driInfo.fifoRead);
- #endif
-
-@@ -1496,7 +1496,7 @@
- REG_GROUP_BEGIN(BROADCAST_ID, colBufferAddr, 4, 0xf);
- {
- REG_GROUP_SET(hw, colBufferAddr, gc->state.shadow.colBufferAddr);
--#ifdef __linux__
-+#ifdef DRI_BUILD
- REG_GROUP_SET(hw, colBufferStride, (!gc->curBuffer) ? driInfo.stride :
- gc->state.shadow.colBufferStride);
- #else
-@@ -1510,7 +1510,7 @@
-
- GDBG_INFO( gc->myLevel, " Setting all Glide state\n" );
- assertDefaultState();
--#ifdef __linux__
-+#ifdef DRI_BUILD
- if (nColBuffers>1)
- grRenderBuffer(GR_BUFFER_BACKBUFFER);
- else
-@@ -1578,7 +1578,7 @@
- GrGC* gc = (GrGC*)context;
- GDBG_INFO(80, FN_NAME"(0x%X)\n", context);
-
--#ifndef __linux__
-+#ifndef DRI_BUILD
- if (gc->lostContext) {
- if (*gc->lostContext)
- return 0;
-@@ -1626,7 +1626,7 @@
- * safe everywhere.
- */
- GDBG_INFO(gc->myLevel, " Restore Video");
--#ifndef __linux__
-+#ifndef DRI_BUILD
- if (!*gc->lostContext)
- #endif
- hwcRestoreVideo(gc->bInfo);
-@@ -1657,7 +1657,7 @@
- }
- _GlideRoot.windowsInit--;
-
--#ifndef __linux__
-+#ifndef DRI_BUILD
- if ( gc->bInfo->osNT )
- hwcUnmapMemory();
- else
-@@ -1731,7 +1731,7 @@
- GR_ASSERT((gc >= _GlideRoot.GCs) &&
- (gc <= _GlideRoot.GCs + MAX_NUM_SST));
-
--#if defined( GLIDE_INIT_HWC ) && !defined(__linux__)
-+#if defined( GLIDE_INIT_HWC ) && !defined(DRI_BUILD)
- gc->contextP = hwcQueryContext(gc->bInfo);
- #else
- gc->contextP = 1;
-@@ -1882,7 +1882,7 @@
-
- grFlush();
- if ( gc->windowed ) {
--#if defined( GLIDE_INIT_HWC ) && !defined( __linux__ )
-+#if defined( GLIDE_INIT_HWC ) && !defined( DRI_BUILD )
- struct cmdTransportInfo*
- gcFifo = &gc->cmdTransportInfo;
-
diff --git a/graphics/glide3/files/patch-h3-minihwc-linhwc_c_dri b/graphics/glide3/files/patch-h3-minihwc-linhwc_c_dri
deleted file mode 100644
index 5d0447bfdf6a..000000000000
--- a/graphics/glide3/files/patch-h3-minihwc-linhwc_c_dri
+++ /dev/null
@@ -1,10 +0,0 @@
---- h3/minihwc/linhwc.c.dri.orig Tue Jan 18 21:29:49 2005
-+++ h3/minihwc/linhwc.c.dri Tue Jan 18 21:30:23 2005
-@@ -91,6 +91,7 @@
- static FxU32 calcBufferSize(FxU32 xres, FxU32 yres, FxBool tiled);
- static FxU32 calcBufferSizeInTiles(FxU32 xres, FxU32 yres);
- static FxU32 calcBufferHeightInTiles(FxU32 yres);
-+static FxU32 hwcBufferLfbAddr(const hwcBoardInfo *bInfo, FxU32 physAddress);
-
- typedef struct envitem_t {
- char *env;
diff --git a/graphics/glide3/files/patch-h3-minihwc-makefile b/graphics/glide3/files/patch-h3-minihwc-makefile
deleted file mode 100644
index 4d04b2e64d4c..000000000000
--- a/graphics/glide3/files/patch-h3-minihwc-makefile
+++ /dev/null
@@ -1,12 +0,0 @@
-diff -ru ../Glide3.orig/h3/minihwc/makefile.autoconf.am ./h3/minihwc/makefile.autoconf.am
---- ../Glide3.orig/h3/minihwc/makefile.autoconf.am Wed Jul 26 19:39:18 2000
-+++ ./h3/minihwc/makefile.autoconf.am Sun Jan 13 16:19:03 2002
-@@ -23,6 +23,8 @@
- #
- # First, the variable defs.
- #
-+LCFLAGS = -I@x_includes@
-+
- if GLIDE_DEBUG
- GLIDE_DEBUG_VDEFS = -DGDBG_INFO_ON
- endif
diff --git a/graphics/glide3/files/patch-h3-src-makefile b/graphics/glide3/files/patch-h3-src-makefile
deleted file mode 100644
index 8b81435dd08e..000000000000
--- a/graphics/glide3/files/patch-h3-src-makefile
+++ /dev/null
@@ -1,66 +0,0 @@
---- h3/glide3/src/makefile.autoconf.am.orig 2000-10-27 06:20:00.000000000 -0500
-+++ h3/glide3/src/makefile.autoconf.am 2011-03-06 14:46:41.000000000 -0600
-@@ -103,3 +103,3 @@
- if GL_AMD3D
--GL_AMD3D_SRC = xtexdl_3dnow.S xdraw2_3dnow.S xdraw3_3dnow.S
-+GL_AMD3D_SRC = xtexdl_3dnow.S xdraw2_3dnow.S xdraw3_3dnow.S xdraw2_def.S xdraw3_def.S
- endif
-@@ -140,8 +140,8 @@
- #
--PREPROCESSOR=/lib/cpp -$$ -I.
--xdraw2.o : xdraw2.S xdraw2.inc.S fxgasm.h
-- $(CC) $(AFLAGS) -c -o $@ xdraw2.S
-+PREPROCESSOR=$(CPP) -$$ -I.
-+xdraw2.lo : xdraw2.S xdraw2.inc.S fxgasm.h
-+ libtool --mode=compile $(CC) $(AFLAGS) -c -o $@ xdraw2.S
-
--xdraw3.o : xdraw3.S fxgasm.h
-- $(CC) $(AFLAGS) -c -o $@ xdraw3.S
-+xdraw3.lo : xdraw3.S fxgasm.h
-+ libtool --mode=compile $(CC) $(AFLAGS) -c -o $@ xdraw3.S
-
-@@ -151,17 +151,16 @@
- if GL_AMD3D
--else
--xdraw2_def.o: xdraw2.S xdraw2.inc.S fxgasm.h
-- $(CC) $(AFLAGS) -c -o $@ xdraw2.S
-+xdraw2_def.lo: xdraw2.S xdraw2.inc.S fxgasm.h
-+ libtool --mode=compile $(CC) $(AFLAGS) -c -o $@ xdraw2.S
-
--xdraw2_3dnow.o: xdraw2.S xdraw2.inc.S fxgasm.h
-- $(CC) $(AFLAGS) -DGL_AMD3D -DUSE_PACKET_FIFO=1 -c -o $@ xdraw2.S
-+xdraw2_3dnow.lo: xdraw2.S xdraw2.inc.S fxgasm.h
-+ libtool --mode=compile $(CC) $(AFLAGS) -DGL_AMD3D -DUSE_PACKET_FIFO=1 -c -o $@ xdraw2.S
-
--xdraw3_def.o: xdraw3.S fxgasm.h
-- $(CC) $(AFLAGS) -c -o $@ xdraw3.S
-+xdraw3_def.lo: xdraw3.S fxgasm.h
-+ libtool --mode=compile $(CC) $(AFLAGS) -c -o $@ xdraw3.S
-
--xdraw3_3dnow.o: xdraw3.S fxgasm.h
-- $(CC) $(AFLAGS) -DGL_AMD3D -DUSE_PACKET_FIFO=1 -c -o $@ xdraw3.S
-+xdraw3_3dnow.lo: xdraw3.S fxgasm.h
-+ libtool --mode=compile $(CC) $(AFLAGS) -DGL_AMD3D -DUSE_PACKET_FIFO=1 -c -o $@ xdraw3.S
-
--xtexdl_3dnow.o: xtexdl.S fxgasm.h
-- $(CC) $(AFLAGS) -DGL_AMD3D -DUSE_PACKET_FIFO=1 -c -o $@ xtexdl.S
-+xtexdl_3dnow.lo: xtexdl.S fxgasm.h
-+ libtool --mode=compile $(CC) $(AFLAGS) -DGL_AMD3D -DUSE_PACKET_FIFO=1 -c -o $@ xtexdl.S
-
-@@ -172,5 +171,5 @@
- else
--CPUSOURCES = cpudtect.S
-+CPUSOURCES = cpudtect_asm.S
-
--cpudtect.o cpudtect.lo: cpudtect.S
-+cpudtect_asm.o cpudtect_asm.lo: cpudtect.S
- $(PREPROCESSOR) -DUSE_PACKET_FIFO=1 $< > $*.tmp.s
-@@ -214,3 +213,3 @@
- $(top_builddir)/@FX_GLIDE_HW@/minihwc/libminihwc.la
--LINK_LIBS = -L/usr/X11R6/lib -lX11 -lXext -lXxf86dga -lXxf86vm
-+LINK_LIBS = -L$(LOCALBASE)/lib -lX11 -lXext -lXxf86dga -lXxf86vm
-
-@@ -224,2 +223,3 @@
- fxgasm_SOURCES = fxgasm.c gthread.c
-+fxgasm_CFLAGS = $(AM_CFLAGS)
-
diff --git a/graphics/glide3/files/patch-h3-xdraw_inc_S b/graphics/glide3/files/patch-h3-xdraw_inc_S
deleted file mode 100644
index d07de188ee00..000000000000
--- a/graphics/glide3/files/patch-h3-xdraw_inc_S
+++ /dev/null
@@ -1,12 +0,0 @@
-diff -ru ../Glide3.orig/h3/glide3/src/xdraw2.inc.S ./h3/glide3/src/xdraw2.inc.S
---- ../Glide3.orig/h3/glide3/src/xdraw2.inc.S Tue Nov 14 06:11:19 2000
-+++ ./h3/glide3/src/xdraw2.inc.S Sun Jan 13 14:57:41 2002
-@@ -249,7 +249,7 @@
- push %edi /* save caller's register variable */
- push %esi /* save caller's register variable */
-
-- mov %edx , gc /* gc in edx from caller */
-+ mov _gc-8(%esp) , gc /* gc on stack (NOT!!! in edx) from caller */
- push %ebx /* save caller's register variable */
-
- push %ebp /* save frame pointer */
diff --git a/graphics/glide3/files/patch-h5-distate.c b/graphics/glide3/files/patch-h5-distate.c
deleted file mode 100644
index 33306ffaa37e..000000000000
--- a/graphics/glide3/files/patch-h5-distate.c
+++ /dev/null
@@ -1,43 +0,0 @@
---- h5/glide3/src/distate.c.orig Sun Sep 28 22:36:52 2003
-+++ h5/glide3/src/distate.c Sun Sep 28 22:37:05 2003
-@@ -350,31 +350,31 @@
- */
-
- #define STOREARG_TMU(function, tmu, arg) \
--gc->state.stateArgs.##function##Args.arg[tmu] = arg
-+gc->state.stateArgs.function##Args.arg[tmu] = arg
-
- #define LOADARG_TMU(function, tmu, arg) \
--gc->state.stateArgs.##function##Args.arg[tmu]
-+gc->state.stateArgs.function##Args.arg[tmu]
-
- #define STOREARG(function, arg) \
--gc->state.stateArgs.##function##Args.arg = arg
-+gc->state.stateArgs.function##Args.arg = arg
-
- #define LOADARG(function, arg) \
--gc->state.stateArgs.##function##Args.arg
-+gc->state.stateArgs.function##Args.arg
-
- #define NOTVALID(regset) \
--(gc->state.invalid & ##regset##BIT)
-+(gc->state.invalid & regset##BIT)
-
- #define NOTVALID_TMU(tmu, regset) \
--(gc->state.tmuInvalid[tmu] & ##regset##BIT)
-+(gc->state.tmuInvalid[tmu] & regset##BIT)
-
- #define SETVALID(regset) \
--(gc->state.invalid &= ~(##regset##BIT))
-+(gc->state.invalid &= ~(regset##BIT))
-
- #define ENABLEMODE(mode) \
--gc->state.grEnableArgs.##mode## = GR_MODE_ENABLE;
-+gc->state.grEnableArgs.mode = GR_MODE_ENABLE;
-
- #define DISABLEMODE(mode) \
--gc->state.grEnableArgs.##mode## = GR_MODE_DISABLE;
-+gc->state.grEnableArgs.mode = GR_MODE_DISABLE;
-
- /*-------------------------------------------------------------------
- Function: grAlphaBlendFunction
diff --git a/graphics/glide3/files/patch-h5-fxglide_h b/graphics/glide3/files/patch-h5-fxglide_h
deleted file mode 100644
index 7b6bb58898a1..000000000000
--- a/graphics/glide3/files/patch-h5-fxglide_h
+++ /dev/null
@@ -1,40 +0,0 @@
---- h5/glide3/src/fxglide.h.orig Thu May 31 12:05:52 2001
-+++ h5/glide3/src/fxglide.h Sun Sep 28 22:35:50 2003
-@@ -2125,7 +2125,7 @@
-
- #ifdef GLIDE3
- #define GR_STATE_ENTRY(name, type, args) \
-- type _##name## args
-+ type _##name args
- #else
- #define GR_STATE_ENTRY(name, type, args) \
- GR_ENTRY(name, type, args)
-@@ -2636,13 +2636,13 @@
- #define CUR_TRI_PROC(__checkValidP, __cullP) \
- (*gc->archDispatchProcs.coorModeTriVector)[__checkValidP][__cullP]
- #define INVALIDATE(regset) {\
-- gc->state.invalid |= ##regset##BIT; \
-+ gc->state.invalid |= regset##BIT; \
- gc->triSetupProc = CUR_TRI_PROC(FXTRUE, (gc->state.cull_mode != GR_CULL_DISABLE)); \
- }
-
- #define INVALIDATE_TMU(tmu, regset) {\
- INVALIDATE(tmuConfig); \
-- gc->state.tmuInvalid[tmu] |= ##regset##BIT; \
-+ gc->state.tmuInvalid[tmu] |= regset##BIT; \
- }
-
- void
-@@ -2992,7 +2992,11 @@
- #if defined(GLIDE_SANITY_ASSERT)
- #define GR_ASSERT(exp) ((void)((!(exp)) ? (_grAssert(#exp, __FILE__, __LINE__),0) : 0xFFFFFFFF))
- #else
--#define GR_ASSERT(exp) ((void)(0 && ((FxU32)(exp))))
-+# ifdef __GNUC__
-+# define GR_ASSERT(exp) ((void) 0)
-+# else
-+# define GR_ASSERT(exp) ((void)(0 && ((FxU32)(exp))))
-+# endif
- #endif
-
- #define INTERNAL_CHECK(__name, __cond, __msg, __fatalP) \
diff --git a/graphics/glide3/files/patch-h5-gdebug_c b/graphics/glide3/files/patch-h5-gdebug_c
deleted file mode 100644
index fb60a9bd4f7e..000000000000
--- a/graphics/glide3/files/patch-h5-gdebug_c
+++ /dev/null
@@ -1,21 +0,0 @@
-diff -ru ../Glide3.orig/h5/minihwc/gdebug.c ./h5/minihwc/gdebug.c
---- ../Glide3.orig/h5/minihwc/gdebug.c Sat Nov 18 08:00:35 2000
-+++ ./h5/minihwc/gdebug.c Sun Jan 13 17:36:02 2002
-@@ -86,7 +86,7 @@
- * and one for the dynamic dfn. For linux they are different.
- * For Windows they are the same.
- */
--#ifdef __linux__
-+#if defined(__linux__) || defined(__FreeBSD__)
- #define INITIAL_STATIC_GDBG_MSGFILE NULL
- #define INITIAL_GDBG_MSGFILE stderr
- #else
-@@ -189,7 +189,7 @@
- SIOUXSettings.asktosaveonclose = false;
- #endif
-
--#ifdef __linux__
-+#if defined(__linux__) || defined(__FreeBSD__)
- gdbg_msgfile = INITIAL_GDBG_MSGFILE;
- #endif
-
diff --git a/graphics/glide3/files/patch-h5-gdebug_h b/graphics/glide3/files/patch-h5-gdebug_h
deleted file mode 100644
index db7e55f6c35d..000000000000
--- a/graphics/glide3/files/patch-h5-gdebug_h
+++ /dev/null
@@ -1,25 +0,0 @@
-diff -ru ../Glide3.orig/h5/incsrc/gdebug.h ./h5/incsrc/gdebug.h
---- ../Glide3.orig/h5/incsrc/gdebug.h Sat Nov 18 08:00:33 2000
-+++ ./h5/incsrc/gdebug.h Sun Jan 13 16:20:49 2002
-@@ -67,12 +67,21 @@
- #pragma disable_message (111, 201, 302)
- #endif /* defined(__WATCOMC__) || defined(__WATCOM_CPLUSPLUS__) */
-
-+#ifdef __GNUC__
-+# define GDBG_INFO(x...)
-+# define GDBG_INFO_MORE(x...)
-+# define GDBG_PRINTF(x...)
-+
-+# define GDBG_ERROR_SET_CALLBACK(x...)
-+# define GDBG_ERROR_CLEAR_CALLBACK(x...)
-+#else
- #define GDBG_INFO 0 && (unsigned long)
- #define GDBG_INFO_MORE 0 && (unsigned long)
- #define GDBG_PRINTF 0 && (unsigned long)
-
- #define GDBG_ERROR_SET_CALLBACK 0 && (unsigned long)
- #define GDBG_ERROR_CLEAR_CALLBACK 0 && (unsigned long)
-+#endif
-
- #define GDBG_GET_DEBUGLEVEL(x) 0
- #define GDBG_SET_DEBUGLEVEL(a,b)
diff --git a/graphics/glide3/files/patch-h5-glfb_c b/graphics/glide3/files/patch-h5-glfb_c
deleted file mode 100644
index b39d81d56ed2..000000000000
--- a/graphics/glide3/files/patch-h5-glfb_c
+++ /dev/null
@@ -1,11 +0,0 @@
---- h5/glide3/src/glfb.c.orig Fri May 10 17:43:21 2002
-+++ h5/glide3/src/glfb.c Fri May 10 17:43:36 2002
-@@ -700,7 +700,7 @@
- }
- #endif
- else {
--#ifdef defined(DRI_BUILD)
-+#if defined(DRI_BUILD)
- /*
- * For Linux, we just return the correct address and
- * stride.
diff --git a/graphics/glide3/files/patch-h5-glide3-src-glfb_c b/graphics/glide3/files/patch-h5-glide3-src-glfb_c
deleted file mode 100644
index 9a523dd7e184..000000000000
--- a/graphics/glide3/files/patch-h5-glide3-src-glfb_c
+++ /dev/null
@@ -1,73 +0,0 @@
---- h5/glide3/src/glfb.c.orig Thu Jan 16 01:23:50 2003
-+++ h5/glide3/src/glfb.c Sun Jul 1 03:06:16 2007
-@@ -1308,17 +1308,28 @@
- FXFALSE,
- &info))
- {
-- FxU32 *src,*dst;
-+ union {
-+ FxU32 *src;
-+ FxU16 *src16;
-+ FxU8 *src8;
-+ } s;
-+
-+ union {
-+ FxU32 *dst;
-+ FxU16 *dst16;
-+ FxU8 *dst8;
-+ } d;
-+
- FxI32 length,scanline;
- FxU32 src_adjust,dst_adjust,tmp;
-
-- src=(FxU32 *) (((char*)info.lfbPtr)+
-+ s.src=(FxU32 *) (((char*)info.lfbPtr)+
- (src_y*info.strideInBytes) + (src_x * bpp));
-- dst=dst_data;
-+ d.dst=dst_data;
- scanline=src_height;
-
- /* set length - alignment fix*/
-- tmp=(((AnyPtr)src)&2);
-+ tmp=(((AnyPtr)s.src)&2);
- length=src_width * bpp - tmp;
- src_adjust=info.strideInBytes - tmp;
- dst_adjust=dst_stride - tmp;
-@@ -1329,8 +1340,8 @@
- while(src_height--)
- {
- /* adjust starting alignment */
-- if (((AnyPtr)src)&3)
-- *((FxU16 *)dst)++=*((FxU16 *)src)++;
-+ if (((AnyPtr)s.src)&3)
-+ *d.dst16++ = *s.src16++;
-
- /* read in dwords of pixels */
- if(length)
-@@ -1341,16 +1352,21 @@
- /* copies aligned dwords */
- do
- {
-- *((FxU32 *)(((AnyPtr)dst) + byte_index))=*((FxU32 *)(((AnyPtr)src) + byte_index));
-+ FxU32 *dst = (FxU32 *)(((AnyPtr)dst) + byte_index);
-+ FxU32 *src = (FxU32 *)(((AnyPtr)src) + byte_index);
-+ *dst = *src;
- }while((byte_index+=4)<aligned);
-
- /* handle backend misalignment */
-- if (byte_index!=(FxU32)length)
-- *((FxU16 *)(((AnyPtr)dst) + byte_index))=*((FxU16 *)(((AnyPtr)src) + byte_index));
-+ if (byte_index!=(FxU32)length) {
-+ FxU16 *dst = (FxU16 *)(((AnyPtr)dst) + byte_index);
-+ FxU16 *src = (FxU16 *)(((AnyPtr)src) + byte_index);
-+ *dst = *src;
-+ }
- }
- /* adjust for next line */
-- ((FxU8 *)src)+=src_adjust;
-- ((FxU8 *)dst)+=dst_adjust;
-+ s.src8+=src_adjust;
-+ d.dst8+=dst_adjust;
- }
- rv=FXTRUE;
- /* unlock buffer */
diff --git a/graphics/glide3/files/patch-h5-glide_h b/graphics/glide3/files/patch-h5-glide_h
deleted file mode 100644
index 0cb23c16bdc5..000000000000
--- a/graphics/glide3/files/patch-h5-glide_h
+++ /dev/null
@@ -1,40 +0,0 @@
-diff -ru ../Glide3.orig/h5/glide3/src/glide.h ./h5/glide3/src/glide.h
---- ../Glide3.orig/h5/glide3/src/glide.h Thu May 31 12:05:52 2001
-+++ ./h5/glide3/src/glide.h Sun Jan 13 14:44:34 2002
-@@ -53,9 +53,7 @@
- typedef FxU32 GrColor_t;
- typedef FxU8 GrAlpha_t;
- typedef FxU32 GrMipMapId_t;
--#ifdef DRI_BUILD
- typedef FxU32 GrStipplePattern_t;
--#endif /* DRI_BUILD */
- typedef FxU8 GrFog_t;
- typedef AnyPtr GrContext_t;
- typedef int (FX_CALL *GrProc)();
-@@ -244,12 +242,10 @@
- #define GR_DITHER_2x2 0x1
- #define GR_DITHER_4x4 0x2
-
--#ifdef DRI_BUILD
- typedef FxI32 GrStippleMode_t;
- #define GR_STIPPLE_DISABLE 0x0
- #define GR_STIPPLE_PATTERN 0x1
- #define GR_STIPPLE_ROTATE 0x2
--#endif /* DRI_BUILD */
-
- typedef FxI32 GrFogMode_t;
- #define GR_FOG_DISABLE 0x0
-@@ -745,13 +741,11 @@
- FX_ENTRY void FX_CALL
- grDepthRange( FxFloat n, FxFloat f );
-
--#ifdef DRI_BUILD
- FX_ENTRY void FX_CALL
- grStippleMode( GrStippleMode_t mode );
-
- FX_ENTRY void FX_CALL
- grStipplePattern( GrStipplePattern_t mode );
--#endif /* DRI_BUILD */
-
- FX_ENTRY void FX_CALL
- grViewport( FxI32 x, FxI32 y, FxI32 width, FxI32 height );
diff --git a/graphics/glide3/files/patch-h5-minihwc-makefile b/graphics/glide3/files/patch-h5-minihwc-makefile
deleted file mode 100644
index b4dfa3501058..000000000000
--- a/graphics/glide3/files/patch-h5-minihwc-makefile
+++ /dev/null
@@ -1,12 +0,0 @@
-diff -ru ../Glide3.orig/h5/minihwc/makefile.autoconf.am ./h5/minihwc/makefile.autoconf.am
---- ../Glide3.orig/h5/minihwc/makefile.autoconf.am Wed Jul 26 19:39:18 2000
-+++ ./h5/minihwc/makefile.autoconf.am Sun Jan 13 16:40:05 2002
-@@ -23,6 +23,8 @@
- #
- # First, the variable defs.
- #
-+LCFLAGS = -I@x_includes@
-+
- if GLIDE_DEBUG
- GLIDE_DEBUG_VDEFS=-DGDBG_INFO_ON
- endif
diff --git a/graphics/glide3/files/patch-h5-src-makefile b/graphics/glide3/files/patch-h5-src-makefile
deleted file mode 100644
index 48771391f7ee..000000000000
--- a/graphics/glide3/files/patch-h5-src-makefile
+++ /dev/null
@@ -1,62 +0,0 @@
---- h5/glide3/src/makefile.autoconf.am.orig 2000-11-18 10:00:26.000000000 -0600
-+++ h5/glide3/src/makefile.autoconf.am 2011-03-06 14:49:35.000000000 -0600
-@@ -154,7 +154,6 @@
- #
--PREPROCESSOR=/lib/cpp -$$ -I.
-+PREPROCESSOR=$(CPP) -$$ -I.
- xdraw2_def.o xdraw2_def.lo: xdraw2.s xdraw2.inc.s fxgasm.h
- $(PREPROCESSOR) $< > $*.tmp.s
-- $(CC) $(AFLAGS) -c -o $*.o $*.tmp.s
-- $(CP) $*.o $*.lo
-+ libtool --mode=compile $(CC) $(AFLAGS) -c -o $*.o $*.tmp.s
- $(RM) -f $*.tmp.s
-@@ -163,4 +162,3 @@
- $(PREPROCESSOR) -DGL_AMD3D -DUSE_PACKET_FIFO=1 $< > $*.tmp.s
-- $(CC) $(AFLAGS) -c -o $*.o $*.tmp.s
-- $(CP) $*.o $*.lo
-+ libtool --mode=compile $(CC) $(AFLAGS) -c -o $*.o $*.tmp.s
- $(RM) -f $*.tmp.s
-@@ -169,4 +167,3 @@
- $(PREPROCESSOR) $< > $*.tmp.s
-- $(CC) $(AFLAGS) -c -o $*.o $*.tmp.s
-- $(CP) $*.o $*.lo
-+ libtool --mode=compile $(CC) $(AFLAGS) -c -o $*.o $*.tmp.s
- $(RM) -f $*.tmp.s
-@@ -175,4 +172,3 @@
- $(PREPROCESSOR) -DGL_AMD3D -DUSE_PACKET_FIFO=1 $< > $*.tmp.s
-- $(CC) $(AFLAGS) -c -o $*.o $*.tmp.s
-- $(CP) $*.o $*.lo
-+ libtool --mode=compile $(CC) $(AFLAGS) -c -o $*.o $*.tmp.s
- $(RM) -f $*.tmp.s
-@@ -181,4 +177,3 @@
- $(PREPROCESSOR) -DGL_AMD3D -DUSE_PACKET_FIFO=1 $< > $*.tmp.s
-- $(CC) $(AFLAGS) -c -o $*.o $*.tmp.s
-- $(CP) $*.o $*.lo
-+ libtool --mode=compile $(CC) $(AFLAGS) -c -o $*.o $*.tmp.s
- $(RM) -f $*.tmp.s
-@@ -188,8 +183,7 @@
- else
--CPUSOURCES = cpudtect.s
-+CPUSOURCES = cpudtect_asm.s
-
--cpudtect.o cpudtect.lo: cpudtect.s
-+cpudtect_asm.o cpudtect_asm.lo: cpudtect.s
- $(PREPROCESSOR) -DUSE_PACKET_FIFO=1 $< > $*.tmp.s
-- $(CC) $(AFLAGS) -c -o $*.o $*.tmp.s
-- $(CP) $*.o $*.lo
-+ libtool --mode=compile $(CC) $(AFLAGS) -c -o $*.o $*.tmp.s
- $(RM) -f $*.tmp.s
-@@ -204,3 +198,3 @@
- if GL_AMD3D
--FX_GLIDE_CTRISETUP_SRC = xdraw2_3dnow.s xdraw3_3dnow.s
-+FX_GLIDE_CTRISETUP_SRC = xdraw2_3dnow.s xdraw3_3dnow.s xtexdl_3dnow.s xdraw2_def.s xdraw3_def.s
- else
-@@ -216,3 +210,3 @@
- $(top_builddir)/@FX_GLIDE_HW@/minihwc/libminihwc.la
--LINK_LIBS = -L/usr/X11R6/lib -lX11 -lXext -lXxf86dga -lXxf86vm -lm
-+LINK_LIBS = -L$(LOCALBASE)/lib -lX11 -lXext -lXxf86dga -lXxf86vm -lm
-
-@@ -231,2 +225,3 @@
- fxgasm_DEPENDENCIES = gthread.lo
-+fxgasm_CFLAGS = $(AM_CFLAGS)
-
diff --git a/graphics/glide3/files/patch-h5-xdraw2_inc_s b/graphics/glide3/files/patch-h5-xdraw2_inc_s
deleted file mode 100644
index 3589ef4a6bdb..000000000000
--- a/graphics/glide3/files/patch-h5-xdraw2_inc_s
+++ /dev/null
@@ -1,12 +0,0 @@
-diff -ru ../Glide3.orig/h5/glide3/src/xdraw2.inc.s ./h5/glide3/src/xdraw2.inc.s
---- ../Glide3.orig/h5/glide3/src/xdraw2.inc.s Sat Nov 18 08:00:27 2000
-+++ ./h5/glide3/src/xdraw2.inc.s Sun Jan 13 15:00:14 2002
-@@ -288,7 +288,7 @@
- push %edi /* save caller's register variable */
- push %esi /* save caller's register variable */
-
-- mov %edx , gc /* gc in edx from caller */
-+ mov _gc-8(%esp) , gc /* gc on stack (NOT!!! in edx) from caller */
- push %ebx /* save caller's register variable */
-
- push %ebp /* save frame pointer */
diff --git a/graphics/glide3/files/patch-make-3dfx_linux_mak b/graphics/glide3/files/patch-make-3dfx_linux_mak
deleted file mode 100644
index 4370982bf09b..000000000000
--- a/graphics/glide3/files/patch-make-3dfx_linux_mak
+++ /dev/null
@@ -1,32 +0,0 @@
-diff -ru ../Glide3.orig/swlibs/include/make/3dfx.linux.mak ./swlibs/include/make/3dfx.linux.mak
---- ../Glide3.orig/swlibs/include/make/3dfx.linux.mak Wed Jul 12 14:35:28 2000
-+++ ./swlibs/include/make/3dfx.linux.mak Sun Jan 13 16:14:11 2002
-@@ -82,15 +82,11 @@
- GCPTS := $(GCOPTS) -fPIC -DPIC
- endif
-
--#
--# BIG_OPT Indicates O3(?) or better is being used. It changes the
--# assembly language in grDrawTriangle. Larger optimization removes
--# an extra push in the calling sequence.
--#
--CNODEBUG = -O6 -m486 -fomit-frame-pointer -funroll-loops \
-- -fexpensive-optimizations -ffast-math -DBIG_OPT
-+# Set CNODEBUG and CDEBUG to nothing to respect CFLAGS
-+
-+CNODEBUG =
-+CDEBUG =
-
--CDEBUG = -g -O
- GLDOPTS = -L$(BUILD_ROOT_SWLIBS)/lib -L/usr/lib
- # Profiling
- #CDEBUG = -pg -g -O
-@@ -115,7 +111,7 @@
- LCFLAGS = $(LCINCS) $(LCDEFS) $(LCOPTS)
- VCFLAGS = $(VCINCS) $(VCDEFS) $(VCOPTS)
-
--CFLAGS = $(CDEBUG) $(GCFLAGS) $(LCFLAGS) $(VCFLAGS)
-+CFLAGS += $(CDEBUG) $(GCFLAGS) $(LCFLAGS) $(VCFLAGS)
-
- #--------------------------------------------------------------------------
- # build up global linker flags (LDFLAGS) and libraries (LDLIBS)
diff --git a/graphics/glide3/files/patch-make-3dfx_mak b/graphics/glide3/files/patch-make-3dfx_mak
deleted file mode 100644
index 02d615f19bd9..000000000000
--- a/graphics/glide3/files/patch-make-3dfx_mak
+++ /dev/null
@@ -1,34 +0,0 @@
---- swlibs/include/make/3dfx.mak.orig Sun Nov 19 00:00:37 2000
-+++ swlibs/include/make/3dfx.mak Tue Dec 5 05:44:13 2006
-@@ -131,17 +131,13 @@
- endif
-
- ifeq "$(OS)" "FreeBSD"
--GCINCS = -I. -I$(BUILD_ROOT_SWLIBS)/include -I$(BUILD_ROOT_HW)/include -I/usr/X11R6/include
-+GCINCS = -I. -I$(BUILD_ROOT_SWLIBS)/include -I$(BUILD_ROOT_HW)/include -I$(LOCALBASE)/include
- GCOPTS = -Wall
--#
--# BIG_OPT Indicates O3(?) or better is being used. It changes the
--# assembly language in grDrawTriangle. Larger optimization removes
--# an extra push in the calling sequence.
--#
--CNODEBUG = -O6 -m486 -fomit-frame-pointer -funroll-loops \
-- -fexpensive-optimizations -ffast-math -DBIG_OPT
-
--CDEBUG = -g -O
-+# Set CNODEBUG and CDEBUG to nothing to respect CFLAGS
-+
-+CNODEBUG =
-+CDEBUG =
- # Profiling
- #CDEBUG = -pg -g -O
- #GCDEFS =
-@@ -166,7 +162,7 @@
- LCFLAGS = $(LCINCS) $(LCDEFS) $(LCOPTS)
- VCFLAGS = $(VCINCS) $(VCDEFS) $(VCOPTS)
-
--CFLAGS = $(CDEBUG) $(GCFLAGS) $(LCFLAGS) $(VCFLAGS)
-+CFLAGS += $(CDEBUG) $(GCFLAGS) $(LCFLAGS) $(VCFLAGS)
-
- #--------------------------------------------------------------------------
- # build up global linker flags (LDFLAGS) and libraries (LDLIBS)
diff --git a/graphics/glide3/files/patch-make-makefile b/graphics/glide3/files/patch-make-makefile
deleted file mode 100644
index 26a9492f710f..000000000000
--- a/graphics/glide3/files/patch-make-makefile
+++ /dev/null
@@ -1,33 +0,0 @@
-diff -ru ../Glide3.orig/swlibs/include/make/makefile.autoconf.bottom ./swlibs/include/make/makefile.autoconf.bottom
---- ../Glide3.orig/swlibs/include/make/makefile.autoconf.bottom Thu May 31 12:05:53 2001
-+++ ./swlibs/include/make/makefile.autoconf.bottom Sun Jan 13 16:13:13 2002
-@@ -32,7 +32,7 @@
- CPPFLAGS = $(GCPPFLAGS) $(LCPPFLAGS) $(VCPPFLAGS)
- DEFS = $(GDEFS) $(LDEFS) $(VDEFS)
- INCLUDES = $(GINCLUDES) $(LINCLUDES) $(VINCLUDES)
--CFLAGS = $(GCFLAGS) $(LCFLAGS) $(VCFLAGS)
-+CFLAGS += $(GCFLAGS) $(LCFLAGS) $(VCFLAGS)
-
- AFLAGS = $(GAFLAGS) $(LAFLAGS) $(VAFLAGS)
- ADEFS = $(GADEFS) $(LADEFS) $(VADEFS)
-@@ -48,7 +48,7 @@
- # Global CFLAGS
- #
- ifeq ("@GLIDE_DEBUG@","true")
--GLIDE_DEBUG_GCFLAGS = -g -O
-+GLIDE_DEBUG_GCFLAGS = -g
- GLIDE_DEBUG_GDEFS = -DGDBG_INFO_ON -DGLIDE_DEBUG
- else
- ifeq ("@FX_GLIDE_BUILD_ARCHITECTURE@","alpha")
-@@ -61,9 +61,8 @@
- GLIDE_DEBUG_GDEFS = -fomit-frame-pointer \
- -fexpensive-optimizations -ffast-math -DBIG_OPT
- else
--GLIDE_DEBUG_GCFLAGS = -O2
--GLIDE_DEBUG_GDEFS = -fomit-frame-pointer -funroll-loops \
-- -fexpensive-optimizations -ffast-math -DBIG_OPT
-+GLIDE_DEBUG_GCFLAGS =
-+GLIDE_DEBUG_GDEFS =
- endif
- endif
- endif
diff --git a/graphics/glide3/files/patch-swlibs-fxmisc-fxos_c b/graphics/glide3/files/patch-swlibs-fxmisc-fxos_c
deleted file mode 100644
index a9808cc4ad8a..000000000000
--- a/graphics/glide3/files/patch-swlibs-fxmisc-fxos_c
+++ /dev/null
@@ -1,55 +0,0 @@
---- swlibs/fxmisc/fxos.c.orig Wed Jan 15 10:01:58 2003
-+++ swlibs/fxmisc/fxos.c Sun Jul 1 01:56:10 2007
-@@ -43,13 +43,26 @@
- #include <fxos.h>
- #endif
- #if !macintosh
--/* return current time in seconds (floating point) */
--float fxTime(void)
--{
- #if defined ( __sparc__ ) || defined ( __DJGPP__ )
- /* times returns 0 in BSD Unix, so we use ftime instead */
- # include <sys/types.h>
- # include <sys/timeb.h>
-+#elif defined(__FreeBSD__)
-+# include <sys/time.h>
-+#elif defined ( WIN32 ) || ( __DOS__ )
-+# include <time.h>
-+# define times(a) clock()
-+# define HZ CLOCKS_PER_SEC
-+#else
-+# include <sys/types.h>
-+# include <sys/times.h>
-+# include <sys/param.h>
-+#endif
-+
-+/* return current time in seconds (floating point) */
-+float fxTime(void)
-+{
-+#if defined ( __sparc__ ) || defined ( __DJGPP__ )
- struct timeb tb;
- static time_t once; // saves first time value
-
-@@ -59,22 +72,12 @@
- return (tb.time - once) + tb.millitm * .001;
-
- #elif defined(__FreeBSD__)
--#include <sys/time.h>
- struct timeval t;
- struct timezone tz;
- gettimeofday(&t, &tz);
- return ((float)t.tv_sec + ((float)t.tv_usec)/1000000.0);
- #else
--#if defined ( WIN32 ) || ( __DOS__ )
--# include <time.h>
--# define times(a) clock()
--# define HZ CLOCKS_PER_SEC
--#else
--# include <sys/types.h>
--# include <sys/times.h>
--# include <sys/param.h>
- struct tms foo;
--#endif
- return times(&foo)/(float)HZ;
- #endif
- }