| 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 | 6 |
| 7 # nacl-snes-1.53.sh | 7 # nacl-snes-1.53.sh |
| 8 # | 8 # |
| 9 # Usage: nacl-snes-1.53.sh | 9 # Usage: nacl-snes-1.53.sh |
| 10 # | 10 # |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 DOSBOX_EXAMPLE_DIR=${NACL_SRC}/examples/games/snes9x-1.53 | 21 DOSBOX_EXAMPLE_DIR=${NACL_SRC}/examples/games/snes9x-1.53 |
| 22 | 22 |
| 23 CustomConfigureStep() { | 23 CustomConfigureStep() { |
| 24 Banner "Configuring ${PACKAGE_NAME}" | 24 Banner "Configuring ${PACKAGE_NAME}" |
| 25 | 25 |
| 26 # export the nacl tools | 26 # export the nacl tools |
| 27 export CC=${NACLCC} | 27 export CC=${NACLCC} |
| 28 export CXX=${NACLCXX} | 28 export CXX=${NACLCXX} |
| 29 export CXXFLAGS="" | 29 export CXXFLAGS="" |
| 30 export LDFLAGS="" | 30 export LDFLAGS="" |
| 31 if [ ${NACL_PACKAGES_BITSIZE} == "pnacl" ] ; then | 31 if [ ${NACL_ARCH} = "pnacl" ] ; then |
| 32 export CXXFLAGS="-O3 -g" | 32 export CXXFLAGS="-O3 -g" |
| 33 export LDFLAGS="-O0 -static" | 33 export LDFLAGS="-O0 -static" |
| 34 fi | 34 fi |
| 35 export AR=${NACLAR} | 35 export AR=${NACLAR} |
| 36 export RANLIB=${NACLRANLIB} | 36 export RANLIB=${NACLRANLIB} |
| 37 export PKG_CONFIG_PATH=${NACL_SDK_USR_LIB}/pkgconfig | 37 export PKG_CONFIG_PATH=${NACL_SDK_USR_LIB}/pkgconfig |
| 38 export PKG_CONFIG_LIBDIR=${NACL_SDK_USR_LIB} | 38 export PKG_CONFIG_LIBDIR=${NACL_SDK_USR_LIB} |
| 39 | 39 |
| 40 CONFIG_FLAGS="--host=nacl \ | 40 CONFIG_FLAGS="--host=nacl \ |
| 41 --prefix=${NACL_SDK_USR} \ | 41 --prefix=${NACL_SDK_USR} \ |
| (...skipping 23 matching lines...) Expand all Loading... |
| 65 | 65 |
| 66 CustomInstallStep(){ | 66 CustomInstallStep(){ |
| 67 BUILD_DIR=${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME}-src/unix | 67 BUILD_DIR=${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME}-src/unix |
| 68 PUBLISH_DIR="${NACL_PACKAGES_PUBLISH}/${PACKAGE_NAME}" | 68 PUBLISH_DIR="${NACL_PACKAGES_PUBLISH}/${PACKAGE_NAME}" |
| 69 MakeDir ${PUBLISH_DIR} | 69 MakeDir ${PUBLISH_DIR} |
| 70 install ${START_DIR}/snes.html ${PUBLISH_DIR} | 70 install ${START_DIR}/snes.html ${PUBLISH_DIR} |
| 71 install ${START_DIR}/snes.js ${PUBLISH_DIR} | 71 install ${START_DIR}/snes.js ${PUBLISH_DIR} |
| 72 install ${START_DIR}/style.css ${PUBLISH_DIR} | 72 install ${START_DIR}/style.css ${PUBLISH_DIR} |
| 73 install ${START_DIR}/snes.nmf ${PUBLISH_DIR} | 73 install ${START_DIR}/snes.nmf ${PUBLISH_DIR} |
| 74 install ${BUILD_DIR}/snes9x \ | 74 install ${BUILD_DIR}/snes9x \ |
| 75 ${PUBLISH_DIR}/snes_x86_${NACL_PACKAGES_BITSIZE}.nexe | 75 ${PUBLISH_DIR}/snes_x86_${NACL_ARCH}.nexe |
| 76 DefaultTouchStep | 76 DefaultTouchStep |
| 77 } | 77 } |
| 78 | 78 |
| 79 CustomPackageInstall() { | 79 CustomPackageInstall() { |
| 80 DefaultPreInstallStep | 80 DefaultPreInstallStep |
| 81 DefaultDownloadBzipStep | 81 DefaultDownloadBzipStep |
| 82 DefaultExtractBzipStep | 82 DefaultExtractBzipStep |
| 83 DefaultPatchStep | 83 DefaultPatchStep |
| 84 CustomConfigureStep | 84 CustomConfigureStep |
| 85 DefaultBuildStep | 85 DefaultBuildStep |
| 86 if [ ${NACL_PACKAGES_BITSIZE} == "pnacl" ] ; then | 86 if [ ${NACL_ARCH} = "pnacl" ] ; then |
| 87 # NOTE: snes9x has unusual dirnames | 87 # NOTE: snes9x has unusual dirnames |
| 88 DefaultTranslateStep ${PACKAGE_NAME}-src unix/snes9x | 88 DefaultTranslateStep ${PACKAGE_NAME}-src unix/snes9x |
| 89 fi | 89 fi |
| 90 CustomInstallStep | 90 CustomInstallStep |
| 91 DefaultCleanUpStep | 91 DefaultCleanUpStep |
| 92 } | 92 } |
| 93 | 93 |
| 94 CustomPackageInstall | 94 CustomPackageInstall |
| 95 exit 0 | 95 exit 0 |
| OLD | NEW |