It looks as if the macports patch does not apply to the version of libsdl sources which are downloaded: humber:Video williamg$ sudo port install mpeg4ip ---> Fetching automake ---> Attempting to fetch automake-1.10.tar.bz2 from http://ftp.gnu.org/gnu/automake ---> Verifying checksum(s) for automake ---> Extracting automake ---> Configuring automake ---> Building automake with target all ---> Staging automake into destroot ---> Installing automake 1.10_0 ---> Activating automake 1.10_0 ---> Cleaning automake ---> Fetching libsdl ---> Attempting to fetch SDL-1.2.13.tar.gz from http://www.libsdl.org/release/ ---> Verifying checksum(s) for libsdl ---> Extracting libsdl ---> Applying patches to libsdl Error: Target org.macports.patch returned: shell command " cd "/opt/ local/var/macports/build/ _opt_local_var_macports_sources_rsync .macports.org_release_ports_devel_libsdl/work/SDL-1.2.13" && patch -p0 < '/opt/local/var/macports/sources/rsync.macports.org/release/ports/ devel/libsdl/files/patch-AudioFilePlayer.h'" returned error 1 Command output: patching file src/cdrom/macosx/AudioFilePlayer.h Hunk #1 FAILED at 33. 1 out of 1 hunk FAILED -- saving rejects to file src/cdrom/macosx/ AudioFilePlayer.h.rej Error: The following dependencies failed to build: libsdl Error: Status 1 encountered during processing.