Kyng Chaos
“The beast is actively interested only in now, and, as it is always now and always shall be, there is an eternity of time for the accomplishment of objects.”
- the wisdom of Tarzan

GD Build

version: 2.0.35
source: libgd.org

Leopard

In the libgd source:

export MACOSX_DEPLOYMENT_TARGET=10.5
./configure --mandir=/usr/local/share/man --disable-dependency-tracking \
--without-x --without-xpm --without-fontconfig \
CFLAGS="-Os -arch ppc -arch i386 -arch ppc64 -arch x86_64"
make
sudo make install

If you want Xpm support, you must install X11 and remove --without-xpm from the configure line above. Be aware that it is very likely that X11's freetype will be found instead of yours.

Tiger

In the libgd source:

export MACOSX_DEPLOYMENT_TARGET=10.4
./configure --mandir=/usr/local/share/man --disable-dependency-tracking \
--without-x --without-xpm --without-fontconfig \
CFLAGS="-Os -arch ppc -arch i386"
make
sudo make install

If you are compiling on a PPC Mac, add "-isysroot /Developer/SDKs/MacOSX10.4u.sdk" to CFLAGS on the above configure line. ie:

CFLAGS="-Os -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk"

If you want Xpm support, you must install X11 and remove --without-xpm from the configure line above. Be aware that it is very likely that X11's freetype will be found instead of yours.

Panther

In the libgd source:

./configure --mandir=/usr/local/share/man --disable-dependency-tracking \
--without-x --without-xpm --without-fontconfig CFLAGS=-Os
make
sudo make install

If you want Xpm support, you must install X11 and remove --without-xpm from the configure line above. Be aware that it is very likely that X11's freetype will be found instead of yours.

With Frameworks

To use the UnixImageIO and FreeType frameworks instead of /usr/local libraries, insert these lines right after the ./configure line:

--with-png=/Library/Frameworks/UnixImageIO.framework/unix \
--with-freetype=/Library/Frameworks/FreeType.framework/unix \
--with-jpeg=/Library/Frameworks/UnixImageIO.framework/unix \
macosx/build/libgd.txt (1893 views) · Last modified: 2008/06/27 11:34 by kyngchaos
Copyright © 2004-2009 William Kyngesburye Driven by DokuWiki Recent changes RSS feed