| 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-lua-5.1.4.sh | 7 # nacl-lua-5.1.4.sh |
| 8 # | 8 # |
| 9 # usage: nacl-lua-5.1.4.sh | 9 # usage: nacl-lua-5.1.4.sh |
| 10 # | 10 # |
| 11 # this script downloads, patches, and builds lua for Native Client | 11 # this script downloads, patches, and builds lua for Native Client |
| 12 # | 12 # |
| 13 | 13 |
| 14 source pkg_info | 14 source pkg_info |
| 15 source ../../build_tools/common.sh | 15 source ../../build_tools/common.sh |
| 16 | 16 |
| 17 | 17 |
| 18 CustomBuildStep() { | 18 CustomBuildStep() { |
| 19 ChangeDir ${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME} | 19 ChangeDir ${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME} |
| 20 make "CC=${NACLCC}" "PLAT=generic" "INSTALL_TOP=${NACL_SDK_USR}" clean | 20 make "CC=${NACLCC}" "PLAT=generic" "INSTALL_TOP=${NACLPORTS_PREFIX}" clean |
| 21 PATH=${NACL_BIN_PATH}:${PATH} \ | 21 PATH=${NACL_BIN_PATH}:${PATH} \ |
| 22 make "CC=${NACLCC}" "PLAT=generic" "INSTALL_TOP=${NACL_SDK_USR}" "MYLIBS=-lnos
ys" | 22 make "CC=${NACLCC}" "PLAT=generic" "INSTALL_TOP=${NACLPORTS_PREFIX}" "MYLIBS=-
lnosys" |
| 23 # TODO: side-by-side install | 23 # TODO: side-by-side install |
| 24 make "CC=${NACLCC}" "PLAT=generic" "INSTALL_TOP=${NACL_SDK_USR}" install | 24 make "CC=${NACLCC}" "PLAT=generic" "INSTALL_TOP=${NACLPORTS_PREFIX}" install |
| 25 } | 25 } |
| 26 | 26 |
| 27 | 27 |
| 28 CustomPackageInstall() { | 28 CustomPackageInstall() { |
| 29 DefaultPreInstallStep | 29 DefaultPreInstallStep |
| 30 DefaultDownloadStep | 30 DefaultDownloadStep |
| 31 DefaultExtractStep | 31 DefaultExtractStep |
| 32 DefaultPatchStep | 32 DefaultPatchStep |
| 33 CustomBuildStep | 33 CustomBuildStep |
| 34 DefaultTouchStep | 34 DefaultTouchStep |
| 35 DefaultCleanUpStep | 35 DefaultCleanUpStep |
| 36 } | 36 } |
| 37 | 37 |
| 38 | 38 |
| 39 CustomPackageInstall | 39 CustomPackageInstall |
| 40 exit 0 | 40 exit 0 |
| OLD | NEW |