| 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 # nacl-libtheora-1.1.1.sh | 6 # nacl-libtheora-1.1.1.sh |
| 7 # | 7 # |
| 8 # usage: nacl-libtheora-1.1.1.sh | 8 # usage: nacl-libtheora-1.1.1.sh |
| 9 # | 9 # |
| 10 # this script downloads, patches, and builds libtheora for Native Client | 10 # this script downloads, patches, and builds libtheora for Native Client |
| 11 # | 11 # |
| 12 | 12 |
| 13 source pkg_info | 13 source pkg_info |
| 14 source ../../build_tools/common.sh | 14 source ../../build_tools/common.sh |
| 15 | 15 |
| 16 | 16 |
| 17 CustomConfigureStep() { | 17 CustomConfigureStep() { |
| 18 Banner "Configuring ${PACKAGE_NAME}" | 18 Banner "Configuring ${PACKAGE_NAME}" |
| 19 # export the nacl tools | 19 # export the nacl tools |
| 20 export CC=${NACLCC} | 20 export CC=${NACLCC} |
| 21 export CXX=${NACLCXX} | 21 export CXX=${NACLCXX} |
| 22 export AR=${NACLAR} | 22 export AR=${NACLAR} |
| 23 export RANLIB=${NACLRANLIB} | 23 export RANLIB=${NACLRANLIB} |
| 24 export PKG_CONFIG_PATH=${NACL_SDK_USR_LIB}/pkgconfig | 24 export PKG_CONFIG_PATH=${NACLPORTS_LIBDIR}/pkgconfig |
| 25 export PKG_CONFIG_LIBDIR=${NACL_SDK_USR_LIB} | 25 export PKG_CONFIG_LIBDIR=${NACLPORTS_LIBDIR} |
| 26 export PATH=${NACL_BIN_PATH}:${PATH}; | 26 export PATH=${NACL_BIN_PATH}:${PATH}; |
| 27 # Turn off doxygen (it doesn't exist on Mac & Linux, and has an error on | 27 # Turn off doxygen (it doesn't exist on Mac & Linux, and has an error on |
| 28 # Windows). | 28 # Windows). |
| 29 export HAVE_DOXYGEN="false" | 29 export HAVE_DOXYGEN="false" |
| 30 ChangeDir ${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME} | 30 ChangeDir ${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME} |
| 31 Remove ${PACKAGE_NAME}-build | 31 Remove ${PACKAGE_NAME}-build |
| 32 MakeDir ${PACKAGE_NAME}-build | 32 MakeDir ${PACKAGE_NAME}-build |
| 33 ChangeDir ${PACKAGE_NAME}-build | 33 ChangeDir ${PACKAGE_NAME}-build |
| 34 ../configure \ | 34 ../configure \ |
| 35 --host=nacl \ | 35 --host=nacl \ |
| 36 --disable-shared \ | 36 --disable-shared \ |
| 37 --prefix=${NACL_SDK_USR} \ | 37 --prefix=${NACLPORTS_PREFIX} \ |
| 38 --exec-prefix=${NACL_SDK_USR} \ | 38 --exec-prefix=${NACLPORTS_PREFIX} \ |
| 39 --libdir=${NACL_SDK_USR_LIB} \ | 39 --libdir=${NACLPORTS_LIBDIR} \ |
| 40 --oldincludedir=${NACL_SDK_USR_INCLUDE} \ | 40 --oldincludedir=${NACLPORTS_INCLUDE} \ |
| 41 --disable-examples \ | 41 --disable-examples \ |
| 42 --disable-sdltest \ | 42 --disable-sdltest \ |
| 43 --with-http=off \ | 43 --with-http=off \ |
| 44 --with-html=off \ | 44 --with-html=off \ |
| 45 --with-ftp=off \ | 45 --with-ftp=off \ |
| 46 --with-x=no \ | 46 --with-x=no \ |
| 47 --${NACL_OPTION}-asm | 47 --${NACL_OPTION}-asm |
| 48 } | 48 } |
| 49 | 49 |
| 50 | 50 |
| 51 CustomPackageInstall() { | 51 CustomPackageInstall() { |
| 52 DefaultPreInstallStep | 52 DefaultPreInstallStep |
| 53 DefaultDownloadBzipStep | 53 DefaultDownloadBzipStep |
| 54 DefaultExtractBzipStep | 54 DefaultExtractBzipStep |
| 55 DefaultPatchStep | 55 DefaultPatchStep |
| 56 CustomConfigureStep | 56 CustomConfigureStep |
| 57 DefaultBuildStep | 57 DefaultBuildStep |
| 58 DefaultInstallStep | 58 DefaultInstallStep |
| 59 DefaultCleanUpStep | 59 DefaultCleanUpStep |
| 60 } | 60 } |
| 61 | 61 |
| 62 | 62 |
| 63 CustomPackageInstall | 63 CustomPackageInstall |
| 64 exit 0 | 64 exit 0 |
| OLD | NEW |