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

Expat Build

version: 2.0.1
source: http://www.libexpat.org/

parallel: OK

Note: this is mainly to make sure we have one, and it's in a consistent location. In Mac OS X Tiger, libexpat is in X11. But on OS X Server, you don't normally install X11, yet libexpat is in the Apache 2 distribution on Server. Starting with Leopard, expat 1.5 is included in the system. Bleh. All a bit old.

Snow Leopard

in expat source dir:

export MACOSX_DEPLOYMENT_TARGET=10.6
./configure --mandir=/usr/local/share/man \
CFLAGS="-Os -arch i386 -arch x86_64"
make
sudo make install

Leopard

in expat source dir:

configure

export MACOSX_DEPLOYMENT_TARGET=10.5
./configure --mandir=/usr/local/share/man \
CFLAGS="-Os -arch i386 -arch x86_64 -arch ppc -arch ppc64"

edit expat_config.h

add at end:

#undef BYTEORDER
#ifdef __BIG_ENDIAN__
  #define BYTEORDER 4321
#else
  #define BYTEORDER 1234
#endif
#undef WORDS_BIGENDIAN
#ifdef __BIG_ENDIAN__
  #define WORDS_BIGENDIAN 1
#else
  #undef WORDS_BIGENDIAN
#endif

make & install

make
sudo make install

Tiger

configure

in expat source dir:

export MACOSX_DEPLOYMENT_TARGET=10.4
./configure --mandir=/usr/local/share/man \
CFLAGS="-Os -arch i386 -arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk"

edit expat_config.h

add at end:

#undef BYTEORDER
#ifdef __BIG_ENDIAN__
  #define BYTEORDER 4321
#else
  #define BYTEORDER 1234
#endif
#undef WORDS_BIGENDIAN
#ifdef __BIG_ENDIAN__
  #define WORDS_BIGENDIAN 1
#else
  #undef WORDS_BIGENDIAN
#endif

make & install

make
sudo make install

Panther

in expat source dir:

./configure --mandir=/usr/local/share/man
make
sudo make install
macosx/build/expat.txt · Last modified: 2010/07/27 16:29 by kyngchaos
Copyright © 2004-2010 William Kyngesburye Driven by DokuWiki Recent changes RSS feed