| 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 # Beneath a Steel Sky (floppy version) | 7 # Beneath a Steel Sky (floppy version) |
| 10 readonly BASS_FLOPPY_URL=http://commondatastorage.googleapis.com/nativeclient-mi
rror/nacl/scummvm_games/bass/BASS-Floppy-1.3.zip | 8 readonly BASS_FLOPPY_URL=http://commondatastorage.googleapis.com/nativeclient-mi
rror/nacl/scummvm_games/bass/BASS-Floppy-1.3.zip |
| 11 readonly BASS_FLOPPY_NAME=BASS-Floppy-1.3 | 9 readonly BASS_FLOPPY_NAME=BASS-Floppy-1.3 |
| 12 | 10 |
| 13 readonly LURE_URL=http://commondatastorage.googleapis.com/nativeclient-mirror/na
cl/scummvm_games/lure/lure-1.1.zip | 11 readonly LURE_URL=http://commondatastorage.googleapis.com/nativeclient-mirror/na
cl/scummvm_games/lure/lure-1.1.zip |
| 14 readonly LURE_NAME=lure-1.1 | 12 readonly LURE_NAME=lure-1.1 |
| 15 | 13 |
| 16 EXECUTABLES=scummvm | 14 EXECUTABLES=scummvm |
| 17 | 15 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 28 # without this setting *make* will not show the full command lines | 26 # without this setting *make* will not show the full command lines |
| 29 export VERBOSE_BUILD=1 | 27 export VERBOSE_BUILD=1 |
| 30 export RANLIB=${NACLRANLIB} | 28 export RANLIB=${NACLRANLIB} |
| 31 export PKG_CONFIG_PATH=${NACLPORTS_LIBDIR}/pkgconfig | 29 export PKG_CONFIG_PATH=${NACLPORTS_LIBDIR}/pkgconfig |
| 32 export PKG_CONFIG_LIBDIR=${NACLPORTS_LIBDIR} | 30 export PKG_CONFIG_LIBDIR=${NACLPORTS_LIBDIR} |
| 33 export CFLAGS=${NACLPORTS_CFLAGS} | 31 export CFLAGS=${NACLPORTS_CFLAGS} |
| 34 export CXXFLAGS=${NACLPORTS_CXXFLAGS} | 32 export CXXFLAGS=${NACLPORTS_CXXFLAGS} |
| 35 export LDFLAGS=${NACLPORTS_LDFLAGS} | 33 export LDFLAGS=${NACLPORTS_LDFLAGS} |
| 36 export PATH="${NACL_BIN_PATH}:${PATH}" | 34 export PATH="${NACL_BIN_PATH}:${PATH}" |
| 37 export PATH="${NACLPORTS_PREFIX_BIN}:${PATH}" | 35 export PATH="${NACLPORTS_PREFIX_BIN}:${PATH}" |
| 38 local SRC_DIR=${NACL_PACKAGES_REPOSITORY}/${PACKAGE_DIR} | |
| 39 if [ ! -f "${NACL_CONFIGURE_PATH:-${SRC_DIR}/configure}" ]; then | 36 if [ ! -f "${NACL_CONFIGURE_PATH:-${SRC_DIR}/configure}" ]; then |
| 40 echo "No configure script found" | 37 echo "No configure script found" |
| 41 return | 38 return |
| 42 fi | 39 fi |
| 43 local DEFAULT_BUILD_DIR=${SRC_DIR}/${NACL_BUILD_SUBDIR} | |
| 44 local BUILD_DIR=${NACL_BUILD_DIR:-${DEFAULT_BUILD_DIR}} | |
| 45 MakeDir ${BUILD_DIR} | 40 MakeDir ${BUILD_DIR} |
| 46 ChangeDir ${BUILD_DIR} | 41 ChangeDir ${BUILD_DIR} |
| 47 echo "Directory: $(pwd)" | 42 echo "Directory: $(pwd)" |
| 48 | 43 |
| 49 local conf_host=${NACL_CROSS_PREFIX} | 44 local conf_host=${NACL_CROSS_PREFIX} |
| 50 if [ "${NACL_ARCH}" = "pnacl" ]; then | 45 if [ "${NACL_ARCH}" = "pnacl" ]; then |
| 51 conf_host="pnacl" | 46 conf_host="pnacl" |
| 52 elif [ "${NACL_ARCH}" = "arm" ]; then | 47 elif [ "${NACL_ARCH}" = "arm" ]; then |
| 53 conf_host="nacl-arm" | 48 conf_host="nacl-arm" |
| 54 else | 49 else |
| 55 conf_host="nacl-x86" | 50 conf_host="nacl-x86" |
| 56 fi | 51 fi |
| 57 export DEFINES="-DNACL -DSYSTEM_NOT_SUPPORTING_D_TYPE=1" | 52 export DEFINES="-DNACL -DSYSTEM_NOT_SUPPORTING_D_TYPE=1" |
| 58 | 53 |
| 59 # NOTE: disabled mt32emu because it using inline assembly that won't | 54 # NOTE: disabled mt32emu because it using inline assembly that won't |
| 60 # validate. | 55 # validate. |
| 61 ../configure \ | 56 ../configure \ |
| 62 --host=${conf_host} \ | 57 --host=${conf_host} \ |
| 63 --libdir=${NACLPORTS_LIBDIR} \ | 58 --libdir=${NACLPORTS_LIBDIR} \ |
| 64 --disable-flac \ | 59 --disable-flac \ |
| 65 --disable-zlib \ | 60 --disable-zlib \ |
| 66 --disable-mt32emu \ | 61 --disable-mt32emu \ |
| 67 --disable-timidity \ | 62 --disable-timidity \ |
| 68 --disable-all-engines \ | 63 --disable-all-engines \ |
| 69 --enable-engine=lure \ | 64 --enable-engine=lure \ |
| 70 --enable-engine=sky | 65 --enable-engine=sky |
| 71 } | 66 } |
| 72 | 67 |
| 73 InstallStep() { | 68 InstallStep() { |
| 74 SRC_DIR=${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME} | |
| 75 SCUMMVM_DIR=runimage/usr/local/share/scummvm | 69 SCUMMVM_DIR=runimage/usr/local/share/scummvm |
| 76 ChangeDir ${SRC_DIR} | 70 ChangeDir ${SRC_DIR} |
| 77 | 71 |
| 78 mkdir -p ${SCUMMVM_DIR} | 72 mkdir -p ${SCUMMVM_DIR} |
| 79 cp gui/themes/scummclassic.zip \ | 73 cp gui/themes/scummclassic.zip \ |
| 80 dists/engine-data/sky.cpt \ | 74 dists/engine-data/sky.cpt \ |
| 81 gui/themes/scummmodern.zip \ | 75 gui/themes/scummmodern.zip \ |
| 82 gui/themes/translations.dat \ | 76 gui/themes/translations.dat \ |
| 83 dists/engine-data/lure.dat \ | 77 dists/engine-data/lure.dat \ |
| 84 dists/pred.dic \ | 78 dists/pred.dic \ |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 174 ExtractGameZipStep | 168 ExtractGameZipStep |
| 175 PACKAGE_NAME=${PACKAGE_NAME_TEMP} | 169 PACKAGE_NAME=${PACKAGE_NAME_TEMP} |
| 176 PACKAGE_DIR=${PACKAGE_DIR_TEMP} | 170 PACKAGE_DIR=${PACKAGE_DIR_TEMP} |
| 177 } | 171 } |
| 178 | 172 |
| 179 PackageInstall() { | 173 PackageInstall() { |
| 180 GameGetStep ${BASS_FLOPPY_URL} ${BASS_FLOPPY_NAME} | 174 GameGetStep ${BASS_FLOPPY_URL} ${BASS_FLOPPY_NAME} |
| 181 GameGetStep ${LURE_URL} ${LURE_NAME} | 175 GameGetStep ${LURE_URL} ${LURE_NAME} |
| 182 DefaultPackageInstall | 176 DefaultPackageInstall |
| 183 } | 177 } |
| 184 | |
| 185 PackageInstall | |
| 186 exit 0 | |
| OLD | NEW |