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.
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
in expat source dir:
export MACOSX_DEPLOYMENT_TARGET=10.5 ./configure --mandir=/usr/local/share/man \ CFLAGS="-Os -arch i386 -arch x86_64 -arch ppc -arch ppc64"
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 sudo make install
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"
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 sudo make install
in expat source dir:
./configure --mandir=/usr/local/share/man make sudo make install