summaryrefslogtreecommitdiffstats
path: root/graphics/mesa-demos
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/mesa-demos')
-rw-r--r--graphics/mesa-demos/Makefile87
-rw-r--r--graphics/mesa-demos/distinfo4
-rw-r--r--graphics/mesa-demos/files/patch-progs-xdemos-glxpixmap.c11
-rw-r--r--graphics/mesa-demos/files/patch-progs-xdemos-yuvrect_client.c28
-rw-r--r--graphics/mesa-demos/files/patch-src__mesa__x86-64__glapi_x86-64.S12
-rw-r--r--graphics/mesa-demos/files/patch-src__mesa__x86-64__xform4.S74
-rw-r--r--graphics/mesa-demos/files/patch-src__mesa__x86__glapi_x86.S11
-rw-r--r--graphics/mesa-demos/files/patch-src__mesa__x86__read_rgba_span_x86.S11
-rw-r--r--graphics/mesa-demos/pkg-descr10
-rw-r--r--graphics/mesa-demos/pkg-plist94
10 files changed, 0 insertions, 342 deletions
diff --git a/graphics/mesa-demos/Makefile b/graphics/mesa-demos/Makefile
deleted file mode 100644
index 1bceb96..0000000
--- a/graphics/mesa-demos/Makefile
+++ /dev/null
@@ -1,87 +0,0 @@
-# New ports collection makefile for: mesa-demos
-# Date created: 7 Nov 2003
-# Whom: anholt@FreeBSD.org
-#
-# $FreeBSD$
-#
-
-PORTNAME= mesa-demos
-PORTVERSION= 7.6.1
-CATEGORIES= graphics
-MASTER_SITES= ftp://ftp.freedesktop.org/pub/mesa/${PORTVERSION}/
-DISTFILES= MesaLib-${PORTVERSION}${EXTRACT_SUFX} \
- MesaDemos-${PORTVERSION}${EXTRACT_SUFX}
-
-MAINTAINER= x11@FreeBSD.org
-COMMENT= OpenGL demos distributed with Mesa
-
-USE_BZIP2= yes
-USE_GMAKE= yes
-USE_LDCONFIG= yes
-GNU_CONFIGURE= yes
-MAKE_JOBS_SAFE= yes
-USE_GL= glu glut
-USE_XORG= glproto x11 xext xxf86vm xdamage xfixes dri2proto
-CPPFLAGS+= -I${LOCALBASE}/include ${PTHREAD_CFLAGS}
-CONFIGURE_ENV= LDFLAGS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}"
-CONFIGURE_ARGS= --disable-gallium --with-demos=demos,xdemos
-
-#ALL_TARGET= yes
-
-WRKSRC= ${WRKDIR}/Mesa-${PORTVERSION}/
-
-DATADIR= ${PREFIX}/share/${PKGNAMEPREFIX}${PORTNAME}
-
-OPTIONS= NVIDIA_GL "Use NVIDIA's libraries" off
-
-.if defined(WITHOUT_XCB)
-CONFIGURE_ARGS+= --disable-xcb
-.else
-CONFIGURE_ARGS+= --enable-xcb
-.endif
-
-post-patch:
- @${REINPLACE_CMD} -e 's|-ffast-math|${FAST_MATH}|' -e 's|x86_64|amd64|' \
- ${WRKSRC}/configure
- @${REINPLACE_CMD} -e 's|[$$](INSTALL_LIB_DIR)/pkgconfig|${PREFIX}/libdata/pkgconfig|' \
- ${WRKSRC}/src/glu/Makefile \
- ${WRKSRC}/src/glw/Makefile \
- ${WRKSRC}/src/mesa/Makefile \
- ${WRKSRC}/src/mesa/drivers/dri/Makefile
- @${REINPLACE_CMD} -e 's|../images/|${DATADIR}/images/|g' \
- -e 's|geartrain.dat|${DATADIR}/data/geartrain.dat|g' \
- -e 's|terrain.dat|${DATADIR}/data/terrain.dat|g' \
- -e 's|isosurf.dat|${DATADIR}/data/isosurf.dat|g' \
- ${WRKSRC}/progs/demos/*.c ${WRKSRC}/progs/xdemos/*.c
-
-do-install:
- @for i in demos xdemos; do \
- cd ${WRKSRC}/progs/$$i; \
- for j in `${MAKE} -V PROGS`; do \
- ${ECHO_CMD} ${INSTALL_PROGRAM} $$j ${PREFIX}/bin; \
- ${INSTALL_PROGRAM} $$j ${PREFIX}/bin; \
- done; \
- done
- ${MKDIR} ${DATADIR}/images ${DATADIR}/data
- @cd ${WRKSRC}/progs/images; \
- for i in `ls *.rgb*`; do \
- ${ECHO_CMD} ${INSTALL_DATA} $$i ${DATADIR}/images; \
- ${INSTALL_DATA} $$i ${DATADIR}/images; \
- done
- @cd ${WRKSRC}/progs/demos; \
- for i in `ls *.dat`; do \
- ${ECHO_CMD} ${INSTALL_DATA} $$i ${DATADIR}/data; \
- ${INSTALL_DATA} $$i ${DATADIR}/data; \
- done
-
-.include <bsd.port.pre.mk>
-
-.if defined(WITH_NVIDIA_GL)
-CFLAGS+= -DWITH_NVIDIA_GL=1
-.endif
-
-.if !defined(ARCH)
-ARCH!= uname -p
-.endif
-
-.include <bsd.port.post.mk>
diff --git a/graphics/mesa-demos/distinfo b/graphics/mesa-demos/distinfo
deleted file mode 100644
index 738047a..0000000
--- a/graphics/mesa-demos/distinfo
+++ /dev/null
@@ -1,4 +0,0 @@
-SHA256 (MesaLib-7.6.1.tar.bz2) = 701f0e4cb85d6298181651b780d1c0a439fadd02aad29ee6623fc05588bb8d44
-SIZE (MesaLib-7.6.1.tar.bz2) = 4886995
-SHA256 (MesaDemos-7.6.1.tar.bz2) = d2368fc86d032dc6478df70f99b114abdf6c0c1da57bf1d3927ab179876f9c4b
-SIZE (MesaDemos-7.6.1.tar.bz2) = 1547790
diff --git a/graphics/mesa-demos/files/patch-progs-xdemos-glxpixmap.c b/graphics/mesa-demos/files/patch-progs-xdemos-glxpixmap.c
deleted file mode 100644
index 1dfc2c4..0000000
--- a/graphics/mesa-demos/files/patch-progs-xdemos-glxpixmap.c
+++ /dev/null
@@ -1,11 +0,0 @@
---- progs/xdemos/glxpixmap.c.orig Fri Apr 6 22:29:09 2007
-+++ progs/xdemos/glxpixmap.c Fri Apr 6 22:38:33 2007
-@@ -105,7 +105,7 @@
- * to render correctly. This is because Mesa allows RGB rendering
- * into any kind of visual, not just TrueColor or DirectColor.
- */
--#ifdef GLX_MESA_pixmap_colormap
-+#if defined(GLX_MESA_pixmap_colormap) && !defined(WITH_NVIDIA_GL)
- if (strstr(glXQueryExtensionsString(dpy, 0), "GLX_MESA_pixmap_colormap")) {
- /* stand-alone Mesa, specify the colormap */
- glxpm = glXCreateGLXPixmapMESA( dpy, visinfo, pm, attr.colormap );
diff --git a/graphics/mesa-demos/files/patch-progs-xdemos-yuvrect_client.c b/graphics/mesa-demos/files/patch-progs-xdemos-yuvrect_client.c
deleted file mode 100644
index 1dbf8e3..0000000
--- a/graphics/mesa-demos/files/patch-progs-xdemos-yuvrect_client.c
+++ /dev/null
@@ -1,28 +0,0 @@
---- progs/xdemos/yuvrect_client.c.orig Fri Apr 6 22:42:30 2007
-+++ progs/xdemos/yuvrect_client.c Fri Apr 6 22:48:05 2007
-@@ -140,7 +140,11 @@
- exit(0);
- }
-
-- glx_memory = glXAllocateMemoryMESA(dpy, screen, ImgWidth * ImgHeight * 2, 0, 0 ,0);
-+ #ifdef WITH_NVIDIA_GL
-+ glx_memory = glXAllocateMemoryNV(ImgWidth * ImgHeight * 2, 0, 0 ,0);
-+ #else
-+ glx_memory = glXAllocateMemoryMESA(dpy, screen, ImgWidth * ImgHeight * 2, 0, 0 ,0);
-+ #endif
- if (!glx_memory)
- {
- fprintf(stderr,"Failed to allocate MESA memory\n");
-@@ -317,7 +321,11 @@
- glXSwapBuffers(dpy, win);
- event_loop(dpy, win);
-
-- glXFreeMemoryMESA(dpy, DefaultScreen(dpy), glx_memory);
-+ #ifdef WITH_NVIDIA_GL
-+ glXFreeMemoryNV(glx_memory);
-+ #else
-+ glXFreeMemoryMESA(dpy, DefaultScreen(dpy), glx_memory);
-+ #endif
- glXDestroyContext(dpy, ctx);
- XDestroyWindow(dpy, win);
- XCloseDisplay(dpy);
diff --git a/graphics/mesa-demos/files/patch-src__mesa__x86-64__glapi_x86-64.S b/graphics/mesa-demos/files/patch-src__mesa__x86-64__glapi_x86-64.S
deleted file mode 100644
index 908a6fe..0000000
--- a/graphics/mesa-demos/files/patch-src__mesa__x86-64__glapi_x86-64.S
+++ /dev/null
@@ -1,12 +0,0 @@
---- ./src/mesa/x86-64/glapi_x86-64.S.orig 2009-03-13 04:28:49.000000000 +0100
-+++ ./src/mesa/x86-64/glapi_x86-64.S 2011-01-28 18:12:18.000000000 +0100
-@@ -73,7 +73,8 @@ _x86_64_get_dispatch:
-
- .p2align 4,,15
- _x86_64_get_dispatch:
-- movq _gl_DispatchTSD(%rip), %rdi
-+ movq _gl_DispatchTSD@GOTPCREL(%rip), %rax
-+ movl (%rax), %edi
- jmp pthread_getspecific@PLT
-
- #elif defined(THREADS)
diff --git a/graphics/mesa-demos/files/patch-src__mesa__x86-64__xform4.S b/graphics/mesa-demos/files/patch-src__mesa__x86-64__xform4.S
deleted file mode 100644
index 193e6cc..0000000
--- a/graphics/mesa-demos/files/patch-src__mesa__x86-64__xform4.S
+++ /dev/null
@@ -1,74 +0,0 @@
---- src/mesa/x86-64/xform4.S.orig 2009-01-22 18:38:35.000000000 +0100
-+++ src/mesa/x86-64/xform4.S 2011-05-09 21:26:00.000000000 +0200
-@@ -53,7 +53,7 @@ _mesa_x86_64_transform_points4_general:
- * rdx = source
- */
- movl V4F_COUNT(%rdx), %ecx /* count */
-- movzx V4F_STRIDE(%rdx), %eax /* stride */
-+ movzbl V4F_STRIDE(%rdx), %eax /* stride */
-
- movl %ecx, V4F_COUNT(%rdi) /* set dest count */
- movl $4, V4F_SIZE(%rdi) /* set dest size */
-@@ -116,7 +116,7 @@ p4_constants:
- .byte 0x00, 0x00, 0x00, 0x00
- .byte 0x00, 0x00, 0x00, 0x00
- .byte 0x00, 0x00, 0x00, 0x00
--.float 0f+1.0
-+.float 1.0
-
- .text
- .align 16
-@@ -135,7 +135,7 @@ _mesa_x86_64_transform_points4_3d:
- movaps 16(%rax), %xmm10
-
- movl V4F_COUNT(%rdx), %ecx /* count */
-- movzx V4F_STRIDE(%rdx), %eax /* stride */
-+ movzbl V4F_STRIDE(%rdx), %eax /* stride */
-
- movl %ecx, V4F_COUNT(%rdi) /* set dest count */
- movl $4, V4F_SIZE(%rdi) /* set dest size */
-@@ -195,7 +195,7 @@ p4_3d_done:
- _mesa_x86_64_transform_points4_identity:
-
- movl V4F_COUNT(%rdx), %ecx /* count */
-- movzx V4F_STRIDE(%rdx), %eax /* stride */
-+ movzbl V4F_STRIDE(%rdx), %eax /* stride */
-
- movl %ecx, V4F_COUNT(%rdi) /* set dest count */
- movl $4, V4F_SIZE(%rdi) /* set dest size */
-@@ -223,7 +223,7 @@ p4_identity_done:
- _mesa_3dnow_transform_points4_3d_no_rot:
-
- movl V4F_COUNT(%rdx), %ecx /* count */
-- movzx V4F_STRIDE(%rdx), %eax /* stride */
-+ movzbl V4F_STRIDE(%rdx), %eax /* stride */
-
- movl %ecx, V4F_COUNT(%rdi) /* set dest count */
- movl $4, V4F_SIZE(%rdi) /* set dest size */
-@@ -287,7 +287,7 @@ p4_3d_no_rot_done:
- _mesa_3dnow_transform_points4_perspective:
-
- movl V4F_COUNT(%rdx), %ecx /* count */
-- movzx V4F_STRIDE(%rdx), %eax /* stride */
-+ movzbl V4F_STRIDE(%rdx), %eax /* stride */
-
- movl %ecx, V4F_COUNT(%rdi) /* set dest count */
- movl $4, V4F_SIZE(%rdi) /* set dest size */
-@@ -353,7 +353,7 @@ p4_perspective_done:
- _mesa_3dnow_transform_points4_2d_no_rot:
-
- movl V4F_COUNT(%rdx), %ecx /* count */
-- movzx V4F_STRIDE(%rdx), %eax /* stride */
-+ movzbl V4F_STRIDE(%rdx), %eax /* stride */
-
- movl %ecx, V4F_COUNT(%rdi) /* set dest count */
- movl $4, V4F_SIZE(%rdi) /* set dest size */
-@@ -408,7 +408,7 @@ p4_2d_no_rot_done:
- _mesa_3dnow_transform_points4_2d:
-
- movl V4F_COUNT(%rdx), %ecx /* count */
-- movzx V4F_STRIDE(%rdx), %eax /* stride */
-+ movzbl V4F_STRIDE(%rdx), %eax /* stride */
-
- movl %ecx, V4F_COUNT(%rdi) /* set dest count */
- movl $4, V4F_SIZE(%rdi) /* set dest size */
diff --git a/graphics/mesa-demos/files/patch-src__mesa__x86__glapi_x86.S b/graphics/mesa-demos/files/patch-src__mesa__x86__glapi_x86.S
deleted file mode 100644
index 71da78c..0000000
--- a/graphics/mesa-demos/files/patch-src__mesa__x86__glapi_x86.S
+++ /dev/null
@@ -1,11 +0,0 @@
---- ./src/mesa/x86/glapi_x86.S.orig 2009-03-13 04:28:49.000000000 +0100
-+++ ./src/mesa/x86/glapi_x86.S 2011-01-28 18:11:56.000000000 +0100
-@@ -47,7 +47,7 @@
- #define GL_OFFSET(x) CODEPTR(REGOFF(4 * x, EAX))
-
- #if defined(GNU_ASSEMBLER) && !defined(__DJGPP__) && !defined(__MINGW32__)
--#define GLOBL_FN(x) GLOBL x ; .type x, function
-+#define GLOBL_FN(x) GLOBL x ; .type x, @function
- #else
- #define GLOBL_FN(x) GLOBL x
- #endif
diff --git a/graphics/mesa-demos/files/patch-src__mesa__x86__read_rgba_span_x86.S b/graphics/mesa-demos/files/patch-src__mesa__x86__read_rgba_span_x86.S
deleted file mode 100644
index 37b08d1..0000000
--- a/graphics/mesa-demos/files/patch-src__mesa__x86__read_rgba_span_x86.S
+++ /dev/null
@@ -1,11 +0,0 @@
---- ./src/mesa/x86/read_rgba_span_x86.S.orig 2008-08-25 16:46:47.000000000 +0200
-+++ ./src/mesa/x86/read_rgba_span_x86.S 2011-01-28 18:10:06.000000000 +0100
-@@ -648,7 +648,7 @@ _generic_read_RGBA_span_RGB565_MMX:
- testl $0x01, %ecx
- je .L01
-
-- movzxw (%eax), %ecx
-+ movzwl (%eax), %ecx
- movd %ecx, %mm4
-
- pshufw $0x00, %mm4, %mm0
diff --git a/graphics/mesa-demos/pkg-descr b/graphics/mesa-demos/pkg-descr
deleted file mode 100644
index 2d69b2e..0000000
--- a/graphics/mesa-demos/pkg-descr
+++ /dev/null
@@ -1,10 +0,0 @@
-Mesa is a 3-D graphics library with an API which is very similar to that
-of OpenGL*. To the extent that Mesa utilizes the OpenGL command syntax
-or state machine, it is being used with authorization from Silicon Graphics,
-Inc. However, the author makes no claim that Mesa is in any way a
-compatible replacement for OpenGL or associated with Silicon Graphics, Inc.
-Those who want a licensed implementation of OpenGL should contact a licensed
-vendor. This software is distributed under the terms of the GNU Library
-General Public License, see the LICENSE file for details.
-
-WWW: http://www.mesa3d.org/
diff --git a/graphics/mesa-demos/pkg-plist b/graphics/mesa-demos/pkg-plist
deleted file mode 100644
index e4cbf2e..0000000
--- a/graphics/mesa-demos/pkg-plist
+++ /dev/null
@@ -1,94 +0,0 @@
-bin/arbfplight
-bin/arbfslight
-bin/arbocclude
-bin/bounce
-bin/clearspd
-bin/copypix
-bin/corender
-bin/cubemap
-bin/dinoshade
-bin/drawpix
-bin/engine
-bin/fbo_firecube
-bin/fbotexture
-bin/fire
-bin/fogcoord
-bin/fplight
-bin/fslight
-bin/gamma
-bin/gearbox
-bin/gears
-bin/geartrain
-bin/glinfo
-bin/gloss
-bin/glsync
-bin/gltestperf
-bin/glthreads
-bin/glxcontexts
-bin/glxdemo
-bin/glxgears
-bin/glxgears_fbconfig
-bin/glxgears_pixmap
-bin/glxheads
-bin/glxinfo
-bin/glxpbdemo
-bin/glxpixmap
-bin/glxsnoop
-bin/glxswapcontrol
-bin/ipers
-bin/isosurf
-bin/lodbias
-bin/manywin
-bin/morph3d
-bin/multiarb
-bin/multictx
-bin/offset
-bin/overlay
-bin/paltex
-bin/pbdemo
-bin/pbinfo
-bin/pointblast
-bin/projtex
-bin/rain
-bin/ray
-bin/readpix
-bin/reflect
-bin/renormal
-bin/shadowtex
-bin/sharedtex
-bin/sharedtex_mt
-bin/singlebuffer
-bin/spectex
-bin/spriteblast
-bin/stex3d
-bin/teapot
-bin/terrain
-bin/tessdemo
-bin/texcyl
-bin/texenv
-bin/texture_from_pixmap
-bin/textures
-bin/trispd
-bin/tunnel
-bin/tunnel2
-bin/vao_demo
-bin/wincopy
-bin/winpos
-bin/xfont
-bin/xrotfontdemo
-%%DATADIR%%/data/geartrain.dat
-%%DATADIR%%/data/isosurf.dat
-%%DATADIR%%/data/terrain.dat
-%%DATADIR%%/images/arch.rgb
-%%DATADIR%%/images/bw.rgb
-%%DATADIR%%/images/girl.rgb
-%%DATADIR%%/images/girl2.rgb
-%%DATADIR%%/images/reflect.rgb
-%%DATADIR%%/images/s128.rgb
-%%DATADIR%%/images/tile.rgb
-%%DATADIR%%/images/tree2.rgba
-%%DATADIR%%/images/tree3.rgb
-%%DATADIR%%/images/wrs_logo.rgb
-@dirrm %%DATADIR%%/images
-@dirrm %%DATADIR%%/data
-@dirrm %%DATADIR%%