| 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-libtomcrypt-1.17.sh | 6 # nacl-libtomcrypt-1.17.sh |
| 7 # | 7 # |
| 8 # usage: nacl-libtomcrypt-1.17.sh | 8 # usage: nacl-libtomcrypt-1.17.sh |
| 9 # | 9 # |
| 10 # this script downloads, patches, and builds libtomcrypt for Native Client | 10 # this script downloads, patches, and builds libtomcrypt for Native Client |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 export CXX=${NACLCXX} | 21 export CXX=${NACLCXX} |
| 22 export AR=${NACLAR} | 22 export AR=${NACLAR} |
| 23 export LD=${NACLLD} | 23 export LD=${NACLLD} |
| 24 export RANLIB=${NACLRANLIB} | 24 export RANLIB=${NACLRANLIB} |
| 25 DefaultBuildStep | 25 DefaultBuildStep |
| 26 } | 26 } |
| 27 | 27 |
| 28 | 28 |
| 29 CustomInstallStep() { | 29 CustomInstallStep() { |
| 30 # copy libs and headers manually | 30 # copy libs and headers manually |
| 31 Banner "Installing ${PACKAGE_NAME} to ${NACL_SDK_USR}" | 31 Banner "Installing ${PACKAGE_NAME} to ${NACLPORTS_PREFIX}" |
| 32 ChangeDir ${NACL_SDK_USR_INCLUDE} | 32 ChangeDir ${NACLPORTS_INCLUDE} |
| 33 Remove ${PACKAGE_NAME} | 33 Remove ${PACKAGE_NAME} |
| 34 readonly THIS_PACKAGE_PATH=${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME} | 34 readonly THIS_PACKAGE_PATH=${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME} |
| 35 cp ${THIS_PACKAGE_PATH}/src/headers/*.h ./ | 35 cp ${THIS_PACKAGE_PATH}/src/headers/*.h ./ |
| 36 ChangeDir ${NACL_SDK_USR_LIB} | 36 ChangeDir ${NACLPORTS_LIBDIR} |
| 37 cp ${THIS_PACKAGE_PATH}/*.a . | 37 cp ${THIS_PACKAGE_PATH}/*.a . |
| 38 DefaultTouchStep | 38 DefaultTouchStep |
| 39 } | 39 } |
| 40 | 40 |
| 41 | 41 |
| 42 CustomPackageInstall() { | 42 CustomPackageInstall() { |
| 43 DefaultPreInstallStep | 43 DefaultPreInstallStep |
| 44 DefaultDownloadBzipStep | 44 DefaultDownloadBzipStep |
| 45 DefaultExtractBzipStep | 45 DefaultExtractBzipStep |
| 46 DefaultPatchStep | 46 DefaultPatchStep |
| 47 CustomBuildStep | 47 CustomBuildStep |
| 48 CustomInstallStep | 48 CustomInstallStep |
| 49 DefaultCleanUpStep | 49 DefaultCleanUpStep |
| 50 } | 50 } |
| 51 | 51 |
| 52 | 52 |
| 53 CustomPackageInstall | 53 CustomPackageInstall |
| 54 exit 0 | 54 exit 0 |
| OLD | NEW |