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