Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(85)

Side by Side Diff: libraries/fftw-3.2.2/nacl-fftw-3.2.2.sh

Issue 11885025: Allow re-targeting of naclports install (Closed) Base URL: http://naclports.googlecode.com/svn/trunk/src
Patch Set: rebase Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « libraries/ffmpeg-0.5/nacl-ffmpeg-0.5.sh ('k') | libraries/flac-1.2.1/nacl-flac-1.2.1.sh » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 source pkg_info 14 source pkg_info
15 source ../../build_tools/common.sh 15 source ../../build_tools/common.sh
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 ChangeDir ${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME} 27 ChangeDir ${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME}
28 if [ ${NACL_ARCH} = "pnacl" ] ; then 28 if [ ${NACL_ARCH} = "pnacl" ] ; then
29 extra= 29 extra=
30 else 30 else
31 extra="--enable-sse2" 31 extra="--enable-sse2"
32 fi 32 fi
33 33
34 ./configure --prefix=${NACL_SDK_USR} --host=nacl ${extra} 34 ./configure --prefix=${NACLPORTS_PREFIX} --host=nacl ${extra}
35 } 35 }
36 36
37 37
38 CustomPackageInstall() { 38 CustomPackageInstall() {
39 DefaultPreInstallStep 39 DefaultPreInstallStep
40 DefaultDownloadStep 40 DefaultDownloadStep
41 DefaultExtractStep 41 DefaultExtractStep
42 DefaultPatchStep 42 DefaultPatchStep
43 CustomConfigureStep 43 CustomConfigureStep
44 DefaultBuildStep 44 DefaultBuildStep
45 DefaultInstallStep 45 DefaultInstallStep
46 DefaultCleanUpStep 46 DefaultCleanUpStep
47 } 47 }
48 48
49 49
50 CustomPackageInstall 50 CustomPackageInstall
51 exit 0 51 exit 0
OLDNEW
« no previous file with comments | « libraries/ffmpeg-0.5/nacl-ffmpeg-0.5.sh ('k') | libraries/flac-1.2.1/nacl-flac-1.2.1.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698