| 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 source pkg_info | |
| 7 source ../../build_tools/common.sh | |
| 8 | |
| 9 readonly LIB_GLIBC_COMPAT=libglibc-compat.a | 6 readonly LIB_GLIBC_COMPAT=libglibc-compat.a |
| 10 | 7 |
| 11 ExtractStep() { | 8 BUILD_DIR=${SRC_DIR} |
| 12 ChangeDir ${NACL_PACKAGES_REPOSITORY} | |
| 13 MakeDir ${PACKAGE_NAME} | |
| 14 LogExecute cp -rf ${START_DIR}/* ${PACKAGE_NAME} | |
| 15 } | |
| 16 | 9 |
| 17 ConfigureStep() { | 10 ConfigureStep() { |
| 18 Banner "Configuring ${PACKAGE_NAME}" | 11 Banner "Configuring ${PACKAGE_NAME}" |
| 12 MakeDir ${BUILD_DIR} |
| 13 LogExecute cp -rf ${START_DIR}/* ${BUILD_DIR} |
| 19 # export the nacl tools | 14 # export the nacl tools |
| 20 export CC=${NACLCC} | 15 export CC=${NACLCC} |
| 21 export CXX=${NACLCXX} | 16 export CXX=${NACLCXX} |
| 22 export AR=${NACLAR} | 17 export AR=${NACLAR} |
| 23 export NACL_SDK_VERSION | 18 export NACL_SDK_VERSION |
| 24 ChangeDir ${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME} | 19 ChangeDir ${SRC_DIR} |
| 25 LogExecute rm -rf out | 20 LogExecute rm -rf out |
| 26 } | 21 } |
| 27 | 22 |
| 28 InstallStep() { | 23 InstallStep() { |
| 29 Remove ${NACLPORTS_LIBDIR}/${LIB_GLIBC_COMPAT} | 24 Remove ${NACLPORTS_LIBDIR}/${LIB_GLIBC_COMPAT} |
| 30 Remove ${NACLPORTS_INCLUDE}/glibc-compat | 25 Remove ${NACLPORTS_INCLUDE}/glibc-compat |
| 31 LogExecute install -m 644 out/${LIB_GLIBC_COMPAT} ${NACLPORTS_LIBDIR}/${LIB_GL
IBC_COMPAT} | 26 LogExecute install -m 644 out/${LIB_GLIBC_COMPAT} ${NACLPORTS_LIBDIR}/${LIB_GL
IBC_COMPAT} |
| 32 LogExecute cp -r include ${NACLPORTS_INCLUDE}/glibc-compat | 27 LogExecute cp -r include ${NACLPORTS_INCLUDE}/glibc-compat |
| 33 } | 28 } |
| 34 | |
| 35 PackageInstall | |
| 36 exit 0 | |
| OLD | NEW |