From bbfb3e7fbfb93a9b36e53f4268288f0d2494436c Mon Sep 17 00:00:00 2001 From: WarheadsSE Date: Wed, 12 Sep 2012 21:54:45 -0400 Subject: [PATCH] community/v8 => 3.13.7, adding patch for VFP selection --- community/v8/PKGBUILD | 21 +++++++++++++++------ community/v8/v8.common.gypi.patch | 10 ++++++++++ 2 files changed, 25 insertions(+), 6 deletions(-) create mode 100644 community/v8/v8.common.gypi.patch diff --git a/community/v8/PKGBUILD b/community/v8/PKGBUILD index cf1ed6489..07e8835db 100644 --- a/community/v8/PKGBUILD +++ b/community/v8/PKGBUILD @@ -1,10 +1,11 @@ # $Id: PKGBUILD 62986 2012-01-30 06:42:07Z tdziedzic $ # Maintainer: Kaiting Chen # Contributor: tocer +# Contributor: WarheadsSE pkgname=v8 -pkgver=3.11.10 -pkgrel=3 +pkgver=3.13.7 +pkgrel=1 plugrel=1 pkgdesc='A fast and modern javascript engine' arch=('i686' 'x86_64') @@ -12,6 +13,8 @@ url='http://code.google.com/p/v8' license=('BSD') depends=('gcc-libs') makedepends=('subversion' 'python2') +source=('v8.common.gypi.patch') +md5sums=('f862f79a4379752d694c19816aa14514') build() { _source="http://v8.googlecode.com/svn/tags/${pkgver}" @@ -26,14 +29,17 @@ if [ "$CARCH" == "arm" ]; then CXXFLAGS="$CXXFLAGS -march=armv5t -mno-unaligned-access" ; GYPFLAGS="-Darmeabi=soft -Dv8_can_use_vfp_instructions=false -Dv8_can_use_unaligned_accesses=false -Darmv7=0" VFP3=off + VFP2=off fi if [ "$CARCH" == "armv6h" ]; then - GYPFLAGS="-Darmeabi=hard -Dv8_use_arm_eabi_hardfloat=true -Dv8_can_use_vfp_instructions=true -Darm7=0 -Darm_vfp=vfp" + GYPFLAGS="-Darmeabi=hard -Dv8_use_arm_eabi_hardfloat=true -Dv8_can_use_vfp_instructions=false -Dv8_can_use_vfp2_instructions=true -Darm7=0 -Darm_vfp=vfp" VFP3=off + VFP2=on fi if [ "$CARCH" == "armv7h" ]; then - GYPFLAGS="-Darmeabi=hard -Dv8_use_arm_eabi_hardfloat=true -Dv8_can_use_vfp_instructions=true -Darm7=1" + GYPFLAGS="-Darmeabi=hard -Dv8_use_arm_eabi_hardfloat=true -Dv8_can_use_vfp_instructions=true -Dv8_can_use_vfp2_instructions=true -Darm7=1" VFP3=on + VFP2=on fi export GYPFLAGS export CXXFLAGS ; @@ -45,11 +51,14 @@ fi fi PATH="${srcdir}:$PATH"; export PATH ; - + + # patch build/common.gypi for VFPX selection @ hard. + patch -p1 < ../v8.common.gypi.patch + # gets gyp make dependencies # make arm.release & arm.debug = just arm - make arm.release library=shared snapshot=off vfp3=$VFP3 + make arm.release library=shared snapshot=off vfp3=$VFP3 vfp=$VFP2 # eo build } diff --git a/community/v8/v8.common.gypi.patch b/community/v8/v8.common.gypi.patch new file mode 100644 index 000000000..e94d0d43e --- /dev/null +++ b/community/v8/v8.common.gypi.patch @@ -0,0 +1,10 @@ +--- a/build/common.gypi 2012-09-12 21:23:54.000000000 -0400 ++++ a/build/common.gypi 2012-09-12 21:35:57.000000000 -0400 +@@ -152,7 +152,6 @@ + [ 'v8_use_arm_eabi_hardfloat=="true"', { + 'defines': [ + 'USE_EABI_HARDFLOAT=1', +- 'CAN_USE_VFP_INSTRUCTIONS', + ], + 'target_conditions': [ + ['_toolset=="target"', {