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

Side by Side Diff: libraries/ffmpeg-0.5/nacl-ffmpeg-0.5.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-ffmpeg-0.5.sh 6 # nacl-ffmpeg-0.5.sh
7 # 7 #
8 # usage: nacl-ffmpeg-0.5.sh 8 # usage: nacl-ffmpeg-0.5.sh
9 # 9 #
10 # this script downloads, patches, and builds ffmpeg for Native Client 10 # this script downloads, patches, and builds ffmpeg for Native Client
11 # 11 #
12 12
13 readonly URL=http://commondatastorage.googleapis.com/nativeclient-mirror/nacl/ff mpeg-0.5.tar.bz2 13 readonly URL=http://commondatastorage.googleapis.com/nativeclient-mirror/nacl/ff mpeg-0.5.tar.bz2
14 #readonly URL=http://ffmpeg.org/releases/ffmpeg-0.5.tar.bz2 14 #readonly URL=http://ffmpeg.org/releases/ffmpeg-0.5.tar.bz2
15 readonly PATCH_FILE=nacl-ffmpeg-0.5.patch 15 readonly PATCH_FILE=nacl-ffmpeg-0.5.patch
16 readonly PACKAGE_NAME=ffmpeg-0.5 16 readonly PACKAGE_NAME=ffmpeg-0.5
17 17
18 source ../../build_tools/common.sh 18 source ../../build_tools/common.sh
19 19
20 20
21 CustomConfigureStep() { 21 CustomConfigureStep() {
22 export PKG_CONFIG_PATH=${NACL_SDK_USR_LIB}/pkgconfig 22 export PKG_CONFIG_PATH=${NACLPORTS_LIBDIR}/pkgconfig
23 export PKG_CONFIG_LIBDIR=${NACL_SDK_USR_LIB} 23 export PKG_CONFIG_LIBDIR=${NACLPORTS_LIBDIR}
24 export PATH=${NACL_BIN_PATH}:${PATH}; 24 export PATH=${NACL_BIN_PATH}:${PATH};
25 MakeDir ${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME}/${PACKAGE_NAME}-build 25 MakeDir ${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME}/${PACKAGE_NAME}-build
26 ChangeDir ${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME}/${PACKAGE_NAME}-build 26 ChangeDir ${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME}/${PACKAGE_NAME}-build
27 local extra_args="" 27 local extra_args=""
28 if [ "${NACL_ARCH}" = pnacl ]; then 28 if [ "${NACL_ARCH}" = pnacl ]; then
29 extra_args="--cc=pnacl-clang --arch=pnacl" 29 extra_args="--cc=pnacl-clang --arch=pnacl"
30 fi 30 fi
31 ../configure \ 31 ../configure \
32 --cross-prefix=${NACL_CROSS_PREFIX}- \ 32 --cross-prefix=${NACL_CROSS_PREFIX}- \
33 ${extra_args} \ 33 ${extra_args} \
(...skipping 11 matching lines...) Expand all
45 --disable-protocols \ 45 --disable-protocols \
46 --disable-network \ 46 --disable-network \
47 --enable-protocol=file \ 47 --enable-protocol=file \
48 --enable-libmp3lame \ 48 --enable-libmp3lame \
49 --enable-libvorbis \ 49 --enable-libvorbis \
50 --enable-libtheora \ 50 --enable-libtheora \
51 --disable-ffplay \ 51 --disable-ffplay \
52 --disable-ffserver \ 52 --disable-ffserver \
53 --disable-demuxer=rtsp \ 53 --disable-demuxer=rtsp \
54 --disable-demuxer=image2 \ 54 --disable-demuxer=image2 \
55 --prefix=${NACL_SDK_USR} \ 55 --prefix=${NACLPORTS_PREFIX} \
56 --libdir=${NACL_SDK_USR_LIB} 56 --libdir=${NACLPORTS_LIBDIR}
57 } 57 }
58 58
59 59
60 CustomPostConfigureStep() { 60 CustomPostConfigureStep() {
61 touch strings.h 61 touch strings.h
62 } 62 }
63 63
64 64
65 CustomBuildAndInstallStep() { 65 CustomBuildAndInstallStep() {
66 DefaultBuildStep 66 DefaultBuildStep
67 make install 67 make install
68 DefaultTouchStep 68 DefaultTouchStep
69 } 69 }
70 70
71 71
72 CustomPackageInstall() { 72 CustomPackageInstall() {
73 DefaultPreInstallStep 73 DefaultPreInstallStep
74 DefaultDownloadBzipStep 74 DefaultDownloadBzipStep
75 DefaultExtractBzipStep 75 DefaultExtractBzipStep
76 DefaultPatchStep 76 DefaultPatchStep
77 CustomConfigureStep 77 CustomConfigureStep
78 CustomPostConfigureStep 78 CustomPostConfigureStep
79 CustomBuildAndInstallStep 79 CustomBuildAndInstallStep
80 DefaultCleanUpStep 80 DefaultCleanUpStep
81 } 81 }
82 82
83 83
84 CustomPackageInstall 84 CustomPackageInstall
85 exit 0 85 exit 0
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698