| 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 readonly URL=http://commondatastorage.googleapis.com/nativeclient-mirror/nacl/lu
a-5.1.4.tar.gz | 14 readonly URL=http://commondatastorage.googleapis.com/nativeclient-mirror/nacl/lu
a-5.1.4.tar.gz |
| 15 #readonly URL=http://www.lua.org/ftp/lua-5.1.4.tar.gz | 15 #readonly URL=http://www.lua.org/ftp/lua-5.1.4.tar.gz |
| 16 readonly PATCH_FILE=nacl-lua-5.1.4.patch | 16 readonly PATCH_FILE=nacl-lua-5.1.4.patch |
| 17 readonly PACKAGE_NAME=lua-5.1.4 | 17 readonly PACKAGE_NAME=lua-5.1.4 |
| 18 | 18 |
| 19 source ../../build_tools/common.sh | 19 source ../../build_tools/common.sh |
| 20 | 20 |
| 21 | 21 |
| 22 CustomBuildStep() { | 22 CustomBuildStep() { |
| 23 ChangeDir ${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME} | 23 ChangeDir ${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME} |
| 24 make "CC=${NACLCC}" "PLAT=generic" "INSTALL_TOP=${NACL_SDK_USR}" clean | 24 make "CC=${NACLCC}" "PLAT=generic" "INSTALL_TOP=${NACLPORTS_PREFIX}" clean |
| 25 PATH=${NACL_BIN_PATH}:${PATH} \ | 25 PATH=${NACL_BIN_PATH}:${PATH} \ |
| 26 make "CC=${NACLCC}" "PLAT=generic" "INSTALL_TOP=${NACL_SDK_USR}" "MYLIBS=-lnos
ys" | 26 make "CC=${NACLCC}" "PLAT=generic" "INSTALL_TOP=${NACLPORTS_PREFIX}" "MYLIBS=-
lnosys" |
| 27 # TODO: side-by-side install | 27 # TODO: side-by-side install |
| 28 make "CC=${NACLCC}" "PLAT=generic" "INSTALL_TOP=${NACL_SDK_USR}" install | 28 make "CC=${NACLCC}" "PLAT=generic" "INSTALL_TOP=${NACLPORTS_PREFIX}" install |
| 29 } | 29 } |
| 30 | 30 |
| 31 | 31 |
| 32 CustomPackageInstall() { | 32 CustomPackageInstall() { |
| 33 DefaultPreInstallStep | 33 DefaultPreInstallStep |
| 34 DefaultDownloadStep | 34 DefaultDownloadStep |
| 35 DefaultExtractStep | 35 DefaultExtractStep |
| 36 DefaultPatchStep | 36 DefaultPatchStep |
| 37 CustomBuildStep | 37 CustomBuildStep |
| 38 DefaultTouchStep | 38 DefaultTouchStep |
| 39 DefaultCleanUpStep | 39 DefaultCleanUpStep |
| 40 } | 40 } |
| 41 | 41 |
| 42 | 42 |
| 43 CustomPackageInstall | 43 CustomPackageInstall |
| 44 exit 0 | 44 exit 0 |
| OLD | NEW |