1
0
forked from ports/contrib

tk: 8.5.3 -> 8.5.4

This commit is contained in:
Danny Rawlins 2008-08-16 22:29:41 +10:00
parent c1c8765224
commit a92249db16
3 changed files with 5 additions and 34 deletions

View File

@ -1,2 +1 @@
d0d0bc79270702a016a1f51cd4bd02c9 tk-8.5.3-lastevent.patch
c7d2ef187d0f313850689cda20148ec3 tk8.5.3-src.tar.gz
a6aee7653566ec0b7c4b0f4c24a96f20 tk8.5.4-src.tar.gz

View File

@ -5,14 +5,12 @@
# Depends on: xorg-libxft tcl
name=tk
version=8.5.3
release=2
source=(http://dl.sourceforge.net/sourceforge/tcl/$name$version-src.tar.gz
$name-$version-lastevent.patch)
version=8.5.4
release=1
source=(http://dl.sourceforge.net/sourceforge/tcl/$name$version-src.tar.gz)
build() {
cd $name$version/unix
patch -d ../ -p 1 -i $SRC/$name-$version-lastevent.patch
./configure \
--prefix=/usr \
@ -39,6 +37,6 @@ build() {
ln -s wish${version%.*} $PKG/usr/bin/wish
ln -s /usr/lib/libtk${version%.*}.so $PKG/usr/lib/libtk.so
chmod -R u+w $PKG/usr/man
chmod -c -R u+w $PKG/usr/man
}

View File

@ -1,26 +0,0 @@
diff -pruN tk8.5.3.orig/generic/tk.h tk8.5.3/generic/tk.h
--- tk8.5.3.orig/generic/tk.h 2008-07-25 16:42:42.533614257 +1000
+++ tk8.5.3/generic/tk.h 2008-07-25 16:46:22.831615277 +1000
@@ -627,17 +627,15 @@ typedef struct Tk_GeomMgr {
*---------------------------------------------------------------------------
*/
-#define VirtualEvent (LASTEvent)
-#define ActivateNotify (LASTEvent + 1)
-#define DeactivateNotify (LASTEvent + 2)
-#define MouseWheelEvent (LASTEvent + 3)
-#define TK_LASTEVENT (LASTEvent + 4)
+#define VirtualEvent (MappingNotify + 1)
+#define ActivateNotify (MappingNotify + 2)
+#define DeactivateNotify (MappingNotify + 3)
+#define MouseWheelEvent (MappingNotify + 4)
+#define TK_LASTEVENT (MappingNotify + 5)
#define MouseWheelMask (1L << 28)
-
#define ActivateMask (1L << 29)
#define VirtualEventMask (1L << 30)
-#define TK_LASTEVENT (LASTEvent + 4)
/*
* A virtual event shares most of its fields with the XKeyEvent and