| 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 23 matching lines...) Expand all Loading... |
| 34 ${NACLRANLIB} libjsoncpp.a | 34 ${NACLRANLIB} libjsoncpp.a |
| 35 set +x | 35 set +x |
| 36 } | 36 } |
| 37 | 37 |
| 38 | 38 |
| 39 CustomInstallStep() { | 39 CustomInstallStep() { |
| 40 Banner "Installing ${PACKAGE_NAME}" | 40 Banner "Installing ${PACKAGE_NAME}" |
| 41 export PACKAGE_DIR="${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME}" | 41 export PACKAGE_DIR="${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME}" |
| 42 | 42 |
| 43 set -x | 43 set -x |
| 44 cp ${PACKAGE_DIR}/libjsoncpp.a ${NACL_SDK_USR_LIB} | 44 cp ${PACKAGE_DIR}/libjsoncpp.a ${NACLPORTS_LIBDIR} |
| 45 cp -R ${PACKAGE_DIR}/include/json ${NACL_SDK_USR_INCLUDE} | 45 cp -R ${PACKAGE_DIR}/include/json ${NACLPORTS_INCLUDE} |
| 46 set +x | 46 set +x |
| 47 } | 47 } |
| 48 | 48 |
| 49 | 49 |
| 50 CustomPackageInstall() { | 50 CustomPackageInstall() { |
| 51 DefaultPreInstallStep | 51 DefaultPreInstallStep |
| 52 DefaultDownloadStep | 52 DefaultDownloadStep |
| 53 DefaultExtractStep | 53 DefaultExtractStep |
| 54 CustomBuildStep | 54 CustomBuildStep |
| 55 CustomInstallStep | 55 CustomInstallStep |
| 56 DefaultCleanUpStep | 56 DefaultCleanUpStep |
| 57 } | 57 } |
| 58 | 58 |
| 59 CustomPackageInstall | 59 CustomPackageInstall |
| 60 exit 0 | 60 exit 0 |
| OLD | NEW |