This procedure is confirmed on several PowerPC and Intel Mac. Please feel free to add your knowledge.
  • Also succeeded on Intel Mac with Mac OS X 10.5.2 Leopard.
  • Also succeeded on Intel Mac with Mac OS X 10.6.4 Snow Leopard.

Install X11

from Mac OS X Install DVD

Install Xcode

from Mac OS X Install DVD or ADC
(easy install)

Preperation

% set path = ( /usr/local/bin ${path} )
% setenv MACOSX_DEPLOYMENT_TARGET 10.4
% setenv DYLD_LIBRARY_PATH /usr/local/lib

Install zlib

% curl -O http://www.zlib.net/zlib-1.2.5.tar.gz
% tar zxvf zlib-1.2.5.tar.gz
% setenv CFLAGS "-arch x86_64 -arch i386 -arch ppc"
% cd zlib-1.2.5; ./configure --shared && make && sudo make install
% cd ..

Install libjpeg

Mac OS X binary installer is available at http://ethan.tira-thompson.com/Mac%20OS%20X%20Port...

Install libpng

Mac OS X binary installer is available at http://ethan.tira-thompson.com/Mac%20OS%20X%20Port...

Install freetype2

Freetype2 is included in Mac OS X 10.6 Snow Leopard.

Download freetype-2.4.4.tar.bz2 from http://sourceforge.net/projects/freetype/files/

% tar jxvf freetype-2.4.4.tar.bz2
% pushd freetype-2.4.4
% ./configure
% ./configure CFLAGS="-arch x86_64 -arch i386 -arch ppc"
% make && sudo make install
% popd

Install libgd

% curl -O http://www.libgd.org/releases/gd-2.0.36.tar.gz
% gnutar -zxf gd-2.0.36.tar.gz
% pushd gd-2.0.36
% ln -s `which glibtool` ./libtool
% setenv CFLAGS "-isysroot /Developer/SDKs/MacOSX10.6.sdk -arch x86_64 -arch i386 -arch ppc -I/usr/local/include"
% setenv LDFLAGS "-Wl,-syslibroot,/Developer/SDKs/MacOSX10.6.sdk -arch x86_64 -arch i386 -arch ppc"
% ./configure CPPFLAGS=-I/usr/X11R6/include/freetype2 --prefix=/usr/local --mandir=/usr/local/man --bindir=/usr/local/bin --with-freetype=/usr/X11R6 --includedir=/usr/local/include  --disable-dependency-tracking
% make
% sudo make install
% popd

コメントをかく


「http://」を含む投稿は禁止されています。

利用規約をご確認のうえご記入下さい

どなたでも編集できます