Date: Sat, 02 May 1998 15:19:27 +0200 (CEST) From: Malte Lance <malte@webmore.com> To: "Jason C. Wells" <jcwells@u.washington.edu> Cc: FreeBSD-questions <freebsd-questions@FreeBSD.ORG> Subject: RE: Is anyone porting GLUT? Message-ID: <XFMail.980502151927.malte@webmore.com> In-Reply-To: <Pine.BSF.3.96.980501231946.2556A-100000@s8-37-26.student.washington.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
This message is in MIME format --_=XFMail.1.2.p0.FreeBSD:980502151927:304=_ Content-Type: text/plain; charset=us-ascii On 02-May-98 Jason C. Wells wrote: > Is anyone working on porting GLUT? (OpenGL, Graphics Library Utility > Toolkit by SGI) If there are no active folks working on this, then I will > do it. Go for it. I have attached my 4 patches for a clean compilation (fix the "malloc.h"-include-statements and checking of the standard-XFree86-directories) After extracting glut-3.6.tar.gz and glut_data-3.6.tar.gz and applying the patches, just run "mkmkfiles.imake" and then "make" and have fun ;) It compiles without any warnings AND works fine with MesaGL. Malte. > > I want to learn OpenGL. The port is not available for FreeBSD. I think > this is a great chance to learn something. > > Thank you, | Try some of this. It will show you where you're at. > Jason Wells | http://www.freebsd.org/ > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message ---------------------------------- E-Mail: Malte Lance <malte@webmore.com> Date: 02-May-98 Time: 15:17:42 ---------------------------------- --_=XFMail.1.2.p0.FreeBSD:980502151927:304=_ Content-Disposition: attachment; filename="patch-ad" Content-Transfer-Encoding: none Content-Description: patch-ad Content-Type: text/plain; charset=us-ascii; name=patch-ad; SizeOnDisk=278 --- progs/examples/glpuzzle.c.orig Sun Oct 12 10:08:53 1997 +++ progs/examples/glpuzzle.c Sat May 2 14:26:44 1998 @@ -5,7 +5,6 @@ #include <stdlib.h> #include <string.h> #include <sys/types.h> -#include <malloc.h> #include <time.h> #include <math.h> #include <GL/glut.h> --_=XFMail.1.2.p0.FreeBSD:980502151927:304=_ Content-Disposition: attachment; filename="patch-ac" Content-Transfer-Encoding: none Content-Description: patch-ac Content-Type: text/plain; charset=us-ascii; name=patch-ac; SizeOnDisk=303 --- lib/gle/segment.c.orig Mon Nov 10 10:39:54 1997 +++ lib/gle/segment.c Sat May 2 14:24:19 1998 @@ -14,7 +14,6 @@ * consoldated from other modules, Linas Vepstas, March 1993 */ -#include <malloc.h> #include <stdlib.h> #include <math.h> #include <string.h> /* for the memcpy() subroutine */ --_=XFMail.1.2.p0.FreeBSD:980502151927:304=_ Content-Disposition: attachment; filename="patch-ab" Content-Transfer-Encoding: none Content-Description: patch-ab Content-Type: text/plain; charset=us-ascii; name=patch-ab; SizeOnDisk=246 --- lib/gle/round_cap.c.orig Mon Nov 3 10:34:47 1997 +++ lib/gle/round_cap.c Sat May 2 14:22:15 1998 @@ -12,7 +12,6 @@ */ -#include <malloc.h> #include <stdlib.h> #include <math.h> #include <string.h> /* for the memcpy() subroutine */ --_=XFMail.1.2.p0.FreeBSD:980502151927:304=_ Content-Disposition: attachment; filename="patch-aa" Content-Transfer-Encoding: none Content-Description: patch-aa Content-Type: text/plain; charset=us-ascii; name=patch-aa; SizeOnDisk=3159 --- mkmkfiles.imake.orig Fri Oct 3 22:50:37 1997 +++ mkmkfiles.imake Sat May 2 15:06:25 1998 @@ -11,37 +11,47 @@ # generated if your system is non-standard. The following tries its best # to generate the Makefiles for you... # -if ( -d /usr/lib/X11/config) then - if ( -x /usr/bin/X11/imake ) then - # Things are in standard places - /usr/bin/X11/imake -DUseInstalled -I/usr/lib/X11/config -DTOPDIR=. +if ( -d /usr/X11R6/lib/X11/config) then + if ( -x /usr/X11R6/bin/imake ) then + # Things are in standard places for XFree86 + /usr/X11R6/bin/imake -DUseInstalled -I/usr/X11R6/lib/X11/config -DTOPDIR=. else # Hope imake is on your path! - imake -DUseInstalled -I/usr/lib/X11/config -DTOPDIR=. + imake -DUseInstalled -I/usr/X11R6/lib/X11/config -DTOPDIR=. endif -else # Try non-standard places vendor locations - # Look for IBM's non-standard placement of imake - if ( -d /usr/lpp/X11/Xamples/config) then - if ( -x /usr/lpp/X11/Xamples/config/imake ) then - # Things are in non-standard IBM AIX places - /usr/lpp/X11/Xamples/config/imake -DUseInstalled -I/usr/lpp/X11/Xamples/c onfig -DTOPDIR=. +else + if ( -d /usr/lib/X11/config) then + if ( -x /usr/bin/X11/imake ) then + # Things are in standard places + /usr/bin/X11/imake -DUseInstalled -I/usr/lib/X11/config -DTOPDIR=. else # Hope imake is on your path! - imake -DUseInstalled -I/usr/lpp/X11/Xamples/config -DTOPDIR=. + imake -DUseInstalled -I/usr/lib/X11/config -DTOPDIR=. endif - else - # Look for Sun's non-standard placement of imake and xmkmf - if ( -x /usr/openwin/bin/xmkmf ) then - # Make sure that /usr/openwin/bin is at the front of your - # path so that you pick up /usr/openwin/bin/imake when - # you run /usr/openwin/bin/xmkmf instead of some other - # imake potentially mismatched with the /usr/openwin/lib/config - # config files. - set path = ( /usr/openwin/bin $path ) - /usr/openwin/bin/xmkmf + else # Try non-standard places vendor locations + # Look for IBM's non-standard placement of imake + if ( -d /usr/lpp/X11/Xamples/config) then + if ( -x /usr/lpp/X11/Xamples/config/imake ) then + # Things are in non-standard IBM AIX places + /usr/lpp/X11/Xamples/config/imake -DUseInstalled -I/usr/lpp/X11/Xamples /config -DTOPDIR=. + else + # Hope imake is on your path! + imake -DUseInstalled -I/usr/lpp/X11/Xamples/config -DTOPDIR=. + endif else - # Hope xmkmf is on your path! - xmkmf + # Look for Sun's non-standard placement of imake and xmkmf + if ( -x /usr/openwin/bin/xmkmf ) then + # Make sure that /usr/openwin/bin is at the front of your + # path so that you pick up /usr/openwin/bin/imake when + # you run /usr/openwin/bin/xmkmf instead of some other + # imake potentially mismatched with the /usr/openwin/lib/config + # config files. + set path = ( /usr/openwin/bin $path ) + /usr/openwin/bin/xmkmf + else + # Hope xmkmf is on your path! + xmkmf + endif endif endif endif --_=XFMail.1.2.p0.FreeBSD:980502151927:304=_-- End of MIME message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.980502151927.malte>