| OLD | NEW |
| 1 #!/bin/bash | 1 #!/bin/bash |
| 2 # Copyright (c) 2011 The Native Client Authors. All rights reserved. | 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 | 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 5 # | 5 # |
| 6 | 6 |
| 7 # nacl-boost_1_47_0.sh | 7 # nacl-boost_1_47_0.sh |
| 8 # | 8 # |
| 9 # usage: nacl-boost_1_47_0.sh | 9 # usage: nacl-boost_1_47_0.sh |
| 10 # | 10 # |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 ChangeDir ${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME} | 21 ChangeDir ${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME} |
| 22 echo "using gcc : 4.4.3 : ${NACLCXX} ;" > tools/build/v2/user-config.jam | 22 echo "using gcc : 4.4.3 : ${NACLCXX} ;" > tools/build/v2/user-config.jam |
| 23 } | 23 } |
| 24 | 24 |
| 25 CustomBuildStep() { | 25 CustomBuildStep() { |
| 26 ./bootstrap.sh | 26 ./bootstrap.sh |
| 27 | 27 |
| 28 # TODO(eugenis): build dynamic libraries, too | 28 # TODO(eugenis): build dynamic libraries, too |
| 29 if [ $NACL_GLIBC = "1" ] ; then | 29 if [ $NACL_GLIBC = "1" ] ; then |
| 30 ./bjam install \ | 30 ./bjam install \ |
| 31 --prefix=${NACL_SDK_USR} \ | 31 --prefix=${NACLPORTS_PREFIX} \ |
| 32 link=static \ | 32 link=static \ |
| 33 -d+2 \ | 33 -d+2 \ |
| 34 --without-python \ | 34 --without-python \ |
| 35 --without-signals \ | 35 --without-signals \ |
| 36 --without-mpi | 36 --without-mpi |
| 37 else | 37 else |
| 38 ./bjam install \ | 38 ./bjam install \ |
| 39 --prefix=${NACL_SDK_USR} \ | 39 --prefix=${NACLPORTS_PREFIX} \ |
| 40 link=static \ | 40 link=static \ |
| 41 -d+2 \ | 41 -d+2 \ |
| 42 --with-date_time \ | 42 --with-date_time \ |
| 43 --with-program_options | 43 --with-program_options |
| 44 fi | 44 fi |
| 45 } | 45 } |
| 46 | 46 |
| 47 CustomPackageInstall() { | 47 CustomPackageInstall() { |
| 48 DefaultPreInstallStep | 48 DefaultPreInstallStep |
| 49 DefaultDownloadBzipStep | 49 DefaultDownloadBzipStep |
| 50 DefaultExtractBzipStep | 50 DefaultExtractBzipStep |
| 51 DefaultPatchStep | 51 DefaultPatchStep |
| 52 CustomConfigureStep | 52 CustomConfigureStep |
| 53 CustomBuildStep | 53 CustomBuildStep |
| 54 # Installation is done in the build step. | 54 # Installation is done in the build step. |
| 55 DefaultCleanUpStep | 55 DefaultCleanUpStep |
| 56 } | 56 } |
| 57 | 57 |
| 58 | 58 |
| 59 CustomPackageInstall | 59 CustomPackageInstall |
| 60 exit 0 | 60 exit 0 |
| OLD | NEW |