| 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-fftw-3.2.2.sh | 7 # nacl-fftw-3.2.2.sh |
| 8 # | 8 # |
| 9 # usage: nacl-fftw-3.2.2.sh | 9 # usage: nacl-fftw-3.2.2.sh |
| 10 # | 10 # |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 Banner "Configuring ${PACKAGE_NAME}" | 22 Banner "Configuring ${PACKAGE_NAME}" |
| 23 # Export the nacl tools. | 23 # Export the nacl tools. |
| 24 export CC=${NACLCC} | 24 export CC=${NACLCC} |
| 25 export CXX=${NACLCXX} | 25 export CXX=${NACLCXX} |
| 26 export AR=${NACLAR} | 26 export AR=${NACLAR} |
| 27 export RANLIB=${NACLRANLIB} | 27 export RANLIB=${NACLRANLIB} |
| 28 export PKG_CONFIG_PATH=${NACL_SDK_USR_LIB}/pkgconfig | 28 export PKG_CONFIG_PATH=${NACL_SDK_USR_LIB}/pkgconfig |
| 29 export PKG_CONFIG_LIBDIR=${NACL_SDK_USR_LIB} | 29 export PKG_CONFIG_LIBDIR=${NACL_SDK_USR_LIB} |
| 30 export PATH=${NACL_BIN_PATH}:${PATH}; | 30 export PATH=${NACL_BIN_PATH}:${PATH}; |
| 31 ChangeDir ${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME} | 31 ChangeDir ${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME} |
| 32 if [ ${NACL_PACKAGES_BITSIZE} = "pnacl" ] ; then | 32 if [ ${NACL_ARCH} = "pnacl" ] ; then |
| 33 extra= | 33 extra= |
| 34 else | 34 else |
| 35 extra="--enable-sse2" | 35 extra="--enable-sse2" |
| 36 fi | 36 fi |
| 37 | 37 |
| 38 ./configure --prefix=${NACL_SDK_USR} --host=nacl ${extra} | 38 ./configure --prefix=${NACL_SDK_USR} --host=nacl ${extra} |
| 39 } | 39 } |
| 40 | 40 |
| 41 | 41 |
| 42 CustomPackageInstall() { | 42 CustomPackageInstall() { |
| 43 DefaultPreInstallStep | 43 DefaultPreInstallStep |
| 44 DefaultDownloadStep | 44 DefaultDownloadStep |
| 45 DefaultExtractStep | 45 DefaultExtractStep |
| 46 DefaultPatchStep | 46 DefaultPatchStep |
| 47 CustomConfigureStep | 47 CustomConfigureStep |
| 48 DefaultBuildStep | 48 DefaultBuildStep |
| 49 DefaultInstallStep | 49 DefaultInstallStep |
| 50 DefaultCleanUpStep | 50 DefaultCleanUpStep |
| 51 } | 51 } |
| 52 | 52 |
| 53 | 53 |
| 54 CustomPackageInstall | 54 CustomPackageInstall |
| 55 exit 0 | 55 exit 0 |
| OLD | NEW |