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-scummvm-1.2.1.sh | 7 # nacl-scummvm-1.2.1.sh |
8 # | 8 # |
9 # usage: nacl-scummvm-1.2.1.sh | 9 # usage: nacl-scummvm-1.2.1.sh |
10 # | 10 # |
(...skipping 24 matching lines...) Expand all Loading... |
35 export AR=${NACLAR} | 35 export AR=${NACLAR} |
36 export CXXFLAGS="-I${NACL_SDK_ROOT}/include" | 36 export CXXFLAGS="-I${NACL_SDK_ROOT}/include" |
37 export LDFLAGS="" | 37 export LDFLAGS="" |
38 if [ ${NACL_ARCH} = "pnacl" ] ; then | 38 if [ ${NACL_ARCH} = "pnacl" ] ; then |
39 export CXXFLAGS="-O3 -g" | 39 export CXXFLAGS="-O3 -g" |
40 export LDFLAGS="-O0 -static" | 40 export LDFLAGS="-O0 -static" |
41 fi | 41 fi |
42 # without this setting *make* will not show the full command lines | 42 # without this setting *make* will not show the full command lines |
43 export VERBOSE_BUILD=1 | 43 export VERBOSE_BUILD=1 |
44 export RANLIB=${NACLRANLIB} | 44 export RANLIB=${NACLRANLIB} |
45 export PKG_CONFIG_PATH=${NACL_SDK_USR_LIB}/pkgconfig | 45 export PKG_CONFIG_PATH=${NACLPORTS_LIBDIR}/pkgconfig |
46 export PKG_CONFIG_LIBDIR=${NACL_SDK_USR_LIB} | 46 export PKG_CONFIG_LIBDIR=${NACLPORTS_LIBDIR} |
47 export PATH="${NACL_BIN_PATH}:${PATH}" | 47 export PATH="${NACL_BIN_PATH}:${PATH}" |
48 export PATH="${NACL_SDK_USR_BIN}:${PATH}" | 48 export PATH="${NACLPORTS_PREFIX_BIN}:${PATH}" |
49 export DEFINES= | 49 export DEFINES= |
50 if [ "${NACL_GLIBC}" != "1" ]; then | 50 if [ "${NACL_GLIBC}" != "1" ]; then |
51 export DEFINES="-Dstrdup\(a\)=strcpy\(\(char\*\)malloc\(strlen\(a\)+1\),a\)" | 51 export DEFINES="-Dstrdup\(a\)=strcpy\(\(char\*\)malloc\(strlen\(a\)+1\),a\)" |
52 export DEFINES="$DEFINES -Dvsnprintf\(a,b,c,d\)=vsprintf\(a,c,d\)" | 52 export DEFINES="$DEFINES -Dvsnprintf\(a,b,c,d\)=vsprintf\(a,c,d\)" |
53 export DEFINES="$DEFINES -Dsnprintf\(a,b,c,...\)=sprintf\(a,c,__VA_ARGS__\)" | 53 export DEFINES="$DEFINES -Dsnprintf\(a,b,c,...\)=sprintf\(a,c,__VA_ARGS__\)" |
54 export DEFINES="$DEFINES -Dstrcasecmp=strcmp" | 54 export DEFINES="$DEFINES -Dstrcasecmp=strcmp" |
55 export DEFINES="$DEFINES -Dstrncasecmp=strncmp" | 55 export DEFINES="$DEFINES -Dstrncasecmp=strncmp" |
56 fi | 56 fi |
57 export DEFINES="$DEFINES -DNACL -DSYSTEM_NOT_SUPPORTING_D_TYPE=1" | 57 export DEFINES="$DEFINES -DNACL -DSYSTEM_NOT_SUPPORTING_D_TYPE=1" |
58 export LIBS= | 58 export LIBS= |
59 export LIBS="$LIBS -Wl,--whole-archive" | 59 export LIBS="$LIBS -Wl,--whole-archive" |
60 export LIBS="$LIBS -lppapi" | 60 export LIBS="$LIBS -lppapi" |
61 export LIBS="$LIBS -lppapi_cpp" | 61 export LIBS="$LIBS -lppapi_cpp" |
62 export LIBS="$LIBS -lvorbisfile -lvorbis -logg" | 62 export LIBS="$LIBS -lvorbisfile -lvorbis -logg" |
63 export LIBS="$LIBS -lnacl-mounts" | 63 export LIBS="$LIBS -lnacl-mounts" |
64 export LIBS="$LIBS -Wl,--no-whole-archive" | 64 export LIBS="$LIBS -Wl,--no-whole-archive" |
65 export CPPFLAGS="-I$NACL_PACKAGES_LIBRARIES" | 65 export CPPFLAGS="-I$NACL_PACKAGES_LIBRARIES" |
66 | 66 |
67 ChangeDir ${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME} | 67 ChangeDir ${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME} |
68 Remove ${PACKAGE_NAME}-build | 68 Remove ${PACKAGE_NAME}-build |
69 MakeDir ${PACKAGE_NAME}-build | 69 MakeDir ${PACKAGE_NAME}-build |
70 # NOTE: disabled mt32emu because it using inline assembly that won't | 70 # NOTE: disabled mt32emu because it using inline assembly that won't |
71 # validate. | 71 # validate. |
72 cd ${PACKAGE_NAME}-build | 72 cd ${PACKAGE_NAME}-build |
73 ../configure \ | 73 ../configure \ |
74 --host=nacl \ | 74 --host=nacl \ |
75 --libdir=${NACL_SDK_USR_LIB} \ | 75 --libdir=${NACLPORTS_LIBDIR} \ |
76 --disable-flac \ | 76 --disable-flac \ |
77 --disable-zlib \ | 77 --disable-zlib \ |
78 --disable-mt32emu \ | 78 --disable-mt32emu \ |
79 --disable-all-engines \ | 79 --disable-all-engines \ |
80 --enable-lure \ | 80 --enable-lure \ |
81 --enable-sky | 81 --enable-sky |
82 } | 82 } |
83 | 83 |
84 CustomInstallStep() { | 84 CustomInstallStep() { |
85 ChangeDir ${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME} | 85 ChangeDir ${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME} |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
208 DefaultExtractBzipStep | 208 DefaultExtractBzipStep |
209 CustomPatchStep | 209 CustomPatchStep |
210 CustomConfigureStep | 210 CustomConfigureStep |
211 DefaultBuildStep | 211 DefaultBuildStep |
212 CustomInstallStep | 212 CustomInstallStep |
213 DefaultCleanUpStep | 213 DefaultCleanUpStep |
214 } | 214 } |
215 | 215 |
216 CustomPackageInstall | 216 CustomPackageInstall |
217 exit 0 | 217 exit 0 |
OLD | NEW |