--- /usr/portage/media-libs/x264/x264-0.0.20111220.ebuild 2012-04-15 20:31:17.000000000 +0200 +++ /usr/local/portage/petr_p/media-libs/x264/x264-0.0.20111220.ebuild 2012-04-26 20:55:41.000000000 +0200 @@ -31,7 +31,7 @@ else KEYWORDS="alpha amd64 ~mips ~ppc ~ppc64 sparc x86 ~x86-fbsd" fi -IUSE="10bit custom-cflags debug +interlaced pic static-libs +threads" +IUSE="10bit custom-cflags debug +interlaced pic sse static-libs +threads" RDEPEND="" DEPEND="amd64? ( >=dev-lang/yasm-1 ) @@ -83,6 +83,7 @@ cflags="${cflags//$(get-flag O)/}" cflags="${cflags//-O? /$(get-flag O) }" cflags="${cflags//-g /}" + use sse || cflags="${cflags//-mfpmath=sse -msse/}" sed -i "s:^CFLAGS=.*:CFLAGS=${cflags//:/\\:}:" config.mak fi }