version: 0.4.2
source: http://www.libming.org/
Ming is a simple build, though it doesn't have explicit options to locate dependent libraries – everything (except FreeType) is assumed to be in the default link path, /usr/lib and /usr/local/lib.
One patch needed to do a universal build. Find the strings "-DSWF_LITTLE_ENDIAN" and "-DSWF_BIG_ENDIAN", and delete them.
In the libming source:
export MACOSX_DEPLOYMENT_TARGET=10.5 ./configure --disable-dependency-tracking \ CFLAGS="-Os -arch ppc -arch i386 -arch ppc64 -arch x86_64"
Replace the WORDS_BIGENDIAN line at the end with:
#ifdef __BIG_ENDIAN__ #define SWF_BIG_ENDIAN #else #undef SWF_LITTLE_ENDIAN #endif
make sudo make install
In the libming source:
export MACOSX_DEPLOYMENT_TARGET=10.4 ./configure --disable-dependency-tracking \ CFLAGS="-Os -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk"
Replace the WORDS_BIGENDIAN line at the end with:
#ifdef __BIG_ENDIAN__ #define SWF_BIG_ENDIAN #else #undef SWF_LITTLE_ENDIAN #endif
make sudo make install
In the libming source:
./configure --disable-dependency-tracking \ CFLAGS="-Os" make sudo make install
To build Ming using my UnixImageIO and FreeType frameworks, add the following to CFLAGS in the instructions above (make sure they are within the quotes):
CFLAGS="-I/Library/Frameworks/UnixImageIO.framework/Headers"
and insert these lines right after the ./configure line (before CFLAGS):
--with-freetype-config=/Library/Frameworks/FreeType.framework/Programs/freetype-config \ LDFLAGS=-L/Library/Frameworks/UnixImageIO.framework/unix/lib \