Ticket #29023: py26-gtk.diff
File py26-gtk.diff, 2.1 KB (added by afb@…, 14 years ago) |
---|
-
python/py26-gtk/Portfile
5 5 6 6 name py26-gtk 7 7 set my_name pygtk 8 version 2.22.0 9 revision 1 8 version 2.24.0 10 9 set branch [join [lrange [split ${version} .] 0 1] .] 11 10 categories python x11 12 11 platforms darwin … … 22 21 distname ${my_name}-${version} 23 22 use_bzip2 yes 24 23 25 checksums md5 e9bba9cd4cdaccb22a7991cc2f7c8373\26 sha1 6a180d0c9ed19179662f51decb150b2c98cc9362 \27 rmd160 98fb89d32f36c97cc51bf4eb1aa38699bf010c8e24 checksums md5 a1051d5794fd7696d3c1af6422d17a49 \ 25 sha1 344e6a32a5e8c7e0aaeb807e0636a163095231c2 \ 26 rmd160 33f597def646261483cbbf5491aeb27bf0d22ea6 28 27 29 28 depends_lib port:python26 \ 30 29 port:atk \ … … 35 34 36 35 set python_prefix ${frameworks_dir}/Python.framework/Versions/2.6 37 36 37 patchfiles patch-gtk-quartz.diff 38 use_autoreconf yes 39 autoreconf.post_args -I m4 40 38 41 configure.pre_args-delete --prefix=${prefix} 39 42 configure.pre_args-append --prefix=${python_prefix} 40 43 configure.args-append --includedir=${python_prefix}/include/python2.6 -
python/py26-gtk/files/patch-gtk-quartz.diff
1 --- configure.ac 2 +++ configure.ac 3 @@ -445,6 +445,11 @@ case $gdk_target in 4 ;; 5 esac 6 7 +if test "x$gdk_target" = "xquartz"; then 8 + AM_CONDITIONAL(USE_QUARTZ, true) 9 +else 10 + AM_CONDITIONAL(USE_QUARTZ, false) 11 +fi 12 13 dnl checks to see if numpy is installed. 14 AC_ARG_ENABLE(numpy, 15 --- gtk/Makefile.am 16 +++ gtk/Makefile.am 17 @@ -9,6 +9,11 @@ INCLUDES = \ 18 $(PYGOBJECT_CFLAGS) \ 19 -I$(srcdir)/gtk 20 21 +if USE_QUARTZ 22 +# same as in gtk+/gdk/quartz/Makefile.am 23 +INCLUDES += "-xobjective-c" 24 +endif 25 + 26 # defs files 27 defsdir = $(pkgdatadir)/$(PLATFORM_VERSION)/defs 28 defs_DATA =