extconf of tcltklib for Aqua on MacOS X Tiger

H

Hidetoshi NAGAI

Hi,

I don't know about development on MacOS X Tiger.
To make tcltklib for Aqua except X11, is the following patch to
'ext/tcltklib/extconf.rb' ( or 'ext/tk/extconf.rb') required?
Or is it nonsense?
If it is not nonsense and you can try it, please try it with
"--enable-macosx-aqua" configure option and teach me the result.

Index: extconf.rb
===================================================================
RCS file: /var/cvs/src/ruby/ext/tk/extconf.rb,v
retrieving revision 1.2.8.4
diff -u -r1.2.8.4 extconf.rb
--- extconf.rb 2 Nov 2005 11:28:40 -0000 1.2.8.4
+++ extconf.rb 30 Nov 2005 05:45:16 -0000
@@ -32,6 +32,14 @@

tcltk_framework = find_framework(tcl_framework_header, tk_framework_header)

+def use_macosx_aqua
+ if /darwin/ =~ RUBY_PLATFORM
+ enable_config("macosx-aqua", true)
+ else
+ false
+ end
+end
+
unless is_win32
have_library("nsl", "t_open")
have_library("socket", "socket")
@@ -280,6 +288,11 @@
$CPPFLAGS += ' -DUSE_TCL_STUBS -DUSE_TK_STUBS' if stubs
$CPPFLAGS += ' -D_WIN32' if /cygwin/ =~ RUBY_PLATFORM

+ if use_macosx_aqua
+ $CPPFLAGS += ' -DMAC_OSX_TK=1'
+ $LDFLAGS += ' -framework CoreFoundation -framework Carbon'
+ end
+
if tcltk_framework
if tcl_framework_header
$CPPFLAGS += " -I#{tcl_framework_header}"
 
H

Hidetoshi NAGAI

From: Hidetoshi NAGAI <[email protected]>
Subject: extconf of tcltklib for Aqua on MacOS X Tiger
Date: Wed, 30 Nov 2005 15:01:47 +0900
Message-ID: said:
If it is not nonsense and you can try it, please try it with
"--enable-macosx-aqua" configure option and teach me the result.

Preferably, please try on Ruby1.8.4-preview.
If it is valid, I want to adopt it for the next release of Ruby.
 
H

Hidetoshi NAGAI

From: Hidetoshi NAGAI <[email protected]>
Subject: Re: extconf of tcltklib for Aqua on MacOS X Tiger
Date: Wed, 30 Nov 2005 15:08:18 +0900
Message-ID: said:
Preferably, please try on Ruby1.8.4-preview.
If it is valid, I want to adopt it for the next release of Ruby.

1.8.4-preview2 is available. So please try on 1.8.4-preview2.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,767
Messages
2,569,572
Members
45,046
Latest member
Gavizuho

Latest Threads

Top