Menu

A Mac port?

I am now the proud owner of a Macbook. Dang, but Macs are expensive. Anyway, it might now be feasible to release a Mac port of nethack-i18n.

This is my "learn Mac programming" project.

What it's going to take:

  • A C++ compiler -- I've grabbed Xcode off the App Store.
  • Ruby -- there's a Ruby interpreter already present, but it's 1.8. MacRuby claims 1.9 compatibility and comes with Rake, under the name "macrake", but it does not seem to have any libraries. I'll probably need to compile from source.
  • One or more user interfaces. Some possibilities that come to mind are:
    • curses -- /usr/lib has curses but not cursesw; but the provided curses seems to have the wide character functions. A quick test ('(0x2500..0x257F).each {|x| print x.chr(Encoding::UTF_8)}; puts' in MacRuby) shows that the terminal supports UTF-8.
    • Ne.W.T. -- SDL claims to support Mac OS X. That ought to be enough.
    • Qt -- Qt 4 and 5 claim to support Mac OS X. That ought to be enough.
    • X11 -- if the breakage that afflicts the X11 interface on Xorg is fixed on Mac OS X, I'll be willing to call X11 supported on Mac, in spite of Athena Widgets being ugly.
    • A native Cocoa port? That may be a last resort. To my knowledge, no existing NetHack variant has a Cocoa interface.
    • The classic Mac interface? It's for Carbon, which Apple says is deprecated. I'm not sure if the current Xcode supports Carbon.
  • Probably quite a few things I haven't anticipated.

Edit: OK, the MacRuby libraries are under /Library/Frameworks/MacRuby.framework and the headers are also there. Maybe macrake will find them?

Edit: Xcode doesn't provide command line tools by default. The ones from https://developer.apple.com/xcode/ (search for "View Downloads") will probably prove more useful.

Posted by Ray Chason 2013-01-05

Log in to post a comment.