Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Sep 2001 22:40:46 +0200
From:      Matthew West <mwest@uct.ac.za>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/30822: New port: devel/glui
Message-ID:  <E15lz0Y-0008Qq-00@casper2.cs.uct.ac.za>

next in thread | raw e-mail | index | archive | help

>Number:         30822
>Category:       ports
>Synopsis:       New port: devel/glui
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Sep 25 13:50:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Matthew West
>Release:        FreeBSD 4.3-STABLE i386
>Organization:
University of Cape Town
>Environment:

>Description:

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/

>How-To-Repeat:

>Fix:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	glui
#	glui/Makefile
#	glui/distinfo
#	glui/pkg-comment
#	glui/pkg-descr
#	glui/pkg-plist
#	glui/files
#	glui/files/patch-ab
#	glui/files/patch-aa
#
echo c - glui
mkdir -p glui > /dev/null 2>&1
echo x - glui/Makefile
sed 's/^X//' >glui/Makefile << 'END-of-glui/Makefile'
X# New ports collection makefile for:	glui
X# Date created:		25 September 2001
X# Whom:			mwest@uct.ac.za
X#
X# $FreeBSD: $
X#
X
XPORTNAME=	glui
XPORTVERSION=	2.1
XCATEGORIES=	devel graphics
XMASTER_SITES=	http://www.cs.unc.edu/~rademach/glui/
XDISTNAME=	glui_v2_1_beta
X
XMAINTAINER=	mwest@uct.ac.za
X
XUSE_MESA=	yes
X
XUSE_GMAKE=	yes
XMAKEFILE=	makefile
XALL_TARGET=	# empty
XUSE_X_PREFIX=	yes
X
Xpost-patch:
X	@${PERL} -pi -e 's:/unc/walk/lib/sgi_irix:${PREFIX}/lib:g' ${WRKSRC}/makefile
X	@${PERL} -pi -e 's:/unc/walk/include:${PREFIX}/include:g' ${WRKSRC}/makefile
X	@${PERL} -pi -e 's:^CFLAGS:#CFLAGS:g' ${WRKSRC}/makefile
X	@${PERL} -pi -e 's:^CC=:CC=gcc #:g' ${WRKSRC}/makefile
X	@${PERL} -pi -e 's:^libs =:libs=-pthread:g' ${WRKSRC}/makefile
X	@${MKDIR} ${WRKSRC}/lib ${WRKSRC}/bin
X
Xdo-install:
X	${INSTALL_DATA} ${WRKSRC}/glui.h ${PREFIX}/include
X	${INSTALL_DATA} ${WRKSRC}/lib/libglui.a ${PREFIX}/lib
X.if !defined(NOPORTDOCS)
X	@${MKDIR} ${PREFIX}/share/doc/glui
X	${INSTALL_DATA} ${WRKSRC}/glui_manual.pdf ${PREFIX}/share/doc/glui
X.endif
X
X.include <bsd.port.mk>
END-of-glui/Makefile
echo x - glui/distinfo
sed 's/^X//' >glui/distinfo << 'END-of-glui/distinfo'
XMD5 (glui_v2_1_beta.tar.gz) = e8ab926ac22f3fbfe3c82f541b924496
END-of-glui/distinfo
echo x - glui/pkg-comment
sed 's/^X//' >glui/pkg-comment << 'END-of-glui/pkg-comment'
XGLUT-based C++ user interface library
END-of-glui/pkg-comment
echo x - glui/pkg-descr
sed 's/^X//' >glui/pkg-descr << 'END-of-glui/pkg-descr'
XGLUI is a GLUT-based C++ user interface library which provides
Xcontrols such as buttons, checkboxes, radio buttons, and spinners to
XOpenGL applications.  It is window-system independent, relying on GLUT
Xto handle all system-dependent issues, such as window and mouse
Xmanagement.
X
XWWW: http://www.cs.unc.edu/~rademach/glui/
X
X--
Xmwest@uct.ac.za
END-of-glui/pkg-descr
echo x - glui/pkg-plist
sed 's/^X//' >glui/pkg-plist << 'END-of-glui/pkg-plist'
Xinclude/glui.h
Xlib/libglui.a
X%%PORTDOCS%%share/doc/glui/glui_manual.pdf
X%%PORTDOCS%%@dirrm share/doc/glui
END-of-glui/pkg-plist
echo c - glui/files
mkdir -p glui/files > /dev/null 2>&1
echo x - glui/files/patch-ab
sed 's/^X//' >glui/files/patch-ab << 'END-of-glui/files/patch-ab'
X--- stdinc.h.orig	Fri Jul  9 22:38:46 1999
X+++ stdinc.h	Tue Sep 25 21:50:32 2001
X@@ -99,8 +99,7 @@
X 
X /************ check if a 2D point lies within a 2D box ***************/
X #ifndef PT_IN_BOX
X-#define PT_IN_BOX( x, y, lo_x, hi_x, lo_y, hi_y ) \
X-( IN_BOUNDS(x,lo_x,hi_x) AND IN_BOUNDS(y,lo_y,hi_y) )
X+#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) )
X #endif
X 
X      /****** check if value lies on proper side of another value     *****/
END-of-glui/files/patch-ab
echo x - glui/files/patch-aa
sed 's/^X//' >glui/files/patch-aa << 'END-of-glui/files/patch-aa'
X--- algebra3.cpp.orig	Fri Jul  9 22:38:46 1999
X+++ algebra3.cpp	Tue Sep 25 21:50:30 2001
X@@ -505,8 +505,7 @@
X { return a*d; }
X 
X vec4 operator * (const mat4& a, const vec4& v) {
X-    #define ROWCOL(i) a.v[i].n[0]*v.n[VX] + a.v[i].n[1]*v.n[VY] \
X-    + a.v[i].n[2]*v.n[VZ] + a.v[i].n[3]*v.n[VW]
X+    #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]
X     return vec4(ROWCOL(0), ROWCOL(1), ROWCOL(2), ROWCOL(3));
X     #undef ROWCOL
X }
X@@ -680,8 +679,7 @@
X { return mat3(a.v[0] - b.v[0], a.v[1] - b.v[1], a.v[2] - b.v[2]); }
X 
X mat3 operator * (mat3& a, mat3& b) {
X-    #define ROWCOL(i, j) \
X-    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]
X+    #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]
X     return mat3(vec3(ROWCOL(0,0), ROWCOL(0,1), ROWCOL(0,2)),
X 		vec3(ROWCOL(1,0), ROWCOL(1,1), ROWCOL(1,2)),
X 		vec3(ROWCOL(2,0), ROWCOL(2,1), ROWCOL(2,2)));
X@@ -895,8 +893,7 @@
X { 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]); }
X 
X mat4 operator * (mat4& a, mat4& b) {
X-    #define ROWCOL(i, j) a.v[i].n[0]*b.v[0][j] + a.v[i].n[1]*b.v[1][j] + \
X-    a.v[i].n[2]*b.v[2][j] + a.v[i].n[3]*b.v[3][j]
X+    #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]
X     return mat4(
X     vec4(ROWCOL(0,0), ROWCOL(0,1), ROWCOL(0,2), ROWCOL(0,3)),
X     vec4(ROWCOL(1,0), ROWCOL(1,1), ROWCOL(1,2), ROWCOL(1,3)),
END-of-glui/files/patch-aa
exit

>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E15lz0Y-0008Qq-00>