[115985] trunk/dports/graphics/wxWidgets-3.0

mojca at macports.org mojca at macports.org
Wed Jan 15 16:38:35 PST 2014


Revision: 115985
          https://trac.macports.org/changeset/115985
Author:   mojca at macports.org
Date:     2014-01-15 16:38:35 -0800 (Wed, 15 Jan 2014)
Log Message:
-----------
wxPerl-3.0: a new subport for a temporary workaround to support wxPerl (only compatible with wx 2.9.4)

Modified Paths:
--------------
    trunk/dports/graphics/wxWidgets-3.0/Portfile

Added Paths:
-----------
    trunk/dports/graphics/wxWidgets-3.0/files/patch-configure.294.diff
    trunk/dports/graphics/wxWidgets-3.0/files/patch-upstream-src-osx-cocoa-window.mm.294.diff
    trunk/dports/graphics/wxWidgets-3.0/files/wxPerl-3.0

Removed Paths:
-------------
    trunk/dports/graphics/wxWidgets-3.0/files/patch-configure295.diff

Modified: trunk/dports/graphics/wxWidgets-3.0/Portfile
===================================================================
--- trunk/dports/graphics/wxWidgets-3.0/Portfile	2014-01-16 00:08:24 UTC (rev 115984)
+++ trunk/dports/graphics/wxWidgets-3.0/Portfile	2014-01-16 00:38:35 UTC (rev 115985)
@@ -9,6 +9,8 @@
 name                wxWidgets-3.0
 subport             wxPython-3.0 {}
 subport             wxgtk-3.0 {}
+# wxPerl is just a temporary port with the last version that's compatible with wxPerl
+subport             wxPerl-3.0 {}
 version             3.0.0
 set wxpython_ver    3.0.0.0
 revision            5
@@ -21,6 +23,10 @@
 } elseif {${subport} eq "wxPython-3.0"} {
     wxWidgets.use   wxPython-3.0
     revision        0
+} elseif {${subport} eq "wxPerl-3.0"} {
+    wxWidgets.use   wxPerl-3.0
+    version         2.9.4
+    revision        0
 } elseif {${subport} eq "wxgtk-3.0"} {
     # with satisfactory Cocoa support there is no real need for GTK-based wxWidgets any more
     # wxgtk-3.0 is here mainly for testing purposes
@@ -125,6 +131,15 @@
     }
 
     livecheck.type          none
+} elseif {${subport} eq "wxPerl-3.0"} {
+    checksums               ${distname}-${version}${extract.suffix} \
+                            rmd160  62301f8ce39a8aa96e65318f9d1e947c9dc09c50 \
+                            sha256  6c530c35f40c3b1a5f9a4577c3ee8a9982e745081f23e3fbb9951d6d17514d12
+
+    patchfiles              patch-configure.294.diff \
+                            patch-upstream-src-osx-cocoa-window.mm.294.diff
+
+    livecheck.type          none
 } elseif {${subport} eq "wxgtk-3.0"} {
     # both patches could be added to wxWidgets-3.0, but they are not needed for Cocoa
     #

Copied: trunk/dports/graphics/wxWidgets-3.0/files/patch-configure.294.diff (from rev 115980, trunk/dports/graphics/wxWidgets-3.0/files/patch-configure295.diff)
===================================================================
--- trunk/dports/graphics/wxWidgets-3.0/files/patch-configure.294.diff	                        (rev 0)
+++ trunk/dports/graphics/wxWidgets-3.0/files/patch-configure.294.diff	2014-01-16 00:38:35 UTC (rev 115985)
@@ -0,0 +1,79 @@
+The first part is for GTK and makes sure that the port finds the right OpenGL library
+The second part makes sure that install_name_tool doesn't break library names and links (http://trac.wxwidgets.org/ticket/15452)
+--- configure.orig
++++ configure
+@@ -21750,48 +21750,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
+ 
+ 
+ 
+-SEARCH_INCLUDE="\
+-    /usr/local/include        \
+-    /usr/local/X11/include    \
+-    /usr/local/include/X11    \
+-    /usr/local/X11R7/include  \
+-    /usr/local/X11R6/include  \
+-    /usr/local/include/X11R7  \
+-    /usr/local/include/X11R6  \
+-                              \
+-    /usr/Motif-2.1/include    \
+-    /usr/Motif-1.2/include    \
+-    /usr/include/Motif1.2     \
+-                              \
+-    /usr/dt/include           \
+-    /usr/openwin/include      \
+-                              \
+-    /usr/include/Xm           \
+-                              \
+-    /usr/X11R7/include        \
+-    /usr/X11R6/include        \
+-    /usr/X11R6.4/include      \
+-                              \
+-    /usr/include/X11R7        \
+-    /usr/include/X11R6        \
+-                              \
+-    /usr/X11/include          \
+-    /usr/include/X11          \
+-                              \
+-    /usr/XFree86/include/X11  \
+-    /usr/pkg/include          \
+-                              \
+-    /usr/local/X1R5/include  \
+-    /usr/local/include/X11R5  \
+-    /usr/X11R5/include        \
+-    /usr/include/X11R5        \
+-                              \
+-    /usr/local/X11R4/include  \
+-    /usr/local/include/X11R4  \
+-    /usr/X11R4/include        \
+-    /usr/include/X11R4        \
+-                              \
+-    /usr/openwin/share/include"
++SEARCH_INCLUDE="@@PREFIX@@/include"
+ 
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libraries directories" >&5
+ $as_echo_n "checking for libraries directories... " >&6; }
+@@ -29066,24 +29025,6 @@ rm -f core conftest.err conftest.$ac_objext \
+       ;;
+ 
+       *-*-darwin* )
+-        install_name_tool=`which ${HOST_PREFIX}install_name_tool`
+-        if test "$install_name_tool" -a -x "$install_name_tool"; then
+-            DYLIB_RPATH_POSTLINK="${HOST_PREFIX}install_name_tool -id \$@ \$@"
+-            cat <<EOF >change-install-names
+-#!/bin/sh
+-libnames=\`cd \${2} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
+-for i in \${libnames} ; do
+-    ${HOST_PREFIX}install_name_tool -id \${3}/\${i} \${1}/\${i}
+-    for dep in \${libnames} ; do
+-        ${HOST_PREFIX}install_name_tool -change \${2}/\${dep} \${3}/\${dep} \${1}/\${i}
+-    done
+-done
+-EOF
+-            chmod +x change-install-names
+-            DYLIB_RPATH_INSTALL="\$(wx_top_builddir)/change-install-names \${DESTDIR}\${libdir} \$(wx_top_builddir)/lib \${libdir}"
+-        fi
+-
+-                                        HEADER_PAD_OPTION="-headerpad_max_install_names"
+       ;;
+ 
+       *-*-cygwin* | *-*-mingw32* )

Deleted: trunk/dports/graphics/wxWidgets-3.0/files/patch-configure295.diff
===================================================================
--- trunk/dports/graphics/wxWidgets-3.0/files/patch-configure295.diff	2014-01-16 00:08:24 UTC (rev 115984)
+++ trunk/dports/graphics/wxWidgets-3.0/files/patch-configure295.diff	2014-01-16 00:38:35 UTC (rev 115985)
@@ -1,79 +0,0 @@
-The first part is for GTK and makes sure that the port finds the right OpenGL library
-The second part makes sure that install_name_tool doesn't break library names and links (http://trac.wxwidgets.org/ticket/15452)
---- configure.orig
-+++ configure
-@@ -22038,48 +22038,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
- 
- 
- 
--SEARCH_INCLUDE="\
--    /usr/local/include        \
--    /usr/local/X11/include    \
--    /usr/local/include/X11    \
--    /usr/local/X11R7/include  \
--    /usr/local/X11R6/include  \
--    /usr/local/include/X11R7  \
--    /usr/local/include/X11R6  \
--                              \
--    /usr/Motif-2.1/include    \
--    /usr/Motif-1.2/include    \
--    /usr/include/Motif1.2     \
--                              \
--    /usr/dt/include           \
--    /usr/openwin/include      \
--                              \
--    /usr/include/Xm           \
--                              \
--    /usr/X11R7/include        \
--    /usr/X11R6/include        \
--    /usr/X11R6.4/include      \
--                              \
--    /usr/include/X11R7        \
--    /usr/include/X11R6        \
--                              \
--    /usr/X11/include          \
--    /usr/include/X11          \
--                              \
--    /usr/XFree86/include/X11  \
--    /usr/pkg/include          \
--                              \
--    /usr/local/X1R5/include  \
--    /usr/local/include/X11R5  \
--    /usr/X11R5/include        \
--    /usr/include/X11R5        \
--                              \
--    /usr/local/X11R4/include  \
--    /usr/local/include/X11R4  \
--    /usr/X11R4/include        \
--    /usr/include/X11R4        \
--                              \
--    /usr/openwin/share/include"
-+SEARCH_INCLUDE="@@PREFIX@@/include"
- 
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libraries directories" >&5
- $as_echo_n "checking for libraries directories... " >&6; }
-@@ -29402,24 +29361,6 @@ rm -f core conftest.err conftest.$ac_objext \
-       ;;
- 
-       *-*-darwin* )
--        install_name_tool=`which ${HOST_PREFIX}install_name_tool`
--        if test "$install_name_tool" -a -x "$install_name_tool"; then
--            DYLIB_RPATH_POSTLINK="${HOST_PREFIX}install_name_tool -id \$@ \$@"
--            cat <<EOF >change-install-names
--#!/bin/sh
--libnames=\`cd \${2} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
--for i in \${libnames} ; do
--    ${HOST_PREFIX}install_name_tool -id \${3}/\${i} \${1}/\${i}
--    for dep in \${libnames} ; do
--        ${HOST_PREFIX}install_name_tool -change \${2}/\${dep} \${3}/\${dep} \${1}/\${i}
--    done
--done
--EOF
--            chmod +x change-install-names
--            DYLIB_RPATH_INSTALL="\$(wx_top_builddir)/change-install-names \${DESTDIR}\${libdir} \$(wx_top_builddir)/lib \${libdir}"
--        fi
--
--                                        HEADER_PAD_OPTION="-headerpad_max_install_names"
-       ;;
- 
-       *-*-cygwin* | *-*-mingw32* )

Copied: trunk/dports/graphics/wxWidgets-3.0/files/patch-upstream-src-osx-cocoa-window.mm.294.diff (from rev 110234, trunk/dports/graphics/wxWidgets-3.0/files/patch-src-osx-cocoa-window.mm.diff)
===================================================================
--- trunk/dports/graphics/wxWidgets-3.0/files/patch-upstream-src-osx-cocoa-window.mm.294.diff	                        (rev 0)
+++ trunk/dports/graphics/wxWidgets-3.0/files/patch-upstream-src-osx-cocoa-window.mm.294.diff	2014-01-16 00:38:35 UTC (rev 115985)
@@ -0,0 +1,64 @@
+Upstream: http://trac.wxwidgets.org/changeset/72195
+--- src/osx/cocoa/window.mm (revision 72169)
++++ src/osx/cocoa/window.mm (revision 72195)
+@@ -456,4 +456,9 @@
+ - (CGFloat)deviceDeltaX;
+ - (CGFloat)deviceDeltaY;
++
++// 10.7+
++- (BOOL)hasPreciseScrollingDeltas;
++- (CGFloat)scrollingDeltaX;
++- (CGFloat)scrollingDeltaY;
+ @end
+ 
+@@ -610,21 +615,37 @@
+             wxevent.SetEventType( wxEVT_MOUSEWHEEL ) ;
+ 
+-            // see http://developer.apple.com/qa/qa2005/qa1453.html
+-            // for more details on why we have to look for the exact type
+-            
+-            const EventRef cEvent = (EventRef) [nsEvent eventRef];
+-            bool isMouseScrollEvent = false;
+-            if ( cEvent )
+-                isMouseScrollEvent = ::GetEventKind(cEvent) == kEventMouseScroll;
+-                
+-            if ( isMouseScrollEvent )
++            if ( UMAGetSystemVersion() >= 0x1070 )
+             {
+-                deltaX = [nsEvent deviceDeltaX];
+-                deltaY = [nsEvent deviceDeltaY];
++                if ( [nsEvent hasPreciseScrollingDeltas] )
++                {
++                    deltaX = [nsEvent scrollingDeltaX];
++                    deltaY = [nsEvent scrollingDeltaY];
++                }
++                else
++                {
++                    deltaX = [nsEvent scrollingDeltaX] * 10;
++                    deltaY = [nsEvent scrollingDeltaY] * 10;
++                }
+             }
+             else
+             {
+-                deltaX = ([nsEvent deltaX] * 10);
+-                deltaY = ([nsEvent deltaY] * 10);
++                const EventRef cEvent = (EventRef) [nsEvent eventRef];
++                // see http://developer.apple.com/qa/qa2005/qa1453.html
++                // for more details on why we have to look for the exact type
++
++                bool isMouseScrollEvent = false;
++                if ( cEvent )
++                    isMouseScrollEvent = ::GetEventKind(cEvent) == kEventMouseScroll;
++
++                if ( isMouseScrollEvent )
++                {
++                    deltaX = [nsEvent deviceDeltaX];
++                    deltaY = [nsEvent deviceDeltaY];
++                }
++                else
++                {
++                    deltaX = ([nsEvent deltaX] * 10);
++                    deltaY = ([nsEvent deltaY] * 10);
++                }
+             }
+             

Added: trunk/dports/graphics/wxWidgets-3.0/files/wxPerl-3.0
===================================================================
--- trunk/dports/graphics/wxWidgets-3.0/files/wxPerl-3.0	                        (rev 0)
+++ trunk/dports/graphics/wxWidgets-3.0/files/wxPerl-3.0	2014-01-16 00:38:35 UTC (rev 115985)
@@ -0,0 +1,8 @@
+${frameworks_dir}/wxWidgets.framework/Versions/wxPerl/2.9/bin/wx-config
+${frameworks_dir}/wxWidgets.framework/Versions/wxPerl/2.9/bin/wxrc-2.9
+${frameworks_dir}/wxWidgets.framework/Versions/wxPerl/2.9/share/aclocal/wxwin.m4
+${frameworks_dir}/wxWidgets.framework/Versions/wxPerl/2.9/share/bakefile/presets/wx.bkl
+${frameworks_dir}/wxWidgets.framework/Versions/wxPerl/2.9/share/bakefile/presets/wx_presets.py
+${frameworks_dir}/wxWidgets.framework/Versions/wxPerl/2.9/share/bakefile/presets/wx_unix.bkl
+${frameworks_dir}/wxWidgets.framework/Versions/wxPerl/2.9/share/bakefile/presets/wx_win32.bkl
+${frameworks_dir}/wxWidgets.framework/Versions/wxPerl/2.9/share/bakefile/presets/wx_xrc.bkl
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140115/9dbb4ba0/attachment-0001.html>


More information about the macports-changes mailing list