| OLD | NEW |
| (Empty) | |
| 1 #!/bin/bash |
| 2 # Copyright (c) 2011 The Native Client Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. |
| 5 # |
| 6 |
| 7 # nacl-boost_1_47_0.sh |
| 8 # |
| 9 # usage: nacl-boost_1_47_0.sh |
| 10 # |
| 11 # this script downloads, patches, and builds boost for Native Client |
| 12 # |
| 13 |
| 14 readonly URL=http://commondatastorage.googleapis.com/nativeclient-mirror/nacl/bo
ost_1_47_0.tar.bz2 |
| 15 #readonly PATCH_FILE=nacl-SDL_net-1.2.7.patch |
| 16 readonly PACKAGE_NAME=boost_1_47_0 |
| 17 |
| 18 source ../../build_tools/common.sh |
| 19 |
| 20 CustomConfigureStep() { |
| 21 ChangeDir ${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME} |
| 22 echo "using gcc : 4.4.3 : ${NACLCXX} ;" > tools/build/v2/user-config.jam |
| 23 } |
| 24 |
| 25 CustomBuildStep() { |
| 26 ./bootstrap.sh |
| 27 |
| 28 # TODO(eugenis): build dynamic libraries, too |
| 29 if [ $NACL_GLIBC = "1" ] ; then |
| 30 ./bjam install \ |
| 31 --prefix=${NACL_SDK_USR} \ |
| 32 link=static \ |
| 33 -d+2 \ |
| 34 --without-python \ |
| 35 --without-signals \ |
| 36 --without-mpi |
| 37 else |
| 38 ./bjam install \ |
| 39 --prefix=${NACL_SDK_USR} \ |
| 40 -d+2 \ |
| 41 --with-date_time \ |
| 42 --with-program_options |
| 43 fi |
| 44 } |
| 45 |
| 46 CustomPackageInstall() { |
| 47 DefaultPreInstallStep |
| 48 DefaultDownloadBzipStep |
| 49 DefaultExtractBzipStep |
| 50 # No patch needed. |
| 51 CustomConfigureStep |
| 52 CustomBuildStep |
| 53 # Installation is done in the build step. |
| 54 DefaultCleanUpStep |
| 55 } |
| 56 |
| 57 |
| 58 CustomPackageInstall |
| 59 exit 0 |
| OLD | NEW |