w3m 0.5.2 for Leopard and MacPorts
とりあえずログしておこう。
ネタ元は http://kimuraw.txt-nifty.com/d/2007/10/leopard_note.html
まず boehmgc6.8 を取ってきて、こんな感じでビルド。
% ./configure CFLAGS="-D__DARWIN_UNIX03=0" --enable-threads=posix \ --enable-parallel-mark \ --enable-cplusplus \ --disable-shared \ --enable-static % make % DESTDIR=~/dest make install
で、あとはこれを static link してビルドするだけ。
でも、なるべく MacPorts の管理下に置きたいので、
% diff -u /opt/local/var/macports/sources/rsync.macports.org/release/ports/www/w3m/Portfile ~/Ports/www/w3m/Portfile
@@ -15,12 +15,14 @@ platforms darwin master_sites sourceforge checksums md5 ba06992d3207666ed1bf2dcf7c72bf58 -depends_lib lib:libgccpp.1:boehmgc +#depends_lib lib:libgccpp.1:boehmgc patchfiles gc_init.patch -configure.args --with-gc=${prefix} --with-ssl=${prefix} \ - --enable-keymap=w3m --enable-image=x11 \ +configure.args --with-gc=/Users/naoto/dest/usr/local \ + --with-ssl=${prefix} \ + --enable-migemo=/opt/local/bin/cmigemo \ # migemo がいる人 only + --enable-keymap=w3m --enable-image=no \ --with-termlib=curses --mandir=${prefix}/share/man # libwc will not find gc unless .. -configure.cflags-append "-I${prefix}/include/" +configure.cflags-append "-I/Users/naoto/dest/usr/local/include/"
ほとんど野良ビルドだけど、しばらくこれで我慢しよう