aboutsummaryrefslogtreecommitdiff
path: root/graphics/vvv
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2005-09-10 22:46:13 +0000
committerPav Lucistnik <pav@FreeBSD.org>2005-09-10 22:46:13 +0000
commitc16c4d1cf82c28e5a96ae6415e2e5e2b4193cc8a (patch)
tree03835aad5c0690393ab6616312c38bf1e757a433 /graphics/vvv
parente233c0991929228dc53603b8e672ed57bd76b957 (diff)
downloadports-c16c4d1cf82c28e5a96ae6415e2e5e2b4193cc8a.tar.gz
ports-c16c4d1cf82c28e5a96ae6415e2e5e2b4193cc8a.zip
Notes
Diffstat (limited to 'graphics/vvv')
-rw-r--r--graphics/vvv/Makefile45
-rw-r--r--graphics/vvv/distinfo2
-rw-r--r--graphics/vvv/files/patch-Makefile24
-rw-r--r--graphics/vvv/pkg-descr12
4 files changed, 83 insertions, 0 deletions
diff --git a/graphics/vvv/Makefile b/graphics/vvv/Makefile
new file mode 100644
index 000000000000..9714de9fc298
--- /dev/null
+++ b/graphics/vvv/Makefile
@@ -0,0 +1,45 @@
+# New ports collection makefile for: vvv
+# Date created: 10 Sep 2005
+# Whom: Igor Pokrovsky <ip@doom.homeunix.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= vvv
+PORTVERSION= 1.0
+CATEGORIES= graphics
+MASTER_SITES= http://www.inf.ufes.br/~thomas/graphics/vvv/
+DISTNAME= ${PORTNAME}_unix
+EXTRACT_SUFX= .tgz
+
+MAINTAINER= ip@doom.homeunix.org
+COMMENT= A tutorial tool for understanding viewing and projection in OpenGL
+
+BUILD_DEPENDS= ${X11BASE}/lib/libglui.a:${PORTSDIR}/devel/glui
+LIB_DEPENDS= glut.3:${PORTSDIR}/graphics/libglut
+
+USE_REINPLACE= yes
+USE_GMAKE= yes
+USE_GL= yes
+USE_X_PREFIX= yes
+MAKE_ENV= OS=unix X11BASE="${X11BASE}"
+ALL_TARGET= ${PORTNAME}
+
+WRKSRC= ${WRKDIR}/${PORTNAME}
+
+PLIST_FILES= bin/${PORTNAME}
+PORTDOCS= vvv.html
+
+post-patch:
+ @${REINPLACE_CMD} -i '' -e 's|g\([c+]\)\1|${CXX}|g' \
+ ${WRKSRC}/Makefile
+ @${RM} ${WRKSRC}/glui.h # we are using glui from the port
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
+.ifndef (NOPORTDOCS)
+ ${MKDIR} ${DOCSDIR}
+ ${INSTALL_MAN} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
+.endif
+
+.include <bsd.port.mk>
diff --git a/graphics/vvv/distinfo b/graphics/vvv/distinfo
new file mode 100644
index 000000000000..0f8a6d67019c
--- /dev/null
+++ b/graphics/vvv/distinfo
@@ -0,0 +1,2 @@
+MD5 (vvv_unix.tgz) = 03a0c16b23e3961ffa25afba6b05d0dd
+SIZE (vvv_unix.tgz) = 50075
diff --git a/graphics/vvv/files/patch-Makefile b/graphics/vvv/files/patch-Makefile
new file mode 100644
index 000000000000..3de8d1fc3b8e
--- /dev/null
+++ b/graphics/vvv/files/patch-Makefile
@@ -0,0 +1,24 @@
+--- Makefile.orig Thu Feb 3 22:03:08 2005
++++ Makefile Sat Sep 10 13:11:30 2005
+@@ -28,9 +28,10 @@
+
+ ifeq ($(OS),unix)
+ RM = rm
+- LFLAG1 = -L/usr/lib -L/usr/X11R6/lib
++ IFLAG1 = -I$(X11BASE)/include
++ LFLAG1 = -L$(X11BASE)/lib
+ # Where the GLUI library is:
+- LFLAG2 = -L/home/thomas/graphics/OpenGL/glui_v2_2/lib
++ LFLAG2 =
+ LIBS = -lglui -lglut -lGLU -lGL -lXmu -lXext -lX11 -lXi -lm
+ endif
+ ifeq ($(OS),Windows_NT)
+@@ -55,7 +56,7 @@
+
+ IFLAGGLUI = -I.
+
+-IFLAGS = $(IFLAGGLUI)
++IFLAGS = $(IFLAGGLUI) $(IFLAG1)
+
+
+
diff --git a/graphics/vvv/pkg-descr b/graphics/vvv/pkg-descr
new file mode 100644
index 000000000000..539aa8778fe9
--- /dev/null
+++ b/graphics/vvv/pkg-descr
@@ -0,0 +1,12 @@
+Viewing Volume Visualizer is a tutorial tool for understanding
+viewing and projection in OpenGL. It allows user to see effects
+of changing viewing and projection parameters on seeing a scene.
+Additionally it is possible to dump a C file which specifies viewing
+and projection of the current principal view in one routine. It could
+be incorporated into another program that wants to define a specific
+view and projection. VVV can therefore be used as a preview tool.
+
+WWW: http://www.inf.ufes.br/~thomas/graphics/vvv/vvv.html
+
+- Igor Pokrovsky
+ip@doom.homeunix.org