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

Side by Side Diff: libraries/libtheora-1.1.1/nacl-libtheora-1.1.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 # 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 readonly URL=http://commondatastorage.googleapis.com/nativeclient-mirror/nacl/li btheora-1.1.1.tar.bz2 13 readonly URL=http://commondatastorage.googleapis.com/nativeclient-mirror/nacl/li btheora-1.1.1.tar.bz2
14 #readonly URL=http://downloads.xiph.org/releases/theora/libtheora-1.1.1.tar.bz2 14 #readonly URL=http://downloads.xiph.org/releases/theora/libtheora-1.1.1.tar.bz2
15 readonly PATCH_FILE=nacl-libtheora-1.1.1.patch 15 readonly PATCH_FILE=nacl-libtheora-1.1.1.patch
16 readonly PACKAGE_NAME=libtheora-1.1.1 16 readonly PACKAGE_NAME=libtheora-1.1.1
17 17
18 source ../../build_tools/common.sh 18 source ../../build_tools/common.sh
19 19
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 # Turn off doxygen (it doesn't exist on Mac & Linux, and has an error on 31 # Turn off doxygen (it doesn't exist on Mac & Linux, and has an error on
32 # Windows). 32 # Windows).
33 export HAVE_DOXYGEN="false" 33 export HAVE_DOXYGEN="false"
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_LIBDIR} \
44 --oldincludedir=${NACL_SDK_USR_INCLUDE} \ 44 --oldincludedir=${NACLPORTS_INCLUDE} \
45 --disable-examples \ 45 --disable-examples \
46 --disable-sdltest \ 46 --disable-sdltest \
47 --with-http=off \ 47 --with-http=off \
48 --with-html=off \ 48 --with-html=off \
49 --with-ftp=off \ 49 --with-ftp=off \
50 --with-x=no \ 50 --with-x=no \
51 --${NACL_OPTION}-asm 51 --${NACL_OPTION}-asm
52 } 52 }
53 53
54 54
55 CustomPackageInstall() { 55 CustomPackageInstall() {
56 DefaultPreInstallStep 56 DefaultPreInstallStep
57 DefaultDownloadBzipStep 57 DefaultDownloadBzipStep
58 DefaultExtractBzipStep 58 DefaultExtractBzipStep
59 DefaultPatchStep 59 DefaultPatchStep
60 CustomConfigureStep 60 CustomConfigureStep
61 DefaultBuildStep 61 DefaultBuildStep
62 DefaultInstallStep 62 DefaultInstallStep
63 DefaultCleanUpStep 63 DefaultCleanUpStep
64 } 64 }
65 65
66 66
67 CustomPackageInstall 67 CustomPackageInstall
68 exit 0 68 exit 0
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698