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 # |
11 # This script downloads, patches, and builds an snes9x-based SNES emulator for | 11 # This script downloads, patches, and builds an snes9x-based SNES emulator for |
12 # Native Client. | 12 # Native Client. |
13 | 13 |
14 source pkg_info | 14 source pkg_info |
15 PACKAGE_DIR=${PACKAGE_NAME}-src | 15 PACKAGE_DIR=${PACKAGE_NAME}-src |
16 source ../../../build_tools/common.sh | 16 source ../../../build_tools/common.sh |
17 | 17 |
18 DOSBOX_EXAMPLE_DIR=${NACL_SRC}/examples/games/snes9x-1.53 | 18 DOSBOX_EXAMPLE_DIR=${NACL_SRC}/examples/games/snes9x-1.53 |
| 19 EXECUTABLES=snes9x |
19 | 20 |
20 CustomConfigureStep() { | 21 CustomConfigureStep() { |
21 Banner "Configuring ${PACKAGE_NAME}" | 22 Banner "Configuring ${PACKAGE_NAME}" |
22 | 23 |
23 # export the nacl tools | 24 # export the nacl tools |
24 export CC=${NACLCC} | 25 export CC=${NACLCC} |
25 export CXX=${NACLCXX} | 26 export CXX=${NACLCXX} |
26 export CXXFLAGS="${NACLPORTS_CFLAGS} -I${NACL_SDK_ROOT}/include" | 27 export CXXFLAGS="${NACLPORTS_CFLAGS} -I${NACL_SDK_ROOT}/include" |
27 export LDFLAGS="${NACLPORTS_LDFLAGS}" | 28 export LDFLAGS="${NACLPORTS_LDFLAGS}" |
28 if [ ${NACL_ARCH} = "pnacl" ] ; then | 29 if [ ${NACL_ARCH} = "pnacl" ] ; then |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 DefaultTouchStep | 74 DefaultTouchStep |
74 } | 75 } |
75 | 76 |
76 CustomPackageInstall() { | 77 CustomPackageInstall() { |
77 DefaultPreInstallStep | 78 DefaultPreInstallStep |
78 DefaultDownloadBzipStep | 79 DefaultDownloadBzipStep |
79 DefaultExtractBzipStep | 80 DefaultExtractBzipStep |
80 DefaultPatchStep | 81 DefaultPatchStep |
81 CustomConfigureStep | 82 CustomConfigureStep |
82 DefaultBuildStep | 83 DefaultBuildStep |
83 if [ ${NACL_ARCH} = "pnacl" ] ; then | 84 DefaultTranslateStep |
84 # NOTE: snes9x has unusual dirnames | 85 DefaultValidateStep |
85 DefaultTranslateStep ${PACKAGE_DIR} unix/snes9x | |
86 fi | |
87 CustomInstallStep | 86 CustomInstallStep |
88 DefaultCleanUpStep | 87 DefaultCleanUpStep |
89 } | 88 } |
90 | 89 |
91 CustomPackageInstall | 90 CustomPackageInstall |
92 exit 0 | 91 exit 0 |
OLD | NEW |