Modified to compile on recent Xcode releases (armv7 only), and use Homebrew instead of Fink. Use makefile-armv6 if your Xcode/iOS SDK is capable of compiling for armv6 architecture.