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