| 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 | 6 |
| 7 # nacl-tinyxml.sh | 7 # nacl-tinyxml.sh |
| 8 # | 8 # |
| 9 # usage: nacl-tinyxml.sh | 9 # usage: nacl-tinyxml.sh |
| 10 # | 10 # |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 export AR=${NACLAR} | 23 export AR=${NACLAR} |
| 24 export LD=${NACLLD} | 24 export LD=${NACLLD} |
| 25 export RANLIB=${NACLRANLIB} | 25 export RANLIB=${NACLRANLIB} |
| 26 make clean | 26 make clean |
| 27 make OUTPUT=libtinyxml.a | 27 make OUTPUT=libtinyxml.a |
| 28 } | 28 } |
| 29 | 29 |
| 30 | 30 |
| 31 CustomInstallStep() { | 31 CustomInstallStep() { |
| 32 # copy libs and headers manually | 32 # copy libs and headers manually |
| 33 Banner "Installing ${PACKAGE_NAME} to ${NACL_SDK_USR}" | 33 Banner "Installing ${PACKAGE_NAME} to ${NACLPORTS_PREFIX}" |
| 34 ChangeDir ${NACL_SDK_USR_INCLUDE} | 34 ChangeDir ${NACLPORTS_INCLUDE} |
| 35 Remove ${PACKAGE_NAME} | 35 Remove ${PACKAGE_NAME} |
| 36 MakeDir ${PACKAGE_NAME} | 36 MakeDir ${PACKAGE_NAME} |
| 37 readonly THIS_PACKAGE_PATH=${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME} | 37 readonly THIS_PACKAGE_PATH=${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME} |
| 38 cp ${THIS_PACKAGE_PATH}/*.h ${PACKAGE_NAME}/ | 38 cp ${THIS_PACKAGE_PATH}/*.h ${PACKAGE_NAME}/ |
| 39 ChangeDir ${NACL_SDK_USR_LIB} | 39 ChangeDir ${NACLPORTS_LIBDIR} |
| 40 cp ${THIS_PACKAGE_PATH}/*.a . | 40 cp ${THIS_PACKAGE_PATH}/*.a . |
| 41 DefaultTouchStep | 41 DefaultTouchStep |
| 42 } | 42 } |
| 43 | 43 |
| 44 | 44 |
| 45 CustomPackageInstall() { | 45 CustomPackageInstall() { |
| 46 DefaultPreInstallStep | 46 DefaultPreInstallStep |
| 47 DefaultDownloadStep | 47 DefaultDownloadStep |
| 48 DefaultExtractStep | 48 DefaultExtractStep |
| 49 DefaultPatchStep | 49 DefaultPatchStep |
| 50 CustomBuildStep | 50 CustomBuildStep |
| 51 CustomInstallStep | 51 CustomInstallStep |
| 52 DefaultCleanUpStep | 52 DefaultCleanUpStep |
| 53 } | 53 } |
| 54 | 54 |
| 55 | 55 |
| 56 CustomPackageInstall | 56 CustomPackageInstall |
| 57 exit 0 | 57 exit 0 |
| OLD | NEW |