Building Python+GTK for Quartz

Jeff Singleton gvibe06 at gmail.com
Mon Jul 12 08:22:31 PDT 2010


Hey Chris

First run a port clean on tk...then apply the below patch on the
Portfile under x11/tk sources folder. Then re-run your port install tk
command.

==== Begin Tk De-Carbon Patch =====

--- Portfile.858.original       2010-01-15 15:20:24.000000000 +0900
+++ Portfile    2010-01-15 15:31:42.000000000 +0900
@@ -14,15 +14,16 @@
   Ousterhout, Addison-Wesley, ISBN 0-201-63337-X.

 platforms       darwin
-master_sites    sourceforge:tcl
+master_sites    http://cloud.github.com/downloads/das/tcltk\
+                sourceforge:tcl
 dist_subdir     tcltk
-distname        ${name}${version}-src
+distname        ${name}${version}-decarbon
 worksrcdir      ${name}${version}/unix
 checksums \
   ${distname}${extract.suffix} \
-                    md5     13bf90602e16fc530e05196431021dc6 \
-                    sha1    ea13b9d0bf611c7671c488bc0b5f3f739ad7e399 \
-                    rmd160  494a0d217ce6a81c10afb91b344c6110dd0986b0
+                    md5     3a69d58fc6fe4e0609d82ac7923e1ea6 \
+                    sha1    97e6726c9cdee02ae19f7c73505e0f7c9fdf232c \
+                    rmd160  5b26026007e5c6af29abcff492aac23fe028486e
# suck in Tcl as well so we can use it internally.
distfiles-append    tcl${version}-src${extract.suffix}
checksums-append \

==== End Tk De-Carbon Patch ====



On Sun, Jul 11, 2010 at 1:39 PM, Chris Van Bael
<chris.van.bael at gmail.com> wrote:
>
> Hi,
>
> I'm trying to build a native GTK to use with a python application on
> Snow Leopard (or Leopard, I have installed both).
> My problem is that Tk doesn't build; I get several error sin tkMacOSXButton.c.
>
> What did I do?
> - I added +no_x11 +quartz to /opt/local/etc/macports/variants.conf
> - I ran sudo port install py25-game
>
> However, I've found following tickets:
> https://trac.macports.org/ticket/20799
> https://trac.macports.org/ticket/25221 -> this one seems to be still open.
> https://trac.macports.org/ticket/22954 -> this one also seems to be open.
>
> My problem is that I'm quite new to MacPorts, and don't know what's
> done automatically and which patches I have to add manually (and how).
> Can anybody explain to me the exact steps I have to take to get a
> working Python/Pygame combination?
>
> Thanks,
>
> Chris
> _______________________________________________
> macports-users mailing list
> macports-users at lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo.cgi/macports-users

Your HTML signature here


More information about the macports-users mailing list