diff options
author | Ying-Chieh Liao <ijliao@FreeBSD.org> | 2001-10-17 18:27:14 +0000 |
---|---|---|
committer | Ying-Chieh Liao <ijliao@FreeBSD.org> | 2001-10-17 18:27:14 +0000 |
commit | 92283681b2590bce6943a3a61d400178d7f2d692 (patch) | |
tree | 7d66276fe21c2f26b3f69f0ed0f8d7502e491020 /devel/glui | |
parent | 1e62d386aa678f4698188adf0465348db1044e7b (diff) | |
download | ports-92283681b2590bce6943a3a61d400178d7f2d692.tar.gz ports-92283681b2590bce6943a3a61d400178d7f2d692.zip |
Notes
Diffstat (limited to 'devel/glui')
-rw-r--r-- | devel/glui/Makefile | 39 | ||||
-rw-r--r-- | devel/glui/distinfo | 1 | ||||
-rw-r--r-- | devel/glui/files/patch-aa | 32 | ||||
-rw-r--r-- | devel/glui/files/patch-ab | 12 | ||||
-rw-r--r-- | devel/glui/pkg-comment | 1 | ||||
-rw-r--r-- | devel/glui/pkg-descr | 10 | ||||
-rw-r--r-- | devel/glui/pkg-plist | 4 |
7 files changed, 99 insertions, 0 deletions
diff --git a/devel/glui/Makefile b/devel/glui/Makefile new file mode 100644 index 000000000000..4751c256a2ae --- /dev/null +++ b/devel/glui/Makefile @@ -0,0 +1,39 @@ +# New ports collection makefile for: glui +# Date created: 25 September 2001 +# Whom: mwest@uct.ac.za +# +# $FreeBSD$ +# + +PORTNAME= glui +PORTVERSION= 2.1 +CATEGORIES= devel graphics +MASTER_SITES= http://www.cs.unc.edu/~rademach/glui/ +DISTNAME= glui_v2_1_beta + +MAINTAINER= mwest@uct.ac.za + +USE_MESA= yes + +USE_GMAKE= yes +MAKEFILE= makefile +ALL_TARGET= # empty +USE_X_PREFIX= yes + +post-patch: + @${PERL} -pi -e 's:/unc/walk/lib/sgi_irix:${PREFIX}/lib:g' ${WRKSRC}/makefile + @${PERL} -pi -e 's:/unc/walk/include:${PREFIX}/include:g' ${WRKSRC}/makefile + @${PERL} -pi -e 's:^CFLAGS:#CFLAGS:g' ${WRKSRC}/makefile + @${PERL} -pi -e 's:^CC=:CC=gcc #:g' ${WRKSRC}/makefile + @${PERL} -pi -e 's:^libs =:libs=-pthread:g' ${WRKSRC}/makefile + @${MKDIR} ${WRKSRC}/lib ${WRKSRC}/bin + +do-install: + ${INSTALL_DATA} ${WRKSRC}/glui.h ${PREFIX}/include + ${INSTALL_DATA} ${WRKSRC}/lib/libglui.a ${PREFIX}/lib +.if !defined(NOPORTDOCS) + @${MKDIR} ${PREFIX}/share/doc/glui + ${INSTALL_DATA} ${WRKSRC}/glui_manual.pdf ${PREFIX}/share/doc/glui +.endif + +.include <bsd.port.mk> diff --git a/devel/glui/distinfo b/devel/glui/distinfo new file mode 100644 index 000000000000..61f64c83fe81 --- /dev/null +++ b/devel/glui/distinfo @@ -0,0 +1 @@ +MD5 (glui_v2_1_beta.tar.gz) = e8ab926ac22f3fbfe3c82f541b924496 diff --git a/devel/glui/files/patch-aa b/devel/glui/files/patch-aa new file mode 100644 index 000000000000..9d2727ae4900 --- /dev/null +++ b/devel/glui/files/patch-aa @@ -0,0 +1,32 @@ +--- algebra3.cpp.orig Fri Jul 9 22:38:46 1999 ++++ algebra3.cpp Tue Sep 25 21:50:30 2001 +@@ -505,8 +505,7 @@ + { return a*d; }
+
+ vec4 operator * (const mat4& a, const vec4& v) {
+- #define ROWCOL(i) a.v[i].n[0]*v.n[VX] + a.v[i].n[1]*v.n[VY] \
+- + a.v[i].n[2]*v.n[VZ] + a.v[i].n[3]*v.n[VW]
++ #define ROWCOL(i) a.v[i].n[0]*v.n[VX] + a.v[i].n[1]*v.n[VY] + a.v[i].n[2]*v.n[VZ] + a.v[i].n[3]*v.n[VW]
+ return vec4(ROWCOL(0), ROWCOL(1), ROWCOL(2), ROWCOL(3));
+ #undef ROWCOL
+ }
+@@ -680,8 +679,7 @@ + { return mat3(a.v[0] - b.v[0], a.v[1] - b.v[1], a.v[2] - b.v[2]); }
+
+ mat3 operator * (mat3& a, mat3& b) {
+- #define ROWCOL(i, j) \
+- a.v[i].n[0]*b.v[0][j] + a.v[i].n[1]*b.v[1][j] + a.v[i].n[2]*b.v[2][j]
++ #define ROWCOL(i, j) a.v[i].n[0]*b.v[0][j] + a.v[i].n[1]*b.v[1][j] + a.v[i].n[2]*b.v[2][j]
+ return mat3(vec3(ROWCOL(0,0), ROWCOL(0,1), ROWCOL(0,2)),
+ vec3(ROWCOL(1,0), ROWCOL(1,1), ROWCOL(1,2)),
+ vec3(ROWCOL(2,0), ROWCOL(2,1), ROWCOL(2,2)));
+@@ -895,8 +893,7 @@ + { return mat4(a.v[0] - b.v[0], a.v[1] - b.v[1], a.v[2] - b.v[2], a.v[3] - b.v[3]); }
+
+ mat4 operator * (mat4& a, mat4& b) {
+- #define ROWCOL(i, j) a.v[i].n[0]*b.v[0][j] + a.v[i].n[1]*b.v[1][j] + \
+- a.v[i].n[2]*b.v[2][j] + a.v[i].n[3]*b.v[3][j]
++ #define ROWCOL(i, j) a.v[i].n[0]*b.v[0][j] + a.v[i].n[1]*b.v[1][j] + a.v[i].n[2]*b.v[2][j] + a.v[i].n[3]*b.v[3][j]
+ return mat4(
+ vec4(ROWCOL(0,0), ROWCOL(0,1), ROWCOL(0,2), ROWCOL(0,3)),
+ vec4(ROWCOL(1,0), ROWCOL(1,1), ROWCOL(1,2), ROWCOL(1,3)),
diff --git a/devel/glui/files/patch-ab b/devel/glui/files/patch-ab new file mode 100644 index 000000000000..bd4eff66c02c --- /dev/null +++ b/devel/glui/files/patch-ab @@ -0,0 +1,12 @@ +--- stdinc.h.orig Fri Jul 9 22:38:46 1999 ++++ stdinc.h Tue Sep 25 21:50:32 2001 +@@ -99,8 +99,7 @@ +
+ /************ check if a 2D point lies within a 2D box ***************/
+ #ifndef PT_IN_BOX
+-#define PT_IN_BOX( x, y, lo_x, hi_x, lo_y, hi_y ) \
+-( IN_BOUNDS(x,lo_x,hi_x) AND IN_BOUNDS(y,lo_y,hi_y) )
++#define PT_IN_BOX( x, y, lo_x, hi_x, lo_y, hi_y ) ( IN_BOUNDS(x,lo_x,hi_x) AND IN_BOUNDS(y,lo_y,hi_y) )
+ #endif
+
+ /****** check if value lies on proper side of another value *****/
diff --git a/devel/glui/pkg-comment b/devel/glui/pkg-comment new file mode 100644 index 000000000000..30d68331ca6d --- /dev/null +++ b/devel/glui/pkg-comment @@ -0,0 +1 @@ +GLUT-based C++ user interface library diff --git a/devel/glui/pkg-descr b/devel/glui/pkg-descr new file mode 100644 index 000000000000..3069c7dae3fd --- /dev/null +++ b/devel/glui/pkg-descr @@ -0,0 +1,10 @@ +GLUI is a GLUT-based C++ user interface library which provides +controls such as buttons, checkboxes, radio buttons, and spinners to +OpenGL applications. It is window-system independent, relying on GLUT +to handle all system-dependent issues, such as window and mouse +management. + +WWW: http://www.cs.unc.edu/~rademach/glui/ + +-- +mwest@uct.ac.za diff --git a/devel/glui/pkg-plist b/devel/glui/pkg-plist new file mode 100644 index 000000000000..2d756aff34f7 --- /dev/null +++ b/devel/glui/pkg-plist @@ -0,0 +1,4 @@ +include/glui.h +lib/libglui.a +%%PORTDOCS%%share/doc/glui/glui_manual.pdf +%%PORTDOCS%%@dirrm share/doc/glui |