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

Side by Side Diff: libraries/flac-1.2.1/nacl-flac-1.2.1.sh

Issue 11885025: Allow re-targeting of naclports install (Closed) Base URL: http://naclports.googlecode.com/svn/trunk/src
Patch Set: 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
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-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 readonly URL=http://commondatastorage.googleapis.com/nativeclient-mirror/nacl/fl ac-1.2.1.tar.gz 14 readonly URL=http://commondatastorage.googleapis.com/nativeclient-mirror/nacl/fl ac-1.2.1.tar.gz
15 #readonly URL=http://sourceforge.net/projects/flac/files/flac-src/\ 15 #readonly URL=http://sourceforge.net/projects/flac/files/flac-src/\
16 #flac-1.2.1-src/flac-1.2.1.tar.gz/download 16 #flac-1.2.1-src/flac-1.2.1.tar.gz/download
17 readonly PATCH_FILE=nacl-flac-1.2.1.patch 17 readonly PATCH_FILE=nacl-flac-1.2.1.patch
18 readonly PACKAGE_NAME=flac-1.2.1 18 readonly PACKAGE_NAME=flac-1.2.1
19 19
20 source ../../build_tools/common.sh 20 source ../../build_tools/common.sh
21 21
22 22
23 CustomConfigureStep() { 23 CustomConfigureStep() {
24 Banner "Configuring ${PACKAGE_NAME}" 24 Banner "Configuring ${PACKAGE_NAME}"
25 # export the nacl tools 25 # export the nacl tools
26 export CC=${NACLCC} 26 export CC=${NACLCC}
27 export CXX=${NACLCXX} 27 export CXX=${NACLCXX}
28 export AR=${NACLAR} 28 export AR=${NACLAR}
29 export RANLIB=${NACLRANLIB} 29 export RANLIB=${NACLRANLIB}
30 export PKG_CONFIG_PATH=${NACL_SDK_USR}/lib/pkgconfig 30 export PKG_CONFIG_PATH=${NACLPORTS_PREFIX}/lib/pkgconfig
31 export PKG_CONFIG_LIBDIR=${NACL_SDK_USR}/lib 31 export PKG_CONFIG_LIBDIR=${NACLPORTS_PREFIX}/lib
32 export PATH=${NACL_BIN_PATH}:${PATH}; 32 export PATH=${NACL_BIN_PATH}:${PATH};
33 export LIBS="-lnosys" 33 export LIBS="-lnosys"
34 ChangeDir ${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME} 34 ChangeDir ${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME}
35 Remove ${PACKAGE_NAME}-build 35 Remove ${PACKAGE_NAME}-build
36 MakeDir ${PACKAGE_NAME}-build 36 MakeDir ${PACKAGE_NAME}-build
37 ChangeDir ${PACKAGE_NAME}-build 37 ChangeDir ${PACKAGE_NAME}-build
38 ../configure \ 38 ../configure \
39 --host=nacl \ 39 --host=nacl \
40 --disable-shared \ 40 --disable-shared \
41 --prefix=${NACL_SDK_USR} \ 41 --prefix=${NACLPORTS_PREFIX} \
42 --exec-prefix=${NACL_SDK_USR} \ 42 --exec-prefix=${NACLPORTS_PREFIX} \
43 --libdir=${NACL_SDK_USR}/lib \ 43 --libdir=${NACLPORTS_PREFIX}/lib \
44 --oldincludedir=${NACL_SDK_USR}/include \ 44 --oldincludedir=${NACLPORTS_PREFIX}/include \
45 --enable-sse \ 45 --enable-sse \
46 --disable-3dnow \ 46 --disable-3dnow \
47 --disable-altivec \ 47 --disable-altivec \
48 --disable-thorough-tests \ 48 --disable-thorough-tests \
49 --disable-oggtest \ 49 --disable-oggtest \
50 --disable-xmms-plugin \ 50 --disable-xmms-plugin \
51 --without-metaflac-test-files \ 51 --without-metaflac-test-files \
52 --disable-asm-optimizations \ 52 --disable-asm-optimizations \
53 --with-http=off \ 53 --with-http=off \
54 --with-html=off \ 54 --with-html=off \
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 CustomPostConfigureStep 91 CustomPostConfigureStep
92 DefaultBuildStep 92 DefaultBuildStep
93 CustomInstallStep 93 CustomInstallStep
94 DefaultCleanUpStep 94 DefaultCleanUpStep
95 } 95 }
96 96
97 97
98 CustomPackageInstall 98 CustomPackageInstall
99 exit 0 99 exit 0
100 100
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698