aboutsummaryrefslogtreecommitdiff
path: root/graphics/py-opengl/files
diff options
context:
space:
mode:
authorSteve Price <steve@FreeBSD.org>1999-11-07 16:59:55 +0000
committerSteve Price <steve@FreeBSD.org>1999-11-07 16:59:55 +0000
commit91d41c6b521f05579c9f86faffbff3989a139d5a (patch)
tree63d50a51ee1ed224b39f7018cedb04e98b53e8c0 /graphics/py-opengl/files
parenta0bf9458a352d8e8d05128db71fea6edcf06f435 (diff)
downloadports-91d41c6b521f05579c9f86faffbff3989a139d5a.tar.gz
ports-91d41c6b521f05579c9f86faffbff3989a139d5a.zip
Re-import of PyOpenGL version 1.5.5.
An OpenGL interface for Python. PR: 13297 Submitted by: Randall Hopper <aa8vb@ipass.net>
Notes
Notes: svn path=/head/; revision=22953
Diffstat (limited to 'graphics/py-opengl/files')
-rw-r--r--graphics/py-opengl/files/Setup.add.togl22
-rw-r--r--graphics/py-opengl/files/Setup.base71
-rw-r--r--graphics/py-opengl/files/patch-aa11
3 files changed, 104 insertions, 0 deletions
diff --git a/graphics/py-opengl/files/Setup.add.togl b/graphics/py-opengl/files/Setup.add.togl
new file mode 100644
index 000000000000..515627ecf0c3
--- /dev/null
+++ b/graphics/py-opengl/files/Setup.add.togl
@@ -0,0 +1,22 @@
+
+#
+# TOGL 1.5b3
+# This is a Tk widget module that lets PyOpenGL draw into a Tkinter window.
+# If you don't want/have togl, comment out all of the following lines
+#
+togl \
+# This must match the name of the Togl source directory
+ -I./Togl-1.5 \
+# These must match the version you have installed
+ -ILOCALBASE/include/tcl8.0 -ILOCALBASE/include/tk8.0 \
+ -LLOCALBASE/lib -ltk80 -ltcl80 \
+# You'll definitely need these (or maybe edit them for MesaGL/MesaGLU:
+ -IX11BASE/include -LX11BASE/lib \
+ -lGLU -lGL \
+# Various combinations of these depending on your platform:
+ -lX11 -lXmu -lXext -lXt \
+# If you don't have this, something is really wrong!
+ -lm \
+# for Linux only?
+# -ldl \
+togl.c # putting this at the end for \ reasons
diff --git a/graphics/py-opengl/files/Setup.base b/graphics/py-opengl/files/Setup.base
new file mode 100644
index 000000000000..307813f557e8
--- /dev/null
+++ b/graphics/py-opengl/files/Setup.base
@@ -0,0 +1,71 @@
+*shared*
+
+###
+#
+# This is the Setup file for the PyOpenGL extensions.
+#
+# It should work with OpenGL 1.0, 1.1, or the corresponding versions
+# of Mesa.
+#
+
+# This module provides most of the interfaces to the standard OpenGL API
+_opengl _openglmodule.c -IX11BASE/include -LX11BASE/lib -lGL
+
+# Some convenience functions contributed by users.
+openglutil openglutil.c -IX11BASE/include -LX11BASE/lib -lGL
+
+#
+# If you have the Numeric extensions installed, make sure the
+# following two modules are uncommented. If you don't, make sure
+# they're commented out.
+#
+# These modules provide a few more features than the two modules
+# above, and significantly more speed in some circumstances
+#
+_opengl_num _opengl_nummodule.c -DNUMERIC \
+ -ILOCALBASE/include/python1.5/numerical \
+ -IX11BASE/include -LX11BASE/lib -lGL
+
+openglutil_num openglutil_num.c -DNUMERIC \
+ -ILOCALBASE/include/python1.5/numerical \
+ -IX11BASE/include -LX11BASE/lib -lGL
+
+# The GLU utility library -- part of most standard OpenGL setups
+_glu _glumodule.c \
+ -IX11BASE/include -LX11BASE/lib -lGLU -lGL -lXext -lX11
+
+# The GLUT toolkit interface
+_glut \
+# You'll definitely need this one:
+ -lglut \
+# You'll definitely need these (or maybe edit them for MesaGL/MesaGLU:
+ -IX11BASE/include -LX11BASE/lib \
+ -lGLU -lGL \
+# Various combinations of these depending on your platform:
+ -lXi -lXmu -lXext -lX11 \
+# on SGI IRIX 6, uncomment the following
+# -lcvt \
+_glutmodule.c # putting this at the end for \ reasons
+
+
+## #
+## # TOGL 1.5b3
+## # This is a Tk widget module that lets PyOpenGL draw into a Tkinter window.
+## # If you don't want/have togl, comment out all of the following lines
+## #
+## togl \
+## # This must match the name of the Togl source directory
+## -I./Togl-1.5 \
+## # These must match the version you have installed
+## -ILOCALBASE/include/tcl8.0 -ILOCALBASE/include/tk8.0 \
+## -LLOCALBASE/lib -ltk80 -ltcl80 \
+## # You'll definitely need these (or maybe edit them for MesaGL/MesaGLU:
+## -IX11BASE/include -LX11BASE/lib \
+## -lGLU -lGL \
+## # Various combinations of these depending on your platform:
+## -lX11 -lXmu -lXext -lXt \
+## # If you don't have this, something is really wrong!
+## -lm \
+## # for Linux only?
+## # -ldl \
+## togl.c # putting this at the end for \ reasons
diff --git a/graphics/py-opengl/files/patch-aa b/graphics/py-opengl/files/patch-aa
new file mode 100644
index 000000000000..c19a89843783
--- /dev/null
+++ b/graphics/py-opengl/files/patch-aa
@@ -0,0 +1,11 @@
+--- Togl-1.5/ORIG/togl.c Fri Aug 21 23:06:00 1998
++++ Togl-1.5/togl.c Wed Aug 18 18:41:24 1999
+@@ -118,7 +118,7 @@
+ #elif TK_MAJOR_VERSION==8 && TK_MINOR_VERSION==0 && TK_RELEASE_SERIAL==2
+ # include "tkInt8.0p2.h"
+ #else
+- Sorry, you will have to edit togl.c to include the right tkInt.h file
++# include "tkInt.h"
+ #endif
+ #elif defined(WIN32)
+ #if TK_MAJOR_VERSION<8