extconf of tcltklib for Aqua on MacOS X Tiger
- From: Hidetoshi NAGAI <nagai@xxxxxxxxxxxxxxxx>
- Date: Wed, 30 Nov 2005 15:01:47 +0900
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}"
--
Hidetoshi NAGAI (nagai@xxxxxxxxxxxxxxxx)
.
- Follow-Ups:
- Re: extconf of tcltklib for Aqua on MacOS X Tiger
- From: Hidetoshi NAGAI
- Re: extconf of tcltklib for Aqua on MacOS X Tiger
- Prev by Date: Re: Ruby and C network interaction
- Next by Date: Re: extconf of tcltklib for Aqua on MacOS X Tiger
- Previous by thread: [ANN] Rabbit 0.3.0
- Next by thread: Re: extconf of tcltklib for Aqua on MacOS X Tiger
- Index(es):
Relevant Pages
|