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