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 14 matching lines...) Expand all Loading... |
25 export CXX=${NACLCXX} | 25 export CXX=${NACLCXX} |
26 export AR=${NACLAR} | 26 export AR=${NACLAR} |
27 export LD=${NACLLD} | 27 export LD=${NACLLD} |
28 export RANLIB=${NACLRANLIB} | 28 export RANLIB=${NACLRANLIB} |
29 DefaultBuildStep | 29 DefaultBuildStep |
30 } | 30 } |
31 | 31 |
32 | 32 |
33 CustomInstallStep() { | 33 CustomInstallStep() { |
34 # copy libs and headers manually | 34 # copy libs and headers manually |
35 Banner "Installing ${PACKAGE_NAME} to ${NACL_SDK_USR}" | 35 Banner "Installing ${PACKAGE_NAME} to ${NACLPORTS_PREFIX}" |
36 ChangeDir ${NACL_SDK_USR_INCLUDE} | 36 ChangeDir ${NACLPORTS_INCLUDE} |
37 Remove ${PACKAGE_NAME} | 37 Remove ${PACKAGE_NAME} |
38 readonly THIS_PACKAGE_PATH=${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME} | 38 readonly THIS_PACKAGE_PATH=${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME} |
39 cp ${THIS_PACKAGE_PATH}/src/headers/*.h ./ | 39 cp ${THIS_PACKAGE_PATH}/src/headers/*.h ./ |
40 ChangeDir ${NACL_SDK_USR_LIB} | 40 ChangeDir ${NACLPORTS_LIBDIR} |
41 cp ${THIS_PACKAGE_PATH}/*.a . | 41 cp ${THIS_PACKAGE_PATH}/*.a . |
42 DefaultTouchStep | 42 DefaultTouchStep |
43 } | 43 } |
44 | 44 |
45 | 45 |
46 CustomPackageInstall() { | 46 CustomPackageInstall() { |
47 DefaultPreInstallStep | 47 DefaultPreInstallStep |
48 DefaultDownloadBzipStep | 48 DefaultDownloadBzipStep |
49 DefaultExtractBzipStep | 49 DefaultExtractBzipStep |
50 DefaultPatchStep | 50 DefaultPatchStep |
51 CustomBuildStep | 51 CustomBuildStep |
52 CustomInstallStep | 52 CustomInstallStep |
53 DefaultCleanUpStep | 53 DefaultCleanUpStep |
54 } | 54 } |
55 | 55 |
56 | 56 |
57 CustomPackageInstall | 57 CustomPackageInstall |
58 exit 0 | 58 exit 0 |
OLD | NEW |