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 # |
11 # This script downloads, patches, and builds fftw-3.2.2 for Native Client. | 11 # This script downloads, patches, and builds fftw-3.2.2 for Native Client. |
12 # | 12 # |
13 | 13 |
14 readonly URL=http://commondatastorage.googleapis.com/nativeclient-mirror/nacl/ff
tw-3.2.2.tar.gz | 14 readonly URL=http://commondatastorage.googleapis.com/nativeclient-mirror/nacl/ff
tw-3.2.2.tar.gz |
15 #readonly URL=http://www.fftw.org/fftw-3.2.2.tar.gz | 15 #readonly URL=http://www.fftw.org/fftw-3.2.2.tar.gz |
16 readonly PATCH_FILE=fftw-3.2.2.patch | 16 readonly PATCH_FILE=fftw-3.2.2.patch |
17 readonly PACKAGE_NAME=fftw-3.2.2 | 17 readonly PACKAGE_NAME=fftw-3.2.2 |
18 | 18 |
19 source ../../build_tools/common.sh | 19 source ../../build_tools/common.sh |
20 | 20 |
21 CustomConfigureStep() { | 21 CustomConfigureStep() { |
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=${NACLPORTS_LIBDIR}/pkgconfig |
29 export PKG_CONFIG_LIBDIR=${NACL_SDK_USR_LIB} | 29 export PKG_CONFIG_LIBDIR=${NACLPORTS_LIBDIR} |
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_ARCH} = "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=${NACLPORTS_PREFIX} --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 |