OLD | NEW |
1 #!/bin/bash | 1 #!/bin/bash |
2 # Copyright (c) 2012 The Native Client Authors. All rights reserved. | 2 # Copyright (c) 2012 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-jsoncpp-0.5.0.sh | 7 # nacl-jsoncpp-0.5.0.sh |
8 # | 8 # |
9 # usage: nacl-jsoncpp-0.5.0.sh | 9 # usage: nacl-jsoncpp-0.5.0.sh |
10 # | 10 # |
(...skipping 27 matching lines...) Expand all Loading... |
38 ${NACLRANLIB} libjsoncpp.a | 38 ${NACLRANLIB} libjsoncpp.a |
39 set +x | 39 set +x |
40 } | 40 } |
41 | 41 |
42 | 42 |
43 CustomInstallStep() { | 43 CustomInstallStep() { |
44 Banner "Installing ${PACKAGE_NAME}" | 44 Banner "Installing ${PACKAGE_NAME}" |
45 export PACKAGE_DIR="${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME}" | 45 export PACKAGE_DIR="${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME}" |
46 | 46 |
47 set -x | 47 set -x |
48 cp ${PACKAGE_DIR}/libjsoncpp.a ${NACL_SDK_USR_LIB} | 48 cp ${PACKAGE_DIR}/libjsoncpp.a ${NACLPORTS_LIBDIR} |
49 cp -R ${PACKAGE_DIR}/include/json ${NACL_SDK_USR_INCLUDE} | 49 cp -R ${PACKAGE_DIR}/include/json ${NACLPORTS_INCLUDE} |
50 set +x | 50 set +x |
51 } | 51 } |
52 | 52 |
53 | 53 |
54 CustomPackageInstall() { | 54 CustomPackageInstall() { |
55 DefaultPreInstallStep | 55 DefaultPreInstallStep |
56 DefaultDownloadStep | 56 DefaultDownloadStep |
57 DefaultExtractStep | 57 DefaultExtractStep |
58 CustomBuildStep | 58 CustomBuildStep |
59 CustomInstallStep | 59 CustomInstallStep |
60 DefaultCleanUpStep | 60 DefaultCleanUpStep |
61 } | 61 } |
62 | 62 |
63 CustomPackageInstall | 63 CustomPackageInstall |
64 exit 0 | 64 exit 0 |
OLD | NEW |