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 # nacl-libtommath-0.41.sh | 6 # nacl-libtommath-0.41.sh |
7 # | 7 # |
8 # usage: nacl-libtommath-0.41.sh | 8 # usage: nacl-libtommath-0.41.sh |
9 # | 9 # |
10 # this script downloads, patches, and builds libtommath for Native Client | 10 # this script downloads, patches, and builds libtommath for Native Client |
(...skipping 21 matching lines...) Expand all Loading... |
32 | 32 |
33 # To run tests, build with make -j4 test. Then using mtest from non-NaCl build | 33 # To run tests, build with make -j4 test. Then using mtest from non-NaCl build |
34 # run the following: | 34 # run the following: |
35 # mtest/mtest | sel_ldr test.nexe | 35 # mtest/mtest | sel_ldr test.nexe |
36 # make -j4 | 36 # make -j4 |
37 } | 37 } |
38 | 38 |
39 | 39 |
40 CustomInstallStep() { | 40 CustomInstallStep() { |
41 # copy libs and headers manually | 41 # copy libs and headers manually |
42 Banner "Installing ${PACKAGE_NAME} to ${NACL_SDK_USR}" | 42 Banner "Installing ${PACKAGE_NAME} to ${NACLPORTS_PREFIX}" |
43 ChangeDir ${NACL_SDK_USR_INCLUDE} | 43 ChangeDir ${NACLPORTS_INCLUDE} |
44 Remove ${PACKAGE_NAME} | 44 Remove ${PACKAGE_NAME} |
45 MakeDir ${PACKAGE_NAME} | 45 MakeDir ${PACKAGE_NAME} |
46 readonly THIS_PACKAGE_PATH=${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME} | 46 readonly THIS_PACKAGE_PATH=${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME} |
47 cp ${THIS_PACKAGE_PATH}/*.h ${PACKAGE_NAME}/ | 47 cp ${THIS_PACKAGE_PATH}/*.h ${PACKAGE_NAME}/ |
48 ChangeDir ${NACL_SDK_USR_LIB} | 48 ChangeDir ${NACLPORTS_LIBDIR} |
49 cp ${THIS_PACKAGE_PATH}/*.a . | 49 cp ${THIS_PACKAGE_PATH}/*.a . |
50 DefaultTouchStep | 50 DefaultTouchStep |
51 } | 51 } |
52 | 52 |
53 | 53 |
54 CustomPackageInstall() { | 54 CustomPackageInstall() { |
55 DefaultPreInstallStep | 55 DefaultPreInstallStep |
56 DefaultDownloadBzipStep | 56 DefaultDownloadBzipStep |
57 DefaultExtractBzipStep | 57 DefaultExtractBzipStep |
58 DefaultPatchStep | 58 DefaultPatchStep |
59 CustomBuildStep | 59 CustomBuildStep |
60 CustomInstallStep | 60 CustomInstallStep |
61 DefaultCleanUpStep | 61 DefaultCleanUpStep |
62 } | 62 } |
63 | 63 |
64 | 64 |
65 CustomPackageInstall | 65 CustomPackageInstall |
66 exit 0 | 66 exit 0 |
OLD | NEW |