| 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 DOSBOX_EXAMPLE_DIR=${NACL_SRC}/ports/dosbox-0.74 | 7 DOSBOX_EXAMPLE_DIR=${NACL_SRC}/ports/dosbox-0.74 |
| 10 EXECUTABLES=src/dosbox${NACL_EXEEXT} | 8 EXECUTABLES=src/dosbox${NACL_EXEEXT} |
| 11 | 9 |
| 12 ConfigureStep() { | 10 ConfigureStep() { |
| 13 Banner "Configuring ${PACKAGE_NAME}" | 11 Banner "Configuring ${PACKAGE_NAME}" |
| 14 | 12 |
| 15 # export the nacl tools | 13 # export the nacl tools |
| 16 export CC=${NACLCC} | 14 export CC=${NACLCC} |
| 17 export CXX=${NACLCXX} | 15 export CXX=${NACLCXX} |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 InstallStep(){ | 71 InstallStep(){ |
| 74 DOSBOX_DIR=${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME} | 72 DOSBOX_DIR=${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME} |
| 75 DOSBOX_BUILD=${DOSBOX_DIR}/${NACL_BUILD_SUBDIR} | 73 DOSBOX_BUILD=${DOSBOX_DIR}/${NACL_BUILD_SUBDIR} |
| 76 MakeDir ${PUBLISH_DIR} | 74 MakeDir ${PUBLISH_DIR} |
| 77 LogExecute install ${START_DIR}/dosbox.html ${PUBLISH_DIR} | 75 LogExecute install ${START_DIR}/dosbox.html ${PUBLISH_DIR} |
| 78 LogExecute install ${DOSBOX_BUILD}/src/dosbox${NACL_EXEEXT} \ | 76 LogExecute install ${DOSBOX_BUILD}/src/dosbox${NACL_EXEEXT} \ |
| 79 ${PUBLISH_DIR}/dosbox_${NACL_ARCH}${NACL_EXEEXT} | 77 ${PUBLISH_DIR}/dosbox_${NACL_ARCH}${NACL_EXEEXT} |
| 80 local CREATE_NMF="${NACL_SDK_ROOT}/tools/create_nmf.py" | 78 local CREATE_NMF="${NACL_SDK_ROOT}/tools/create_nmf.py" |
| 81 LogExecute ${CREATE_NMF} -s ${PUBLISH_DIR} ${PUBLISH_DIR}/dosbox_*${NACL_EXEEX
T} -o ${PUBLISH_DIR}/dosbox.nmf | 79 LogExecute ${CREATE_NMF} -s ${PUBLISH_DIR} ${PUBLISH_DIR}/dosbox_*${NACL_EXEEX
T} -o ${PUBLISH_DIR}/dosbox.nmf |
| 82 } | 80 } |
| 83 | |
| 84 | |
| 85 PackageInstall | |
| 86 exit 0 | |
| OLD | NEW |