chromium: fix build, enable sysroot only when actually used.

This commit is contained in:
Christian Neukirchen 2016-04-05 13:20:17 +02:00
parent dbe0139ada
commit 16bafb3c94

View file

@ -13,7 +13,6 @@ checksum=41840925d3769555ce4ebd780ee0dc6789ffae27b1684006c9b543bcaa35bbd2
only_for_archs="i686 x86_64" only_for_archs="i686 x86_64"
lib32disabled=yes lib32disabled=yes
nodebug=yes nodebug=yes
broken=yes
hostmakedepends="yasm python pkg-config perl gperf bison ninja hwids icu-devel" hostmakedepends="yasm python pkg-config perl gperf bison ninja hwids icu-devel"
makedepends="libpng-devel gtk+-devel nss-devel pciutils-devel makedepends="libpng-devel gtk+-devel nss-devel pciutils-devel
@ -122,7 +121,7 @@ do_configure() {
-Duse_pulseaudio=1 -Duse_pulseaudio=1
-Duse_mojo=0 -Duse_mojo=0
-Duse_gconf=0 -Duse_gconf=0
-Duse_sysroot=1 -Duse_sysroot=0
-Denable_widevine=1 -Denable_widevine=1
-Denable_hangout_services_extension=1" -Denable_hangout_services_extension=1"
@ -182,9 +181,7 @@ do_configure() {
conf+=" -Darm_float_abi=hard" conf+=" -Darm_float_abi=hard"
if [ "$CROSS_BUILD" ]; then if [ "$CROSS_BUILD" ]; then
sed -i "s/arm-linux-gnueabihf-/${XBPS_CROSS_TRIPLET}-/g" build/common.gypi sed -i "s/arm-linux-gnueabihf-/${XBPS_CROSS_TRIPLET}-/g" build/common.gypi
conf+=" -Dsysroot=${XBPS_CROSS_BASE}" conf+=" -Duse_sysroot=1 -Dsysroot=${XBPS_CROSS_BASE}"
else
conf+=" -Dsysroot="
fi fi
;; ;;
esac esac