--- /usr/portage/www-client/chromium/chromium-25.0.1364.45.ebuild 2013-01-24 07:43:11.000000000 +0400 +++ chromium-25.0.1364.45.ebuild 2013-02-01 02:18:03.490082481 +0400 @@ -19,7 +19,7 @@ LICENSE="BSD" SLOT="0" KEYWORDS="~amd64 ~x86" -IUSE="bindist cups gnome gnome-keyring kerberos pulseaudio selinux system-ffmpeg tcmalloc" +IUSE="bindist cups gnome gnome-keyring kerberos neon pulseaudio selinux system-ffmpeg tcmalloc" RDEPEND="app-accessibility/speech-dispatcher app-arch/bzip2 @@ -273,10 +273,14 @@ -Duse_system_speex=1 -Duse_system_v8=1 -Duse_system_xdg_utils=1 - -Duse_system_yasm=1 -Duse_system_zlib=1 $(gyp_use system-ffmpeg use_system_ffmpeg)" + if use arm; then + myconf+=" -Duse_system_yasm=0 " + else + myconf+=" -Duse_system_yasm=1 " + fi # Optional dependencies. # TODO: linux_link_kerberos, bug #381289. myconf+=" @@ -331,10 +335,28 @@ myconf+=" -Dtarget_arch=ia32" elif [[ $myarch = arm ]] ; then # TODO: re-enable NaCl (NativeClient). - myconf+=" -Dtarget_arch=arm - -Darmv7=0 - -Darm_neon=0 - -Ddisable_nacl=1" + #ln -sf / "${S}"/arm-sysroot + myconf+=" -Dsysroot= " # Used only for cross-compiling + append-cflags "-I/usr/include" + is-flagq "-mfloat-abi=hard" && myconf+=" -Darm_float_abi=hard" + myconf+=" -Dtarget_arch=arm \ + -Ddisable_nacl=1" + if is-flagq "-march=armv7*"; then + myconf+=" -Darmv7=1 " + else + myconf+=" -Darmv7=0 " + fi + + if use neon; then + myconf+=" -Darm_neon=1 " + myconf+=" -Denable_svg=0 " # FTBS on arm without it + else + local fpu="$(get-flag -mfpu | cut -d= -f 2)" + fpu="${fpu:-vfpv3-d16}" + myconf+=" -Darm_neon=0 " + myconf+="-Darm_fpu=$fpu" + fi + filter-flags "-mfpu=*" else die "Failed to determine target arch, got '$myarch'." fi