aboutsummaryrefslogtreecommitdiff
path: root/graphics/libGL/files
diff options
context:
space:
mode:
authorMark Linimon <linimon@FreeBSD.org>2012-07-30 04:36:31 +0000
committerMark Linimon <linimon@FreeBSD.org>2012-07-30 04:36:31 +0000
commit3a764317c4f86cd87905b4f92436d2a1028453d1 (patch)
treee8f640ad2bf216ca5fa2c68413b7ce89f78d578e /graphics/libGL/files
parent36624543ed157e8a0121e451d1fb5651b7d93af1 (diff)
downloadports-3a764317c4f86cd87905b4f92436d2a1028453d1.tar.gz
ports-3a764317c4f86cd87905b4f92436d2a1028453d1.zip
Notes
Diffstat (limited to 'graphics/libGL/files')
-rw-r--r--graphics/libGL/files/extra-configure42
-rw-r--r--graphics/libGL/files/extra-configure-old43
-rw-r--r--graphics/libGL/files/extra-mach64_context.h-old20
-rw-r--r--graphics/libGL/files/extra-src__gallium__include__pipe__p_config.h25
-rw-r--r--graphics/libGL/files/extra-src__mesa__drivers__dri__radeon__radeon_span.c15
5 files changed, 145 insertions, 0 deletions
diff --git a/graphics/libGL/files/extra-configure b/graphics/libGL/files/extra-configure
new file mode 100644
index 000000000000..fc1a68f41695
--- /dev/null
+++ b/graphics/libGL/files/extra-configure
@@ -0,0 +1,42 @@
+--- configure.orig 2011-11-17 19:46:34.000000000 +0000
++++ configure 2012-06-28 12:53:09.000000000 +0000
+@@ -7817,10 +7817,35 @@
+ DEFINES="$DEFINES -DGLX_DIRECT_RENDERING"
+ fi
+
+- if test "x$DRI_DIRS" = "xyes"; then
+- DRI_DIRS="i810 i915 i965 mach64 mga nouveau r128 r200 r300 r600 \
+- radeon tdfx unichrome savage sis swrast"
+- fi
++ case "$host_cpu" in
++ x86_64)
++ # i810 is missing because there is no x86-64 system where it
++ # could *ever* be used.
++ if test "x$DRI_DIRS" = "xyes"; then
++ DRI_DIRS="i915 i965 mach64 mga nouveau r128 r200 r300 r600 \
++ radeon savage tdfx unichrome sis swrast"
++ fi
++ ;;
++ i*86)
++ if test "x$DRI_DIRS" = "xyes"; then
++ DRI_DIRS="i810 i915 i965 mach64 mga nouveau r128 r200 r300 \
++ r600 radeon savage tdfx unichrome sis swrast"
++ fi
++ ;;
++ powerpc*)
++ # Build only the drivers for cards that exist on PowerPC.
++ # At some point MGA will be added, but not yet.
++ if test "x$DRI_DIRS" = "xyes"; then
++ DRI_DIRS="mach64 r128 r200 r300 r600 radeon tdfx swrast"
++ fi
++ ;;
++ sparc*)
++ # Build only the drivers for cards that exist on SPARC.
++ if test "x$DRI_DIRS" = "xyes"; then
++ DRI_DIRS="mach64 r128 r200 r300 r600 radeon swrast"
++ fi
++ ;;
++ esac
+ ;;
+ gnu*)
+ DEFINES="$DEFINES -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER"
diff --git a/graphics/libGL/files/extra-configure-old b/graphics/libGL/files/extra-configure-old
new file mode 100644
index 000000000000..b2e156de3b6b
--- /dev/null
+++ b/graphics/libGL/files/extra-configure-old
@@ -0,0 +1,43 @@
+--- configure.orig 2009-12-22 03:31:30.000000000 +0100
++++ configure 2012-06-27 19:49:26.000000000 +0200
+@@ -6946,12 +6946,35 @@
+ CXXFLAGS="$CXXFLAGS -ansi -pedantic"
+ fi
+
+- # ffb and gamma are missing because they have not been converted
+- # to use the new interface.
+- if test "x$DRI_DIRS" = "xyes"; then
+- DRI_DIRS="i810 i915 i965 mach64 mga r128 r200 r300 r600 radeon tdfx \
++ case "$host_cpu" in
++ x86_64)
++ # i810 is missing because there is no x86-64 system where it
++ # could *ever* be used.
++ if test "x$DRI_DIRS" = "xyes"; then
++ DRI_DIRS="i915 i965 mach64 mga r128 r200 r300 r600 radeon tdfx \
+ unichrome savage sis swrast"
+- fi
++ fi
++ ;;
++ i*86)
++ if test "x$DRI_DIRS" = "xyes"; then
++ DRI_DIRS="i810 i915 i965 mach64 mga r128 r200 r300 r600 radeon tdfx \
++ unichrome savage sis swrast"
++ fi
++ ;;
++ powerpc*)
++ # Build only the drivers for cards that exist on PowerPC.
++ # At some point MGA will be added, but not yet.
++ if test "x$DRI_DIRS" = "xyes"; then
++ DRI_DIRS="mach64 r128 r200 r300 r600 radeon tdfx swrast"
++ fi
++ ;;
++ sparc*)
++ # Build only the drivers for cards that exist on SPARC.
++ if test "x$DRI_DIRS" = "xyes"; then
++ DRI_DIRS="mach64 r128 r200 r300 r600 radeon swrast"
++ fi
++ ;;
++ esac
+ ;;
+ gnu*)
+ DEFINES="$DEFINES -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER"
diff --git a/graphics/libGL/files/extra-mach64_context.h-old b/graphics/libGL/files/extra-mach64_context.h-old
new file mode 100644
index 000000000000..9e3b38e357cd
--- /dev/null
+++ b/graphics/libGL/files/extra-mach64_context.h-old
@@ -0,0 +1,20 @@
+--- src/mesa/drivers/dri/mach64/mach64_context.h.orig 2012-06-27 19:59:32.000000000 +0200
++++ src/mesa/drivers/dri/mach64/mach64_context.h 2012-06-27 20:08:30.000000000 +0200
+@@ -294,11 +294,14 @@
+ #define LE32_OUT( x, y ) do { *(GLuint *)(x) = (y); } while (0)
+ #define LE32_OUT_FLOAT( x, y ) do { *(GLfloat *)(x) = (y); } while (0)
+ #else
+-#ifndef __OpenBSD__
+-#include <byteswap.h>
+-#else
++#if defined(__OpenBSD__)
+ #include <machine/endian.h>
+ #define bswap_32 bswap32
++#elif defined(__FreeBSD__)
++#include <sys/endian.h>
++#define bswap_32 bswap32
++#else
++#include <byteswap.h>
+ #endif
+
+ #define LE32_IN( x ) bswap_32( *(GLuint *)(x) )
diff --git a/graphics/libGL/files/extra-src__gallium__include__pipe__p_config.h b/graphics/libGL/files/extra-src__gallium__include__pipe__p_config.h
new file mode 100644
index 000000000000..41f38a9663bb
--- /dev/null
+++ b/graphics/libGL/files/extra-src__gallium__include__pipe__p_config.h
@@ -0,0 +1,25 @@
+--- src/gallium/include/pipe/p_config.h.orig 2011-10-15 02:43:58.000000000 +0200
++++ src/gallium/include/pipe/p_config.h 2012-06-28 21:27:06.000000000 +0200
+@@ -106,6 +106,13 @@
+ #endif
+ #endif
+
++#if defined(__sparc__) || defined(__sparc64__)
++#define PIPE_ARCH_SPARC
++#if defined(__sparc64__)
++#define PIPE_ARCH_SPARC_64
++#endif
++#endif
++
+
+ /*
+ * Endian detection.
+@@ -133,7 +140,7 @@
+
+ #if defined(PIPE_ARCH_X86) || defined(PIPE_ARCH_X86_64)
+ #define PIPE_ARCH_LITTLE_ENDIAN
+-#elif defined(PIPE_ARCH_PPC) || defined(PIPE_ARCH_PPC_64)
++#elif defined(PIPE_ARCH_PPC) || defined(PIPE_ARCH_PPC_64) || defined(PIPE_ARCH_SPARC) || defined(PIPE_ARCH_SPARC_64)
+ #define PIPE_ARCH_BIG_ENDIAN
+ #endif
+
diff --git a/graphics/libGL/files/extra-src__mesa__drivers__dri__radeon__radeon_span.c b/graphics/libGL/files/extra-src__mesa__drivers__dri__radeon__radeon_span.c
new file mode 100644
index 000000000000..3a186e98d644
--- /dev/null
+++ b/graphics/libGL/files/extra-src__mesa__drivers__dri__radeon__radeon_span.c
@@ -0,0 +1,15 @@
+--- src/mesa/drivers/dri/radeon/radeon_span.c.orig 2011-07-09 03:37:10.000000000 +0200
++++ src/mesa/drivers/dri/radeon/radeon_span.c 2012-06-28 21:44:07.000000000 +0200
+@@ -55,7 +55,11 @@
+ #include <byteswap.h>
+ #define CPU_TO_LE16( x ) bswap_16( x )
+ #define LE16_TO_CPU( x ) bswap_16( x )
+-#endif /* __linux__ */
++#elif defined(__FreeBSD__)
++#include <sys/endian.h>
++#define CPU_TO_LE16( x ) bswap16( x )
++#define LE16_TO_CPU( x ) bswap16( x )
++#endif
+ #else
+ #define CPU_TO_LE16( x ) ( x )
+ #define LE16_TO_CPU( x ) ( x )