diff options
author | Eric Anholt <anholt@FreeBSD.org> | 2003-11-07 20:34:04 +0000 |
---|---|---|
committer | Eric Anholt <anholt@FreeBSD.org> | 2003-11-07 20:34:04 +0000 |
commit | e1b61dd8bda35b8695d8bbb6d14f40f039e8c4ee (patch) | |
tree | f9f1167a22fd152aeb7e9da54ab4a3f85e252c79 /graphics/mesa-demos | |
parent | 0bed35ec42dd607cc9c89a127deb5b9a2808953b (diff) | |
download | ports-e1b61dd8bda35b8695d8bbb6d14f40f039e8c4ee.tar.gz ports-e1b61dd8bda35b8695d8bbb6d14f40f039e8c4ee.zip |
Add mesa-demos, a port of the GL demos distributed with Mesa.
Notes
Notes:
svn path=/head/; revision=93319
Diffstat (limited to 'graphics/mesa-demos')
-rw-r--r-- | graphics/mesa-demos/Makefile | 48 | ||||
-rw-r--r-- | graphics/mesa-demos/distinfo | 2 | ||||
-rw-r--r-- | graphics/mesa-demos/files/patch-demos-Makefile | 56 | ||||
-rw-r--r-- | graphics/mesa-demos/pkg-descr | 12 | ||||
-rw-r--r-- | graphics/mesa-demos/pkg-plist | 52 |
5 files changed, 170 insertions, 0 deletions
diff --git a/graphics/mesa-demos/Makefile b/graphics/mesa-demos/Makefile new file mode 100644 index 000000000000..5b32719c757b --- /dev/null +++ b/graphics/mesa-demos/Makefile @@ -0,0 +1,48 @@ +# New ports collection makefile for: mesa-demos +# Date created: Tue Feb 7 12:02:49 1995 +# Whom: anholt +# +# $FreeBSD$ +# + +PORTNAME= demos +PORTVERSION= 5.0.2 +CATEGORIES= graphics +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:S/$/:sf/} \ + ${MASTER_SITE_LOCAL:S/$/:local/} +MASTER_SITE_SUBDIR= mesa3d/:sf \ + anholt/:local +PKGNAMEPREFIX= mesa- +DISTFILES= MesaDemos-${PORTVERSION}${EXTRACT_SUFX}:sf \ + MesaLib-${PORTVERSION}${EXTRACT_SUFX}:sf + +MAINTAINER= anholt@FreeBSD.org +COMMENT= OpenGL demos distributed with Mesa + +LIB_DEPENDS= glut.3:${PORTSDIR}/graphics/libglut + +USE_BZIP2= yes +USE_REINPLACE= yes +MAKEFILE= Makefile.X11 +ALL_TARGET= targets +WRKSRC= ${WRKDIR}/Mesa-${PORTVERSION}/demos +SHAREDIR= ${PREFIX}/share/mesa-demos + +post-extract: + ${REINPLACE_CMD} -e 's|../images/|${SHAREDIR}/images/|g' \ + -e 's|geartrain.dat|${SHAREDIR}/data/geartrain.dat|g' \ + -e 's|terrain.dat|${SHAREDIR}/data/terrain.dat|g' \ + -e 's|isosurf.dat|${SHAREDIR}/data/isosurf.dat|g' \ + ${WRKSRC}/*.c + +post-install: + ${MKDIR} ${PREFIX}/share/mesa-demos/images + ${MKDIR} ${PREFIX}/share/mesa-demos/data + @for img in `ls ${WRKDIR}/Mesa-${PORTVERSION}/images/*.rgb`; do \ + ${INSTALL_DATA} $$img ${SHAREDIR}/images ; \ + done + @for dat in `ls ${WRKSRC}/*.dat`; do \ + ${INSTALL_DATA} $$dat ${SHAREDIR}/data ; \ + done + +.include <bsd.port.mk> diff --git a/graphics/mesa-demos/distinfo b/graphics/mesa-demos/distinfo new file mode 100644 index 000000000000..00da77771b44 --- /dev/null +++ b/graphics/mesa-demos/distinfo @@ -0,0 +1,2 @@ +MD5 (MesaDemos-5.0.2.tar.bz2) = a71afaeddd0b567423f88085576850d3 +MD5 (MesaLib-5.0.2.tar.bz2) = dc147598ebdff4312260a7f79b3c5c9c diff --git a/graphics/mesa-demos/files/patch-demos-Makefile b/graphics/mesa-demos/files/patch-demos-Makefile new file mode 100644 index 000000000000..52327335e027 --- /dev/null +++ b/graphics/mesa-demos/files/patch-demos-Makefile @@ -0,0 +1,56 @@ +--- Makefile.X11.orig Mon Apr 21 07:04:00 2003 ++++ Makefile.X11 Sun Sep 14 16:58:01 2003 +@@ -12,11 +12,12 @@ + INCDIR = ../include + LIBDIR = ../lib + +-GL_LIBS = -L$(LIBDIR) -lglut -lGLU -lGL $(APP_LIB_DEPS) ++GL_LIBS = -L$(X11BASE)/lib -lglut -lGLU -lGL $(APP_LIB_DEPS) + +-OSMESA_LIBS = -L$(LIBDIR) -lglut -lOSMesa -lGLU -lGL $(APP_LIB_DEPS) ++OSMESA_LIBS = -L$(X11BASE)/lib -lglut -lOSMesa -lGLU -lGL $(APP_LIB_DEPS) + + LIB_DEP = $(LIBDIR)/$(GL_LIB) $(LIBDIR)/$(GLU_LIB) $(LIBDIR)/$(GLUT_LIB) ++CFLAGS += -DGL_ARB_point_parameters=0 + + PROGS = bounce \ + clearspd \ +@@ -56,8 +57,8 @@ + texobj \ + trispd \ + tunnel \ +- tunnel2 \ +- winpos ++ tunnel2 ++# winpos + + + ##### RULES ##### +@@ -67,12 +68,12 @@ + + + # make executable from .c file: +-.c: $(LIB_DEP) +- $(CC) -I$(INCDIR) -I../util $(CFLAGS) $< $(GL_LIBS) -o $@ ++.c: ++ $(CC) -I$(X11BASE)/include -I../util $(CFLAGS) $< $(GL_LIBS) -o $@ + + # special case: need the -lOSMesa library: + osdemo: osdemo.c +- $(CC) -I$(INCDIR) $(CFLAGS) osdemo.c $(OSMESA_LIBS) -o $@ ++ $(CC) -I$(X11BASE)/include $(CFLAGS) osdemo.c $(OSMESA_LIBS) -o $@ + + + ##### TARGETS ##### +@@ -97,6 +98,11 @@ + readtex.h: + cp ../util/readtex.h . + ++install: ++ @for prog in $(PROGS) ; do \ ++ install $$prog ${PREFIX}/bin; \ ++ done ++ + + # execute all programs + exec: $(PROGS) diff --git a/graphics/mesa-demos/pkg-descr b/graphics/mesa-demos/pkg-descr new file mode 100644 index 000000000000..6c688e072076 --- /dev/null +++ b/graphics/mesa-demos/pkg-descr @@ -0,0 +1,12 @@ +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. + +paulo@isr.uc.pt + +WWW: http://www.mesa3d.org/ diff --git a/graphics/mesa-demos/pkg-plist b/graphics/mesa-demos/pkg-plist new file mode 100644 index 000000000000..9ec87107772b --- /dev/null +++ b/graphics/mesa-demos/pkg-plist @@ -0,0 +1,52 @@ +bin/bounce +bin/clearspd +bin/cubemap +bin/drawpix +bin/fire +bin/gamma +bin/gears +bin/geartrain +bin/glinfo +bin/gloss +bin/gltestperf +bin/glutfx +bin/ipers +bin/isosurf +bin/lodbias +bin/morph3d +bin/multiarb +bin/occlude +bin/osdemo +bin/paltex +bin/pixeltex +bin/pointblast +bin/ray +bin/readpix +bin/reflect +bin/renormal +bin/shadowtex +bin/spectex +bin/stex3d +bin/teapot +bin/terrain +bin/tessdemo +bin/texcyl +bin/texdown +bin/texenv +bin/texobj +bin/trispd +bin/tunnel +bin/tunnel2 +share/mesa-demos/data/geartrain.dat +share/mesa-demos/data/isosurf.dat +share/mesa-demos/data/terrain.dat +share/mesa-demos/images/bw.rgb +share/mesa-demos/images/girl.rgb +share/mesa-demos/images/reflect.rgb +share/mesa-demos/images/s128.rgb +share/mesa-demos/images/tile.rgb +share/mesa-demos/images/tree3.rgb +share/mesa-demos/images/wrs_logo.rgb +@dirrm share/mesa-demos/images +@dirrm share/mesa-demos/data +@dirrm share/mesa-demos |