version: 0.4.3
source: http://www.libming.org/
parallel: OK
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.
Another patch to support libpng 1.4. Edit src/blocks/pngdbl.c, change the line:
if(!png_check_sig(header, 8))
to:
if(png_sig_cmp(header, 0, 8))
In the libming source:
export MACOSX_DEPLOYMENT_TARGET=10.6 ./configure --disable-dependency-tracking \ CFLAGS="-Os -arch i386 -arch x86_64" \ LDFLAGS="-arch i386 -arch x86_64" make sudo make install
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" \ LDFLAGS="-arch ppc -arch i386 -arch ppc64 -arch x86_64"
add at end:
#undef SWF_BIG_ENDIAN #undef SWF_LITTLE_ENDIAN #ifdef __BIG_ENDIAN__ #define SWF_BIG_ENDIAN #else #define 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" \ LDFLAGS="-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk"
add at end:
#undef SWF_BIG_ENDIAN #undef SWF_LITTLE_ENDIAN #ifdef __BIG_ENDIAN__ #define SWF_BIG_ENDIAN #else #define 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 \