diff options
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/libGL/bsd.mesalib.mk | 12 | ||||
-rw-r--r-- | graphics/libGL/files/extra-configure | 24 | ||||
-rw-r--r-- | graphics/libGL/files/extra-mach64_context.h | 21 | ||||
-rw-r--r-- | graphics/libGL/files/extra-sis_context.h | 22 | ||||
-rw-r--r-- | graphics/libGL/files/extra-src__mesa__drivers__dri__radeon__radeon_span.c | 15 | ||||
-rw-r--r-- | graphics/libGL/pkg-plist | 6 |
6 files changed, 15 insertions, 85 deletions
diff --git a/graphics/libGL/bsd.mesalib.mk b/graphics/libGL/bsd.mesalib.mk index b1e9130..62465f0 100644 --- a/graphics/libGL/bsd.mesalib.mk +++ b/graphics/libGL/bsd.mesalib.mk @@ -52,13 +52,10 @@ CONFIGURE_ARGS+=--enable-gallium-llvm=no --without-gallium-drivers \ .if defined(WITH_NEW_XORG) EXTRA_PATCHES+= ${PATCHDIR}/extra-configure \ - ${PATCHDIR}/extra-mach64_context.h \ - ${PATCHDIR}/extra-sis_context.h \ ${PATCHDIR}/extra-src-glsl_ir_constant_expression.cpp \ ${PATCHDIR}/extra-src__gallium__include__pipe__p_config.h \ ${PATCHDIR}/extra-src__mesa__drivers__dri__nouveau__nouveau_array.c \ - ${PATCHDIR}/extra-src__mesa__drivers__dri__nouveau__nouveau_render_t.c \ - ${PATCHDIR}/extra-src__mesa__drivers__dri__radeon__radeon_span.c + ${PATCHDIR}/extra-src__mesa__drivers__dri__nouveau__nouveau_render_t.c .else EXTRA_PATCHES+= ${PATCHDIR}/extra-configure-old \ ${PATCHDIR}/extra-mach64_context.h-old \ @@ -109,10 +106,3 @@ post-patch: ${WRKSRC}/src/mesa/Makefile \ ${WRKSRC}/src/mesa/drivers/dri/Makefile -.if defined(WITH_NEW_XORG) -# replace hardlinks with patched radeon_span.c -.for i in r200 r300 r600 - @${CP} -fp ${WRKSRC}/src/mesa/drivers/dri/radeon/radeon_span.c \ - ${WRKSRC}/src/mesa/drivers/dri/${i}/ -.endfor -.endif diff --git a/graphics/libGL/files/extra-configure b/graphics/libGL/files/extra-configure index fc1a68f..d1ae3b7 100644 --- a/graphics/libGL/files/extra-configure +++ b/graphics/libGL/files/extra-configure @@ -1,42 +1,40 @@ ---- 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 +--- configure.orig 2012-07-10 17:30:46.000000000 +0200 ++++ configure 2012-09-01 13:27:22.000000000 +0200 +@@ -9017,9 +9017,34 @@ + DEFINES="$DEFINES -DPTHREADS -DUSE_EXTERNAL_DXTN_LIB=1" + DEFINES="$DEFINES -DIN_DRI_DRIVER -DHAVE_ALIAS" - 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" +- DRI_DIRS="i915 i965 nouveau r200 radeon 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" ++ DRI_DIRS="i915 i965 nouveau r200 radeon 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" ++ DRI_DIRS="i915 i965 nouveau r200 radeon 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" ++ DRI_DIRS="r200 radeon 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" ++ DRI_DIRS="r200 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 b/graphics/libGL/files/extra-mach64_context.h deleted file mode 100644 index f844599..0000000 --- a/graphics/libGL/files/extra-mach64_context.h +++ /dev/null @@ -1,21 +0,0 @@ ---- src/mesa/drivers/dri/mach64/mach64_context.h.orig 2011-05-13 01:47:18.000000000 +0200 -+++ src/mesa/drivers/dri/mach64/mach64_context.h 2011-07-27 09:59:53.000000000 +0200 -@@ -289,7 +289,7 @@ - /* ================================================================ - * Byte ordering - */ --#if MESA_LITTLE_ENDIAN == 1 -+#if defined(MESA_LITTLE_ENDIAN) && MESA_LITTLE_ENDIAN == 1 - #define LE32_IN( x ) ( *(GLuint *)(x) ) - #define LE32_IN_FLOAT( x ) ( *(GLfloat *)(x) ) - #define LE32_OUT( x, y ) do { *(GLuint *)(x) = (y); } while (0) -@@ -298,6 +298,9 @@ - #if defined(__OpenBSD__) || defined(__NetBSD__) - #include <machine/endian.h> - #define bswap_32 bswap32 -+#elif defined(__FreeBSD__) -+#include <sys/endian.h> -+#define bswap_32 bswap32 - #else - #include <byteswap.h> - #endif diff --git a/graphics/libGL/files/extra-sis_context.h b/graphics/libGL/files/extra-sis_context.h deleted file mode 100644 index 0e16f51..0000000 --- a/graphics/libGL/files/extra-sis_context.h +++ /dev/null @@ -1,22 +0,0 @@ ---- src/mesa/drivers/dri/sis/sis_context.h.orig 2010-12-14 22:43:15.000000000 +0100 -+++ src/mesa/drivers/dri/sis/sis_context.h 2011-07-27 09:58:22.000000000 +0200 -@@ -400,10 +400,18 @@ - #define MMIO_READ(reg) *(volatile GLint *)(smesa->IOBase + (reg)) - #define MMIO_READf(reg) *(volatile GLfloat *)(smesa->IOBase + (reg)) - --#if defined(__i386__) || defined(__x86_64__) -+#if defined(__i386__) || defined(__x86_64__) || defined(__amd64__) - #define MMIO_WMB() __asm __volatile("" : : : "memory") - #elif defined(__ia64__) - #define MMIO_WMB() __asm __volatile("mf" : : : "memory") -+#elif defined(__powerpc__) -+#define MMIO_WMB() __asm __volatile("eieio" : : : "memory") -+#elif defined(__sparc64__) -+/* -+ * #StoreStore probably would be sufficient for this driver at the -+ * time of this writing but we use #Sync for safety. -+ */ -+#define MMIO_WMB() __asm __volatile("membar #Sync" : : : "memory") - #else - #error platform needs WMB - #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 deleted file mode 100644 index 3a186e9..0000000 --- a/graphics/libGL/files/extra-src__mesa__drivers__dri__radeon__radeon_span.c +++ /dev/null @@ -1,15 +0,0 @@ ---- 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 ) diff --git a/graphics/libGL/pkg-plist b/graphics/libGL/pkg-plist index 7245ebf..e24cff6 100644 --- a/graphics/libGL/pkg-plist +++ b/graphics/libGL/pkg-plist @@ -14,8 +14,8 @@ include/GL/osmesa.h include/GL/vms_x_fix.h include/GL/wglext.h include/GL/wmesa.h -lib/libGL/libGL.so -lib/libGL/libGL.so.1 +lib/.libGL/libGL.so +lib/.libGL/libGL.so.1 libdata/pkgconfig/gl.pc -@dirrm lib/libGL +@dirrm lib/.libGL @dirrmtry include/GL |