| OLD | NEW |
| 1 #!/bin/bash | 1 #!/bin/bash |
| 2 # Copyright (c) 2011 The Native Client Authors. All rights reserved. | 2 # Copyright (c) 2011 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-flac-1.2.1.sh | 7 # nacl-flac-1.2.1.sh |
| 8 # | 8 # |
| 9 # usage: nacl-flac-1.2.1.sh | 9 # usage: nacl-flac-1.2.1.sh |
| 10 # | 10 # |
| 11 # this script downloads, patches, and builds flac for Native Client | 11 # this script downloads, patches, and builds flac for Native Client |
| 12 # | 12 # |
| 13 | 13 |
| 14 source pkg_info | 14 source pkg_info |
| 15 source ../../build_tools/common.sh | 15 source ../../build_tools/common.sh |
| 16 | 16 |
| 17 | 17 |
| 18 CustomConfigureStep() { | 18 CustomConfigureStep() { |
| 19 Banner "Configuring ${PACKAGE_NAME}" | 19 Banner "Configuring ${PACKAGE_NAME}" |
| 20 # export the nacl tools | 20 # export the nacl tools |
| 21 export CC=${NACLCC} | 21 export CC=${NACLCC} |
| 22 export CXX=${NACLCXX} | 22 export CXX=${NACLCXX} |
| 23 export AR=${NACLAR} | 23 export AR=${NACLAR} |
| 24 export RANLIB=${NACLRANLIB} | 24 export RANLIB=${NACLRANLIB} |
| 25 export PKG_CONFIG_PATH=${NACL_SDK_USR}/lib/pkgconfig | 25 export PKG_CONFIG_PATH=${NACLPORTS_PREFIX}/lib/pkgconfig |
| 26 export PKG_CONFIG_LIBDIR=${NACL_SDK_USR}/lib | 26 export PKG_CONFIG_LIBDIR=${NACLPORTS_PREFIX}/lib |
| 27 export PATH=${NACL_BIN_PATH}:${PATH}; | 27 export PATH=${NACL_BIN_PATH}:${PATH}; |
| 28 export LIBS="-lnosys" | 28 export LIBS="-lnosys" |
| 29 ChangeDir ${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME} | 29 ChangeDir ${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME} |
| 30 Remove ${PACKAGE_NAME}-build | 30 Remove ${PACKAGE_NAME}-build |
| 31 MakeDir ${PACKAGE_NAME}-build | 31 MakeDir ${PACKAGE_NAME}-build |
| 32 ChangeDir ${PACKAGE_NAME}-build | 32 ChangeDir ${PACKAGE_NAME}-build |
| 33 ../configure \ | 33 ../configure \ |
| 34 --host=nacl \ | 34 --host=nacl \ |
| 35 --disable-shared \ | 35 --disable-shared \ |
| 36 --prefix=${NACL_SDK_USR} \ | 36 --prefix=${NACLPORTS_PREFIX} \ |
| 37 --exec-prefix=${NACL_SDK_USR} \ | 37 --exec-prefix=${NACLPORTS_PREFIX} \ |
| 38 --libdir=${NACL_SDK_USR}/lib \ | 38 --libdir=${NACLPORTS_PREFIX}/lib \ |
| 39 --oldincludedir=${NACL_SDK_USR}/include \ | 39 --oldincludedir=${NACLPORTS_PREFIX}/include \ |
| 40 --enable-sse \ | 40 --enable-sse \ |
| 41 --disable-3dnow \ | 41 --disable-3dnow \ |
| 42 --disable-altivec \ | 42 --disable-altivec \ |
| 43 --disable-thorough-tests \ | 43 --disable-thorough-tests \ |
| 44 --disable-oggtest \ | 44 --disable-oggtest \ |
| 45 --disable-xmms-plugin \ | 45 --disable-xmms-plugin \ |
| 46 --without-metaflac-test-files \ | 46 --without-metaflac-test-files \ |
| 47 --disable-asm-optimizations \ | 47 --disable-asm-optimizations \ |
| 48 --with-http=off \ | 48 --with-http=off \ |
| 49 --with-html=off \ | 49 --with-html=off \ |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 CustomPostConfigureStep | 86 CustomPostConfigureStep |
| 87 DefaultBuildStep | 87 DefaultBuildStep |
| 88 CustomInstallStep | 88 CustomInstallStep |
| 89 DefaultCleanUpStep | 89 DefaultCleanUpStep |
| 90 } | 90 } |
| 91 | 91 |
| 92 | 92 |
| 93 CustomPackageInstall | 93 CustomPackageInstall |
| 94 exit 0 | 94 exit 0 |
| 95 | 95 |
| OLD | NEW |