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

Side by Side Diff: libraries/x264-snapshot-20091023-2245/nacl-x264-snapshot-20091023-2245.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) 2012 The Native Client Authors. All rights reserved. 2 # Copyright (c) 2012 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-x264-snapshot-20091023-2245.sh 6 # nacl-x264-snapshot-20091023-2245.sh
7 # 7 #
8 # usage: nacl-x264-snapshot-20091023-2245.sh 8 # usage: nacl-x264-snapshot-20091023-2245.sh
9 # 9 #
10 # this script downloads, patches, and builds x264 for Native Client 10 # this script downloads, patches, and builds x264 for Native Client
11 # 11 #
12 12
13 readonly URL=http://commondatastorage.googleapis.com/nativeclient-mirror/nacl/x2 64-snapshot-20091023-2245.tar.bz2 13 readonly URL=http://commondatastorage.googleapis.com/nativeclient-mirror/nacl/x2 64-snapshot-20091023-2245.tar.bz2
14 #readonly URL=http://downloads.videolan.org/pub/videolan/x264/snapshots/x264-sna pshot-20091023-2245.tar.bz2 14 #readonly URL=http://downloads.videolan.org/pub/videolan/x264/snapshots/x264-sna pshot-20091023-2245.tar.bz2
15 readonly PATCH_FILE=nacl-x264-snapshot-20091023-2245.patch 15 readonly PATCH_FILE=nacl-x264-snapshot-20091023-2245.patch
16 readonly PACKAGE_NAME=x264-snapshot-20091023-2245 16 readonly PACKAGE_NAME=x264-snapshot-20091023-2245
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 ChangeDir ${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME} 31 ChangeDir ${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME}
32 32
33 local naclhost 33 local naclhost
34 if [ "${NACL_ARCH}" = pnacl ]; then 34 if [ "${NACL_ARCH}" = pnacl ]; then
35 naclhost=pnacl 35 naclhost=pnacl
36 else 36 else
37 naclhost=x86-nacl-linux 37 naclhost=x86-nacl-linux
38 fi 38 fi
39 39
40 echo " ./configure \ 40 echo " ./configure \
41 --cross-prefix=${NACL_CROSS_PREFIX} \ 41 --cross-prefix=${NACL_CROSS_PREFIX} \
42 --disable-asm \ 42 --disable-asm \
43 --disable-pthread \ 43 --disable-pthread \
44 --prefix=${NACL_SDK_USR} \ 44 --prefix=${NACLPORTS_PREFIX} \
45 --exec-prefix=${NACL_SDK_USR} \ 45 --exec-prefix=${NACLPORTS_PREFIX} \
46 --libdir=${NACL_SDK_USR_LIB} \ 46 --libdir=${NACLPORTS_LIBDIR} \
47 --extra-ldflags='-lnosys -lm' \ 47 --extra-ldflags='-lnosys -lm' \
48 --host=${naclhost}" 48 --host=${naclhost}"
49 49
50 ./configure \ 50 ./configure \
51 --cross-prefix=${NACL_CROSS_PREFIX} \ 51 --cross-prefix=${NACL_CROSS_PREFIX} \
52 --disable-asm \ 52 --disable-asm \
53 --disable-pthread \ 53 --disable-pthread \
54 --prefix=${NACL_SDK_USR} \ 54 --prefix=${NACLPORTS_PREFIX} \
55 --exec-prefix=${NACL_SDK_USR} \ 55 --exec-prefix=${NACLPORTS_PREFIX} \
56 --libdir=${NACL_SDK_USR_LIB} \ 56 --libdir=${NACLPORTS_LIBDIR} \
57 --extra-ldflags="-lnosys -lm" \ 57 --extra-ldflags="-lnosys -lm" \
58 --host=${naclhost} 58 --host=${naclhost}
59 } 59 }
60 60
61 61
62 CustomPackageInstall() { 62 CustomPackageInstall() {
63 DefaultPreInstallStep 63 DefaultPreInstallStep
64 DefaultDownloadBzipStep 64 DefaultDownloadBzipStep
65 DefaultExtractBzipStep 65 DefaultExtractBzipStep
66 DefaultPatchStep 66 DefaultPatchStep
67 CustomConfigureStep 67 CustomConfigureStep
68 DefaultBuildStep 68 DefaultBuildStep
69 DefaultInstallStep 69 DefaultInstallStep
70 DefaultCleanUpStep 70 DefaultCleanUpStep
71 } 71 }
72 72
73 73
74 CustomPackageInstall 74 CustomPackageInstall
75 exit 0 75 exit 0
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698