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 # |
11 # this script downloads, patches, and builds boost for Native Client | 11 # this script downloads, patches, and builds boost for Native Client |
12 # | 12 # |
13 | 13 |
14 source pkg_info | 14 source pkg_info |
15 source ../../build_tools/common.sh | 15 source ../../build_tools/common.sh |
16 | 16 |
17 CustomConfigureStep() { | 17 CustomConfigureStep() { |
18 ChangeDir ${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME} | 18 ChangeDir ${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME} |
19 echo "using gcc : 4.4.3 : ${NACLCXX} ;" > tools/build/v2/user-config.jam | 19 echo "using gcc : 4.4.3 : ${NACLCXX} ;" > tools/build/v2/user-config.jam |
20 } | 20 } |
21 | 21 |
22 CustomBuildStep() { | 22 CustomBuildStep() { |
23 ./bootstrap.sh | 23 ./bootstrap.sh |
24 | 24 |
25 # TODO(eugenis): build dynamic libraries, too | 25 # TODO(eugenis): build dynamic libraries, too |
26 if [ $NACL_GLIBC = "1" ] ; then | 26 if [ $NACL_GLIBC = "1" ] ; then |
27 ./bjam install \ | 27 ./bjam install \ |
28 --prefix=${NACL_SDK_USR} \ | 28 --prefix=${NACLPORTS_PREFIX} \ |
29 link=static \ | 29 link=static \ |
30 -d+2 \ | 30 -d+2 \ |
31 --without-python \ | 31 --without-python \ |
32 --without-signals \ | 32 --without-signals \ |
33 --without-mpi | 33 --without-mpi |
34 else | 34 else |
35 ./bjam install \ | 35 ./bjam install \ |
36 --prefix=${NACL_SDK_USR} \ | 36 --prefix=${NACLPORTS_PREFIX} \ |
37 link=static \ | 37 link=static \ |
38 -d+2 \ | 38 -d+2 \ |
39 --with-date_time \ | 39 --with-date_time \ |
40 --with-program_options | 40 --with-program_options |
41 fi | 41 fi |
42 } | 42 } |
43 | 43 |
44 CustomPackageInstall() { | 44 CustomPackageInstall() { |
45 DefaultPreInstallStep | 45 DefaultPreInstallStep |
46 DefaultDownloadBzipStep | 46 DefaultDownloadBzipStep |
47 DefaultExtractBzipStep | 47 DefaultExtractBzipStep |
48 DefaultPatchStep | 48 DefaultPatchStep |
49 CustomConfigureStep | 49 CustomConfigureStep |
50 CustomBuildStep | 50 CustomBuildStep |
51 # Installation is done in the build step. | 51 # Installation is done in the build step. |
52 DefaultCleanUpStep | 52 DefaultCleanUpStep |
53 } | 53 } |
54 | 54 |
55 | 55 |
56 CustomPackageInstall | 56 CustomPackageInstall |
57 exit 0 | 57 exit 0 |
OLD | NEW |