From owner-freebsd-questions Sat May 2 06:20:46 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id GAA19873 for freebsd-questions-outgoing; Sat, 2 May 1998 06:20:46 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from cyclone.degnet.baynet.de (cyclone.degnet.baynet.de [194.95.214.129]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id GAA19866 for ; Sat, 2 May 1998 06:20:42 -0700 (PDT) (envelope-from malte@webmore.com) Received: from neuron.webmore.com (unverified [194.95.214.186]) by cyclone.degnet.baynet.de (EMWAC SMTPRS 0.83) with SMTP id ; Sat, 02 May 1998 15:18:24 +0200 Received: from neuron.webmore.de (malte@webmore.com) by neuron.webmore.com (8.8.8/8.8.8) with ESMTP id PAA09476; Sat, 2 May 1998 15:19:27 +0200 (CEST) Message-ID: X-Mailer: XFMail 1.2 [p0] on FreeBSD X-Priority: 3 (Normal) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="_=XFMail.1.2.p0.FreeBSD:980502151927:304=_" In-Reply-To: Date: Sat, 02 May 1998 15:19:27 +0200 (CEST) Reply-To: malte@webmore.com From: Malte Lance To: "Jason C. Wells" Subject: RE: Is anyone porting GLUT? Cc: FreeBSD-questions Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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 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 #include #include -#include #include #include #include --_=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 #include #include #include /* 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 #include #include #include /* 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