diff options
author | anholt <anholt@FreeBSD.org> | 2003-12-13 01:06:05 +0000 |
---|---|---|
committer | anholt <anholt@FreeBSD.org> | 2003-12-13 01:06:05 +0000 |
commit | db215a075b1087a68df4c375ffb380324cfbca1a (patch) | |
tree | 2e472fcd2d07727d0bf355d53bea558f17ea0ccc /graphics/glean | |
parent | ef167bacfa05cc04ba578c476494f24c18b1ad55 (diff) | |
download | FreeBSD-ports-db215a075b1087a68df4c375ffb380324cfbca1a.zip FreeBSD-ports-db215a075b1087a68df4c375ffb380324cfbca1a.tar.gz |
Add new port of glean, a suite of OpenGL conformance tests. Very useful for
those of us who occasionally have to diagnose DRI driver issues.
Diffstat (limited to 'graphics/glean')
-rw-r--r-- | graphics/glean/Makefile | 32 | ||||
-rw-r--r-- | graphics/glean/distinfo | 1 | ||||
-rw-r--r-- | graphics/glean/files/patch-common.mak | 59 | ||||
-rw-r--r-- | graphics/glean/files/patch-ttexcombine.cpp | 10 | ||||
-rw-r--r-- | graphics/glean/files/patch-ttexenv.cpp | 41 | ||||
-rw-r--r-- | graphics/glean/pkg-descr | 8 | ||||
-rw-r--r-- | graphics/glean/pkg-plist | 1 |
7 files changed, 152 insertions, 0 deletions
diff --git a/graphics/glean/Makefile b/graphics/glean/Makefile new file mode 100644 index 0000000..fbdf5b8 --- /dev/null +++ b/graphics/glean/Makefile @@ -0,0 +1,32 @@ +# New ports collection makefile for: glean +# Date created: 12 Dec 2003 +# Whom: Eric Anholt <anholt@FreeBSD.org> +# +# $FreeBSD$ +# + +PORTNAME= glean +PORTVERSION= 1.0.20030925 +CATEGORIES= graphics +MASTER_SITES= ${MASTER_SITE_LOCAL} +MASTER_SITE_SUBDIR= anholt +DISTNAME= glean-20030925-snap +EXTRACT_SUFX= .tar.bz2 + +MAINTAINER= anholt@FreeBSD.org +COMMENT= Suite of OpenGL conformance tests + +LIB_DEPENDS= tiff.4:${PORTSDIR}/graphics/tiff + +WRKSRC= ${WRKDIR}/glean/src +USE_BZIP2= yes +USE_GL= yes +USE_GMAKE= yes +MAKE_ENV+= GLEAN_ROOT="${WRKDIR}/glean" \ + CXX="${CXX}" +ALL_TARGET= install + +do-install: + ${INSTALL_PROGRAM} ${WRKDIR}/glean/bin/glean ${PREFIX}/bin + +.include <bsd.port.mk> diff --git a/graphics/glean/distinfo b/graphics/glean/distinfo new file mode 100644 index 0000000..debd33d --- /dev/null +++ b/graphics/glean/distinfo @@ -0,0 +1 @@ +MD5 (glean-20030925-snap.tar.bz2) = 02be32985d02f72de42fbb016040ef2c diff --git a/graphics/glean/files/patch-common.mak b/graphics/glean/files/patch-common.mak new file mode 100644 index 0000000..c43083b --- /dev/null +++ b/graphics/glean/files/patch-common.mak @@ -0,0 +1,59 @@ +--- ../make/common.mak.orig Wed Nov 6 19:13:23 2002 ++++ ../make/common.mak Thu Sep 25 16:22:58 2003 +@@ -39,11 +39,11 @@ + # Locations of common commands: + ifeq ($(PLATFORM), Unix) + AR:=/usr/bin/ar +- CC:=/usr/bin/g++ ++ CC:=${CXX} + INSTALL:=/usr/bin/install -c + RANLIB:=/usr/bin/ranlib + RM:=/bin/rm +- SED:=/bin/sed ++ SED:=/usr/bin/sed + SHELL:=/bin/sh + MKDIR:=/bin/mkdir + endif # Unix +@@ -72,14 +72,14 @@ + ifeq ($(PLATFORM), Unix) + # Note: Do *not* list standard system #include directories here, + # because some compilers complain about them. +- XINC:=-I/usr/include/X11 +- XLIB:=/usr/X11R6/lib +- GLINC:=#-I/usr/include +- GLLIB:=/usr/lib +- GLUTINC:=#-I/usr/include +- GLUTLIB:=/usr/lib +- TIFFINC:=#-I/usr/include +- TIFFLIB:=/usr/lib ++ XINC:=-I${X11BASE}/include ++ XLIB:=${X11BASE}/lib ++ GLINC:=-I${X11BASE}/include ++ GLLIB:=${X11BASE}/lib ++ GLUTINC:=-I${X11BASE}/include ++ GLUTLIB:=${X11BASE}/lib ++ TIFFINC:=-I${LOCALBASE}/include ++ TIFFLIB:=${LOCALBASE}/lib + EXTRALIBS:= + endif # Unix + ifeq ($(PLATFORM), BeOS) +@@ -166,10 +162,7 @@ + $(TIFFINC) + OPT:= # Optimization options + ifeq ($(PLATFORM), Unix) +-_OPT=\ +- -march=pentiumpro \ +- -O -fno-unroll-all-loops \ +- $(OPT) ++_OPT= ${CFLAGS} + endif # Unix + ifeq ($(PLATFORM), BeOS) + _OPT=\ +@@ -183,7 +176,6 @@ + WARN:= # warning options + ifeq ($(PLATFORM), Unix) + _WARN=\ +- -Wall \ + -W \ + $(WARN) + endif # Unix diff --git a/graphics/glean/files/patch-ttexcombine.cpp b/graphics/glean/files/patch-ttexcombine.cpp new file mode 100644 index 0000000..86def89 --- /dev/null +++ b/graphics/glean/files/patch-ttexcombine.cpp @@ -0,0 +1,10 @@ +--- glean/ttexcombine.cpp.orig Thu Sep 25 16:17:52 2003 ++++ glean/ttexcombine.cpp Thu Sep 25 16:17:53 2003 +@@ -75,6 +75,7 @@ + #include "ttexcombine.h" + #include <stdio.h> + #include <cmath> ++#include <cassert> + + #define CLAMP(VAL, MIN, MAX) \ + ((VAL) < (MIN) ? (MIN) : ((VAL) > (MAX) ? (MAX) : (VAL))) diff --git a/graphics/glean/files/patch-ttexenv.cpp b/graphics/glean/files/patch-ttexenv.cpp new file mode 100644 index 0000000..46b7b58 --- /dev/null +++ b/graphics/glean/files/patch-ttexenv.cpp @@ -0,0 +1,41 @@ +Index: glean/ttexenv.cpp +=================================================================== +RCS file: /cvsroot/glean/glean/src/glean/ttexenv.cpp,v +retrieving revision 1.7 +retrieving revision 1.6 +diff -u -u -r1.7 -r1.6 +--- glean/ttexenv.cpp 24 Sep 2003 16:28:08 -0000 1.7 ++++ glean/ttexenv.cpp 31 May 2001 16:05:35 -0000 1.6 +@@ -614,8 +614,6 @@ + else + numModes = 4; + +- r.pass = true; +- + for (int fmt = 0; fmt < 6; fmt++) { + const GLenum format = FormatEnums[fmt]; + const char *formatName = FormatNames[fmt]; +@@ -632,7 +630,7 @@ + envName, formatName, + COLORS, colors, envColor, w)) { + r.pass = false; +- break; ++ return; + } + } + } +@@ -642,10 +640,14 @@ + envName, formatName, + COLORS, colors, colors[0], w)) { + r.pass = false; ++ return; + } + } + } + } ++ ++ r.pass = true; ++ + } // TexEnvTest::runOne + + diff --git a/graphics/glean/pkg-descr b/graphics/glean/pkg-descr new file mode 100644 index 0000000..35d5f9e --- /dev/null +++ b/graphics/glean/pkg-descr @@ -0,0 +1,8 @@ +glean is a suite of tools for evaluating the quality of an OpenGL implementation +and diagnosing any problems that are discovered. glean also has the ability to +compare two OpenGL implementations and highlight the differences between them. + +WWW: http://glean.sourceforge.net/ + +- Eric Anholt +anholt@FreeBSD.org diff --git a/graphics/glean/pkg-plist b/graphics/glean/pkg-plist new file mode 100644 index 0000000..036184d --- /dev/null +++ b/graphics/glean/pkg-plist @@ -0,0 +1 @@ +bin/glean |