diff options
author | miwi <miwi@058c260c-8361-11dd-a0ac-aa2bafec7d09> | 2011-03-10 21:53:40 +0800 |
---|---|---|
committer | miwi <miwi@058c260c-8361-11dd-a0ac-aa2bafec7d09> | 2011-03-10 21:53:40 +0800 |
commit | 192f2370ca2fc8b4b0003c5c24c0cc84e4ce2d33 (patch) | |
tree | c71a3b90983bc0ab450ece4511b3b52e5ae7adcd /graphics | |
parent | f049ad46f840908cb646c5f15ff5b5222a2dade5 (diff) | |
download | xorg-devel-ports-192f2370ca2fc8b4b0003c5c24c0cc84e4ce2d33.tar xorg-devel-ports-192f2370ca2fc8b4b0003c5c24c0cc84e4ce2d33.tar.gz xorg-devel-ports-192f2370ca2fc8b4b0003c5c24c0cc84e4ce2d33.tar.bz2 xorg-devel-ports-192f2370ca2fc8b4b0003c5c24c0cc84e4ce2d33.tar.lz xorg-devel-ports-192f2370ca2fc8b4b0003c5c24c0cc84e4ce2d33.tar.xz xorg-devel-ports-192f2370ca2fc8b4b0003c5c24c0cc84e4ce2d33.tar.zst xorg-devel-ports-192f2370ca2fc8b4b0003c5c24c0cc84e4ce2d33.zip |
- Update mesa stuff to 7.10.1
Many Thanks to gahr@ for help
git-svn-id: https://trillian.chruetertee.ch/svn/ports/branches/xorg-dev@240 058c260c-8361-11dd-a0ac-aa2bafec7d09
Diffstat (limited to 'graphics')
26 files changed, 440 insertions, 0 deletions
diff --git a/graphics/dri/Makefile b/graphics/dri/Makefile new file mode 100644 index 0000000..668c2df --- /dev/null +++ b/graphics/dri/Makefile @@ -0,0 +1,39 @@ +# New ports collection makefile for: dri +# Date created: 8 Nov 2003 +# Whom: anholt@FreeBSD.org +# +# $FreeBSD: ports/graphics/dri/Makefile,v 1.36 2011/02/25 16:52:06 miwi Exp $ +# + +PORTNAME= dri +PORTVERSION= ${MESAVERSION} +PORTEPOCH= 2 +CATEGORIES= graphics + +COMMENT= OpenGL hardware acceleration drivers for the DRI + +LIB_DEPENDS= drm:${PORTSDIR}/graphics/libdrm \ + expat.6:${PORTSDIR}/textproc/expat2 +BUILD_DEPENDS= makedepend:${PORTSDIR}/devel/makedepend + +CONFLICTS= dri-6.2.2005* dri-6.5.2006* +MAKE_JOBS_UNSAFE= yes + +USE_XORG= glproto x11 xext xxf86vm xdamage xfixes dri2proto +#USE_GCC= 4.5+ + +#EXTRA_PATCHES+= ${FILESDIR}/patch-mach64_context.h \ +# ${FILESDIR}/patch-sis_context.h + +do-install: + cd ${WRKSRC}/src/mesa; ${GMAKE} install-dri + +.include "${.CURDIR}/../../graphics/libGL/bsd.mesalib.mk" + +.include <bsd.port.pre.mk> + +.if ${ARCH} == "ia64" +BROKEN= Does not install on ia64 +.endif + +.include <bsd.port.post.mk> diff --git a/graphics/dri/distinfo b/graphics/dri/distinfo new file mode 100644 index 0000000..c8cd81c --- /dev/null +++ b/graphics/dri/distinfo @@ -0,0 +1,2 @@ +SHA256 (MesaLib-7.10.1.tar.bz2) = 9f4c67b212d9ecb83819e76645cecbebafbbfd6cb76290d0c2ea9f5ad9507390 +SIZE (MesaLib-7.10.1.tar.bz2) = 5866217 diff --git a/graphics/dri/files/patch-configure b/graphics/dri/files/patch-configure new file mode 100644 index 0000000..e16fe2c --- /dev/null +++ b/graphics/dri/files/patch-configure @@ -0,0 +1,11 @@ +--- configure.orig 2011-03-10 21:23:08.000000000 +0800 ++++ configure 2011-03-10 21:24:26.000000000 +0800 +@@ -7588,7 +7588,7 @@ + DEFINES="$DEFINES -DGLX_DIRECT_RENDERING" + fi + if test "x$GXX" = xyes; then +- CXXFLAGS="$CXXFLAGS -ansi -pedantic" ++ CXXFLAGS="$CXXFLAGS" + fi + + if test "x$DRI_DIRS" = "xyes"; then diff --git a/graphics/dri/files/patch-mach64_context.h b/graphics/dri/files/patch-mach64_context.h new file mode 100644 index 0000000..90fe99b --- /dev/null +++ b/graphics/dri/files/patch-mach64_context.h @@ -0,0 +1,27 @@ +--- src/mesa/drivers/dri/mach64/mach64_context.h.orig 2009-01-21 10:55:48.000000000 -0500 ++++ src/mesa/drivers/dri/mach64/mach64_context.h 2009-01-22 13:48:00.000000000 -0500 +@@ -288,17 +288,20 @@ + /* ================================================================ + * 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) + #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/dri/files/patch-sis_context.h b/graphics/dri/files/patch-sis_context.h new file mode 100644 index 0000000..3152e2d --- /dev/null +++ b/graphics/dri/files/patch-sis_context.h @@ -0,0 +1,24 @@ +--- src/mesa/drivers/dri/sis/sis_context.h.orig 2008-09-22 13:38:53.000000000 +0100 ++++ src/mesa/drivers/dri/sis/sis_context.h 2008-09-22 13:40:51.000000000 +0100 +@@ -401,10 +401,20 @@ + #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(__alpha__) ++#define MMIO_WMB() __asm __volatile("wmb" : : : "memory") ++#elif 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/dri/pkg-descr b/graphics/dri/pkg-descr new file mode 100644 index 0000000..776a52a --- /dev/null +++ b/graphics/dri/pkg-descr @@ -0,0 +1,5 @@ +This package contains the current stable release of the client drivers for the +DRI. With an X Server configured for the DRI they allow direct rendering of +hardware-accelerated OpenGL. + +WWW: http://dri.sourceforge.net/ diff --git a/graphics/dri/pkg-plist b/graphics/dri/pkg-plist new file mode 100644 index 0000000..7e471e3 --- /dev/null +++ b/graphics/dri/pkg-plist @@ -0,0 +1,20 @@ +include/GL/internal/dri_interface.h +lib/dri/i810_dri.so +lib/dri/i915_dri.so +lib/dri/i965_dri.so +lib/dri/mach64_dri.so +lib/dri/mga_dri.so +lib/dri/r128_dri.so +lib/dri/r200_dri.so +lib/dri/r300_dri.so +lib/dri/r600_dri.so +lib/dri/radeon_dri.so +lib/dri/savage_dri.so +lib/dri/sis_dri.so +lib/dri/swrast_dri.so +lib/dri/tdfx_dri.so +lib/dri/unichrome_dri.so +libdata/pkgconfig/dri.pc +@dirrm lib/dri +@dirrmtry include/GL/internal +@dirrmtry include/GL diff --git a/graphics/libGL/Makefile b/graphics/libGL/Makefile new file mode 100644 index 0000000..83198ab --- /dev/null +++ b/graphics/libGL/Makefile @@ -0,0 +1,27 @@ +# New ports collection makefile for: xorg-server +# Date created: 7 May 2004 +# Whom: anholt@FreeBSD.org +# +# $FreeBSD: ports/graphics/libGL/Makefile,v 1.17 2011/02/25 16:52:06 miwi Exp $ +# + +PORTNAME= libGL +PORTVERSION= ${MESAVERSION} +CATEGORIES= graphics + +COMMENT= OpenGL library that renders using GLX or DRI + +BUILD_DEPENDS+= makedepend:${PORTSDIR}/devel/makedepend \ + ${PYTHON_SITELIBDIR}/libxml2mod.so:${PORTSDIR}/textproc/py-libxml2 +LIB_DEPENDS+= drm:${PORTSDIR}/graphics/libdrm \ + expat.6:${PORTSDIR}/textproc/expat2 + +USE_XORG= glproto x11 xext xxf86vm xdamage xfixes dri2proto:both +USE_PYTHON= yes + +do-install: + ${RM} -f ${WRKSRC}/include/GL/glu*.h + cd ${WRKSRC}/src/mesa; ${GMAKE} install-libgl + +.include "${.CURDIR}/bsd.mesalib.mk" +.include <bsd.port.mk> diff --git a/graphics/libGL/bsd.mesalib.mk b/graphics/libGL/bsd.mesalib.mk new file mode 100644 index 0000000..bb62f8b --- /dev/null +++ b/graphics/libGL/bsd.mesalib.mk @@ -0,0 +1,118 @@ +#-*- mode: Fundamental; tab-width: 4; -*- +# ex:ts=4 +# +# bsd.mesa.mk - an attempt to refactor MesaLib ports. +# +# Created by: Florent Thoumie <flz@FreeBSD.org> +# +# !!! Here be dragons !!! (they seem to be everywhere these days) +# +# Remember to upgrade the following ports everytime you bump MESAVERSION: +# +# - graphics/libGL +# - graphics/libGLU +# - graphics/libGLw +# - graphics/libglut +# - graphics/dri +# +# $FreeBSD: ports/graphics/libGL/bsd.mesalib.mk,v 1.17 2011/02/25 16:52:06 miwi Exp $ +# + +MESAVERSION= ${MESABASEVERSION}${MESASUBVERSION:C/^(.)/.\1/} +MESADISTVERSION=${MESABASEVERSION}${MESASUBVERSION:C/^(.)/-\1/} + +.ifdef WITHOUT_NOUVEAU +MESABASEVERSION= 7.6.1 +MESASUBVERSION= +PLIST_SUB+= MESALIB76= MESALIB74="@comment " +.else +MESABASEVERSION= 7.10.1 +MESASUBVERSION= +PLIST_SUB+= MESALIB74= MESALIB76="@comment " +#EXTRA_PATCHES+= ${PATCHDIR}/mesalib74-configure +.endif + +MASTER_SITES?= ftp://ftp.freedesktop.org/pub/mesa/${MESABASEVERSION}/:mesa,glut,demos +MASTER_SITE_SUBDIR= mesa3d +DISTFILES= MesaLib-${MESADISTVERSION}${EXTRACT_SUFX}:mesa +MAINTAINER?= x11@FreeBSD.org + +USE_BZIP2= yes +USE_GMAKE= yes +USE_LDCONFIG= yes +GNU_CONFIGURE= yes +MAKE_JOBS_SAFE= yes + +CONFIGURE_ENV= CPPFLAGS=-I${LOCALBASE}/include \ + LDFLAGS=-L${LOCALBASE}/lib +CONFIGURE_ARGS= --disable-gallium + +ALL_TARGET= default + +PATCHDIR= ${.CURDIR}/../../graphics/libGL/files +WRKSRC= ${WRKDIR}/Mesa-${MESABASEVERSION} + +.if !defined(ARCH) +ARCH!= uname -p +.endif + +.if ${ARCH} == alpha +FAST_MATH= +.else +FAST_MATH= -ffast-math +.endif + +COMPONENT= ${PORTNAME:L:C/^lib//:C/mesa-//} + +.if ${COMPONENT:Mglut} == "" +. if ${COMPONENT:Mglu} == "" +CONFIGURE_ARGS+= --disable-glu --disable-glut +. else +CONFIGURE_ARGS+= --disable-glut +. endif +.else +DISTFILES+= MesaGLUT-${MESADISTVERSION}${EXTRACT_SUFX}:glut +.endif + +.if ${COMPONENT:Mglw} == "" +CONFIGURE_ARGS+= --disable-glw +.else +CONFIGURE_ARGS+= --enable-motif +.endif + +.if ${COMPONENT:Mdemos} == "" +CONFIGURE_ARGS+= --with-demos=no +.else +DISTFILES+= MesaDemos-${MESADISTVERSION}${EXTRACT_SUFX}:demos +CONFIGURE_ARGS+= --with-demos=demos,xdemos +.endif + +.if ${COMPONENT:Mdri} == "" +CONFIGURE_ARGS+= --with-dri-drivers=no +.endif + +.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 +.if ${COMPONENT:Mglut} != "" + @${REINPLACE_CMD} -e 's|[$$](INSTALL_LIB_DIR)/pkgconfig|${PREFIX}/libdata/pkgconfig|' \ + ${WRKSRC}/src/glut/glx/Makefile +.endif +.if ${COMPONENT:Mdemos} != "" + @${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 +.endif diff --git a/graphics/libGL/distinfo b/graphics/libGL/distinfo new file mode 100644 index 0000000..c8cd81c --- /dev/null +++ b/graphics/libGL/distinfo @@ -0,0 +1,2 @@ +SHA256 (MesaLib-7.10.1.tar.bz2) = 9f4c67b212d9ecb83819e76645cecbebafbbfd6cb76290d0c2ea9f5ad9507390 +SIZE (MesaLib-7.10.1.tar.bz2) = 5866217 diff --git a/graphics/libGL/files/patch-src-glsl_ir_constant_expression.cpp b/graphics/libGL/files/patch-src-glsl_ir_constant_expression.cpp new file mode 100644 index 0000000..cbf0651 --- /dev/null +++ b/graphics/libGL/files/patch-src-glsl_ir_constant_expression.cpp @@ -0,0 +1,14 @@ +--- src/glsl/ir_constant_expression.cpp.orgi 2011-03-10 18:30:39.000000000 +0800 ++++ src/glsl/ir_constant_expression.cpp 2011-03-10 18:31:19.000000000 +0800 +@@ -39,6 +39,11 @@ + #include "ir_visitor.h" + #include "glsl_types.h" + ++#include <sys/param.h> ++#if __FreeBSD_version <= 704100 || (__FreeBSD_version >= 800000 && __FreeBSD_version < 802502) || (__FreeBSD_version >= 900000 && __FreeBSD_version < 900027) ++#define log2(x) (log(x) / log(2)) ++#endif ++ + static float + dot(ir_constant *op0, ir_constant *op1) + { diff --git a/graphics/libGL/files/patch-src-glsl_lower_jumps.cpp b/graphics/libGL/files/patch-src-glsl_lower_jumps.cpp new file mode 100644 index 0000000..c352312 --- /dev/null +++ b/graphics/libGL/files/patch-src-glsl_lower_jumps.cpp @@ -0,0 +1,11 @@ +--- src/glsl/lower_jumps.cpp.orig 2011-03-10 18:40:52.000000000 +0800 ++++ src/glsl/lower_jumps.cpp 2011-03-10 18:41:18.000000000 +0800 +@@ -66,7 +66,7 @@ + strength_always_clears_execute_flag, + strength_continue, + strength_break, +- strength_return, ++ strength_return + }; + + struct block_record diff --git a/graphics/libGL/pkg-descr b/graphics/libGL/pkg-descr new file mode 100644 index 0000000..eeba293 --- /dev/null +++ b/graphics/libGL/pkg-descr @@ -0,0 +1,4 @@ +This package contains the OpenGL library, which can perform rendering over GLX +or using the Direct Rendering Infrastructure. + +WWW: http://www.freedesktop.org/Software/xorg diff --git a/graphics/libGL/pkg-plist b/graphics/libGL/pkg-plist new file mode 100644 index 0000000..f920363 --- /dev/null +++ b/graphics/libGL/pkg-plist @@ -0,0 +1,16 @@ +include/GL/gl.h +include/GL/gl_mangle.h +include/GL/glext.h +include/GL/glfbdev.h +include/GL/glx.h +include/GL/glx_mangle.h +include/GL/glxext.h +include/GL/mesa_wgl.h +include/GL/osmesa.h +include/GL/vms_x_fix.h +include/GL/wglext.h +include/GL/wmesa.h +lib/libGL.so +lib/libGL.so.1 +libdata/pkgconfig/gl.pc +@dirrmtry include/GL diff --git a/graphics/libGLU/Makefile b/graphics/libGLU/Makefile new file mode 100644 index 0000000..65ae244 --- /dev/null +++ b/graphics/libGLU/Makefile @@ -0,0 +1,27 @@ +# New ports collection makefile for: libGLU +# Date created: 7 May 2004 +# Whom: anholt@FreeBSD.org +# +# $FreeBSD: ports/graphics/libGLU/Makefile,v 1.14 2011/02/25 16:52:06 miwi Exp $ +# + +PORTNAME= libGLU +PORTVERSION= ${MESAVERSION} +CATEGORIES= graphics + +COMMENT= OpenGL utility library + +BUILD_DEPENDS+= makedepend:${PORTSDIR}/devel/makedepend \ + ${PYTHON_SITELIBDIR}/libxml2mod.so:${PORTSDIR}/textproc/py-libxml2 + +USE_PYTHON= yes +USE_GL= gl +USE_XORG= glproto x11 xext xxf86vm xdamage xfixes dri2proto + +do-install: + cd ${WRKSRC}/src/glu; ${GMAKE} install + ${INSTALL_DATA} ${WRKSRC}/include/GL/glu*.h ${PREFIX}/include/GL/ + cd ${WRKSRC}/src/glu; ${GMAKE} install + +.include "${.CURDIR}/../../graphics/libGL/bsd.mesalib.mk" +.include <bsd.port.mk> diff --git a/graphics/libGLU/distinfo b/graphics/libGLU/distinfo new file mode 100644 index 0000000..c8cd81c --- /dev/null +++ b/graphics/libGLU/distinfo @@ -0,0 +1,2 @@ +SHA256 (MesaLib-7.10.1.tar.bz2) = 9f4c67b212d9ecb83819e76645cecbebafbbfd6cb76290d0c2ea9f5ad9507390 +SIZE (MesaLib-7.10.1.tar.bz2) = 5866217 diff --git a/graphics/libGLU/pkg-descr b/graphics/libGLU/pkg-descr new file mode 100644 index 0000000..3a7d2e7 --- /dev/null +++ b/graphics/libGLU/pkg-descr @@ -0,0 +1,3 @@ +This package contains the OpenGL utility library. + +WWW: http://www.freedesktop.org/Software/xorg diff --git a/graphics/libGLU/pkg-plist b/graphics/libGLU/pkg-plist new file mode 100644 index 0000000..330c54e --- /dev/null +++ b/graphics/libGLU/pkg-plist @@ -0,0 +1,5 @@ +include/GL/glu.h +include/GL/glu_mangle.h +lib/libGLU.so +lib/libGLU.so.1 +libdata/pkgconfig/glu.pc diff --git a/graphics/libGLw/Makefile b/graphics/libGLw/Makefile new file mode 100644 index 0000000..87b27f5 --- /dev/null +++ b/graphics/libGLw/Makefile @@ -0,0 +1,26 @@ +# New ports collection makefile for: libGLw +# Date created: 7 May 2004 +# Whom: anholt@FreeBSD.org +# +# $FreeBSD: ports/graphics/libGLw/Makefile,v 1.10 2011/02/25 16:52:07 miwi Exp $ +# + +PORTNAME= libGLw +PORTVERSION= ${MESAVERSION} +CATEGORIES= graphics + +COMMENT= OpenGL widgets library + +BUILD_DEPENDS+= makedepend:${PORTSDIR}/devel/makedepend \ + ${PYTHON_SITELIBDIR}/libxml2mod.so:${PORTSDIR}/textproc/py-libxml2 +LIB_DEPENDS+= Xm.3:${PORTSDIR}/x11-toolkits/open-motif + +USE_PYTHON= yes +USE_GL= gl +USE_XORG= glproto xt x11 xext xxf86vm xdamage xfixes dri2proto + +do-install: + cd ${WRKSRC}/src/glw; ${GMAKE} install + +.include "${.CURDIR}/../../graphics/libGL/bsd.mesalib.mk" +.include <bsd.port.mk> diff --git a/graphics/libGLw/distinfo b/graphics/libGLw/distinfo new file mode 100644 index 0000000..c8cd81c --- /dev/null +++ b/graphics/libGLw/distinfo @@ -0,0 +1,2 @@ +SHA256 (MesaLib-7.10.1.tar.bz2) = 9f4c67b212d9ecb83819e76645cecbebafbbfd6cb76290d0c2ea9f5ad9507390 +SIZE (MesaLib-7.10.1.tar.bz2) = 5866217 diff --git a/graphics/libGLw/pkg-descr b/graphics/libGLw/pkg-descr new file mode 100644 index 0000000..d3a7ea7 --- /dev/null +++ b/graphics/libGLw/pkg-descr @@ -0,0 +1,3 @@ +This package contains the OpenGL widgets library. + +WWW: http://www.mesa3d.org/ diff --git a/graphics/libGLw/pkg-plist b/graphics/libGLw/pkg-plist new file mode 100644 index 0000000..211b586 --- /dev/null +++ b/graphics/libGLw/pkg-plist @@ -0,0 +1,8 @@ +include/GL/GLwDrawA.h +include/GL/GLwDrawAP.h +include/GL/GLwMDrawA.h +include/GL/GLwMDrawAP.h +lib/libGLw.so +lib/libGLw.so.1 +libdata/pkgconfig/glw.pc +@dirrmtry include/GL diff --git a/graphics/libglut/Makefile b/graphics/libglut/Makefile new file mode 100644 index 0000000..e811cb7 --- /dev/null +++ b/graphics/libglut/Makefile @@ -0,0 +1,29 @@ +# New ports collection makefile for: libglut +# Date created: Tue Feb 7 12:02:49 1995 +# Whom: anholt +# +# $FreeBSD: ports/graphics/libglut/Makefile,v 1.25 2011/02/25 16:52:07 miwi Exp $ +# + +PORTNAME= libglut +PORTVERSION= ${MESAVERSION} +CATEGORIES= graphics + +MAINTAINER= x11@FreeBSD.org +COMMENT= OpenGL utility toolkit + +BUILD_DEPENDS+= makedepend:${PORTSDIR}/devel/makedepend \ + ${PYTHON_SITELIBDIR}/libxml2mod.so:${PORTSDIR}/textproc/py-libxml2 + +USE_PYTHON= yes +USE_GL= glu +USE_XORG= glproto x11 xext xxf86vm xdamage xfixes xi xmu dri2proto + +do-install: + cd ${WRKSRC}/src/glut/glx; ${GMAKE} install + ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 \ + ${WRKSRC}/include/GL/glutf90.h \ + ${PREFIX}/include/GL + +.include "${.CURDIR}/../../graphics/libGL/bsd.mesalib.mk" +.include <bsd.port.mk> diff --git a/graphics/libglut/distinfo b/graphics/libglut/distinfo new file mode 100644 index 0000000..cd2ea93 --- /dev/null +++ b/graphics/libglut/distinfo @@ -0,0 +1,4 @@ +SHA256 (MesaLib-7.10.1.tar.bz2) = 9f4c67b212d9ecb83819e76645cecbebafbbfd6cb76290d0c2ea9f5ad9507390 +SIZE (MesaLib-7.10.1.tar.bz2) = 5866217 +SHA256 (MesaGLUT-7.10.1.tar.bz2) = 2d82cbb7d0e453bca5e920e736f21a27e533258f65cfbe3f8d7508e5bdc5611e +SIZE (MesaGLUT-7.10.1.tar.bz2) = 200698 diff --git a/graphics/libglut/pkg-descr b/graphics/libglut/pkg-descr new file mode 100644 index 0000000..e5a5452 --- /dev/null +++ b/graphics/libglut/pkg-descr @@ -0,0 +1,5 @@ +libglut is a library provided with Mesa which provides an interface for creating +windows containing OpenGL contexts on a wide variety of platforms and handling +user interaction. + +WWW: http://www.mesa3d.org/ diff --git a/graphics/libglut/pkg-plist b/graphics/libglut/pkg-plist new file mode 100644 index 0000000..382dca6 --- /dev/null +++ b/graphics/libglut/pkg-plist @@ -0,0 +1,6 @@ +include/GL/glut.h +include/GL/glutf90.h +lib/libglut.so +lib/libglut.so.3 +libdata/pkgconfig/glut.pc +@dirrmtry include/GL |