aboutsummaryrefslogtreecommitdiff
path: root/graphics/py-opengl/files
diff options
context:
space:
mode:
authorHye-Shik Chang <perky@FreeBSD.org>2003-08-20 10:32:03 +0000
committerHye-Shik Chang <perky@FreeBSD.org>2003-08-20 10:32:03 +0000
commit823930ec9df3f539f6e830a0fbdbba3d65b7df82 (patch)
treed4365b3027fcc68147cf2dd0822540a5e130d333 /graphics/py-opengl/files
parent213ae5575d00fd43fa36a25cf1aff39eac44b28b (diff)
downloadports-823930ec9df3f539f6e830a0fbdbba3d65b7df82.tar.gz
ports-823930ec9df3f539f6e830a0fbdbba3d65b7df82.zip
Fix build on tcl8.4 (which current py-tkinter is based on)
Notes
Notes: svn path=/head/; revision=87366
Diffstat (limited to 'graphics/py-opengl/files')
-rw-r--r--graphics/py-opengl/files/patch-ad6
-rw-r--r--graphics/py-opengl/files/patch-src::Togl-1.5::togl.c11
2 files changed, 14 insertions, 3 deletions
diff --git a/graphics/py-opengl/files/patch-ad b/graphics/py-opengl/files/patch-ad
index aaf341f715a6..b26948c4567a 100644
--- a/graphics/py-opengl/files/patch-ad
+++ b/graphics/py-opengl/files/patch-ad
@@ -20,9 +20,9 @@ $FreeBSD$
+ pass
+ def getvar(self, varname):
+ if varname == 'tk_version' or varname == 'tcl_version':
-+ return '8.3'
++ return '8.4'
+ if varname == 'tcl_library':
-+ return '%%LOCALBASE%%/lib/tcl8.3'
++ return '%%LOCALBASE%%/lib/tcl8.4'
+ if varname == 'tk_library':
-+ return '%%LOCALBASE%%/lib/tk8.3'
++ return '%%LOCALBASE%%/lib/tk8.4'
+ return ''
diff --git a/graphics/py-opengl/files/patch-src::Togl-1.5::togl.c b/graphics/py-opengl/files/patch-src::Togl-1.5::togl.c
new file mode 100644
index 000000000000..86dfe52dad05
--- /dev/null
+++ b/graphics/py-opengl/files/patch-src::Togl-1.5::togl.c
@@ -0,0 +1,11 @@
+--- src/Togl-1.5/togl.c.bak Tue May 15 07:55:19 2001
++++ src/Togl-1.5/togl.c Wed Aug 20 19:21:01 2003
+@@ -137,6 +137,8 @@
+ # include "tkInt8.0p2.h"
+ #elif TK_MAJOR_VERSION==8 && TK_MINOR_VERSION==3
+ # include "tkInt8.3.h"
++#elif TK_MAJOR_VERSION==8 && TK_MINOR_VERSION==4
++# include "tkInt8.4.h"
+ #else
+ #error Sorry, you will have to edit togl.c to include the right tkInt.h file
+ #endif