--- /usr/portage/media-video/ffmpeg/ffmpeg-0.4.9_p20050226-r5.ebuild 2005-06-13 00:35:54.000000000 +0200 +++ ffmpeg-0.4.9_p20050226-r5.ebuild 2005-07-11 22:02:39.000000000 +0200 @@ -18,7 +18,7 @@ SLOT="0" # ~alpha need to test aac useflag # ~ia64 ~arm ~mips ~hppa -KEYWORDS="~alpha amd64 ~ia64 ppc ppc64 sparc x86" +KEYWORDS="~alpha amd64 ~ia64 ppc ppc64 ~ppc-macos sparc x86" IUSE="aac altivec debug doc ieee1394 a52 encode imlib mmx ogg vorbis oss threads truetype v4l xvid dts network zlib sdl" # Theora support has switch but there's no oggtheora.c sourcefile... @@ -63,6 +63,10 @@ epatch ${FILESDIR}/${PN}-a52.patch epatch ${FILESDIR}/${PN}-missing_links.patch + if use ppc-macos; then + epatch ${FILESDIR}/${P}-osx.patch + fi + cd ${S} cp -R ${S_BASE} ${S_STATIC} mv ${S_BASE} ${S_SHARED} @@ -83,6 +87,10 @@ myconf="${myconf} --disable-mmx" fi + # This generates a (valid) complaint by portage that this use + # flag is not defined in IUSE. Something tells me this branch + # is never going to be taken, however, I don't dare to remove + # it. Fabian Groffen 2005-07-10 if use elibc_FreeBSD; then myconf="${myconf} --enable-memalign-hack" fi @@ -113,6 +121,15 @@ emake CC="$(tc-getCC)" || die "static failed" cd ${S_SHARED} + # On OSX to have shared libs to compile, we need to slightly + # change the configure script here... + if use ppc-macos; + then + sed -e "s/$SHFLAGS=\"-dynamiclib\"/\ +=\"-dynamiclib -Wl -single_module -undefined dynamic_lookup\"\n\ +MACOSX_DEPLOYMENT_TARGET=10.3/g" -i configure + fi + econf --enable-shared-pp --enable-shared --disable-static ${myconf} || die "Configure failed" emake CC="$(tc-getCC)" || die "shared failed" }