| OLD | NEW |
| 1 #!/bin/bash | 1 #!/bin/bash |
| 2 # Copyright (c) 2013 The Native Client Authors. All rights reserved. | 2 # Copyright (c) 2013 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 source pkg_info | |
| 7 source ../../build_tools/common.sh | |
| 8 | 6 |
| 9 # Do a verbose build so we're confident it's hitting nacl's tools. | 7 # Do a verbose build so we're confident it's hitting nacl's tools. |
| 10 export MAKE_TARGETS="V=1" | 8 export MAKE_TARGETS="V=1" |
| 11 | 9 |
| 12 export EXTRA_CONFIGURE_ARGS="--prefix= --exec-prefix=" | 10 export EXTRA_CONFIGURE_ARGS="--prefix= --exec-prefix=" |
| 13 | 11 |
| 14 ConfigureStep() { | 12 ConfigureStep() { |
| 15 local SRC_DIR=${NACL_PACKAGES_REPOSITORY}/${PACKAGE_DIR} | 13 local SRC_DIR=${NACL_PACKAGES_REPOSITORY}/${PACKAGE_DIR} |
| 16 ChangeDir ${SRC_DIR} | 14 ChangeDir ${SRC_DIR} |
| 17 autoconf | 15 autoconf |
| 18 | 16 |
| 19 export NACL_BUILD_DIR=${NACL_PACKAGES_REPOSITORY}/${PACKAGE_DIR} | 17 export BUILD_DIR=${NACL_PACKAGES_REPOSITORY}/${PACKAGE_DIR} |
| 20 export NACL_CONFIGURE_PATH=./configure | 18 export NACL_CONFIGURE_PATH=./configure |
| 21 DefaultConfigureStep | 19 DefaultConfigureStep |
| 22 | 20 |
| 23 # Git's build doesn't support building outside the source tree. | 21 # Git's build doesn't support building outside the source tree. |
| 24 # Do a clean to make rebuild after failure predictable. | 22 # Do a clean to make rebuild after failure predictable. |
| 25 LogExecute make clean | 23 LogExecute make clean |
| 26 } | 24 } |
| 27 | 25 |
| 28 InstallStep() { | 26 InstallStep() { |
| 29 MakeDir ${PUBLISH_DIR} | 27 MakeDir ${PUBLISH_DIR} |
| 30 local ASSEMBLY_DIR="${PUBLISH_DIR}/tar" | 28 local ASSEMBLY_DIR="${PUBLISH_DIR}/tar" |
| 31 | 29 |
| 32 export INSTALL_TARGETS="DESTDIR=${ASSEMBLY_DIR} install" | 30 export INSTALL_TARGETS="DESTDIR=${ASSEMBLY_DIR} install" |
| 33 DefaultInstallStep | 31 DefaultInstallStep |
| 34 } | 32 } |
| 35 | |
| 36 PackageInstall | |
| 37 exit 0 | |
| OLD | NEW |