OLD | NEW |
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 source pkg_info | 13 source pkg_info |
14 source ../../build_tools/common.sh | 14 source ../../build_tools/common.sh |
15 | 15 |
16 | 16 |
17 CustomConfigureStep() { | 17 CustomConfigureStep() { |
18 export PKG_CONFIG_PATH=${NACL_SDK_USR_LIB}/pkgconfig | 18 export PKG_CONFIG_PATH=${NACLPORTS_LIBDIR}/pkgconfig |
19 export PKG_CONFIG_LIBDIR=${NACL_SDK_USR_LIB} | 19 export PKG_CONFIG_LIBDIR=${NACLPORTS_LIBDIR} |
20 export PATH=${NACL_BIN_PATH}:${PATH}; | 20 export PATH=${NACL_BIN_PATH}:${PATH}; |
21 MakeDir ${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME}/${PACKAGE_NAME}-build | 21 MakeDir ${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME}/${PACKAGE_NAME}-build |
22 ChangeDir ${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME}/${PACKAGE_NAME}-build | 22 ChangeDir ${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME}/${PACKAGE_NAME}-build |
23 local extra_args="" | 23 local extra_args="" |
24 if [ "${NACL_ARCH}" = pnacl ]; then | 24 if [ "${NACL_ARCH}" = pnacl ]; then |
25 extra_args="--cc=pnacl-clang --arch=pnacl" | 25 extra_args="--cc=pnacl-clang --arch=pnacl" |
26 fi | 26 fi |
27 ../configure \ | 27 ../configure \ |
28 --cross-prefix=${NACL_CROSS_PREFIX}- \ | 28 --cross-prefix=${NACL_CROSS_PREFIX}- \ |
29 ${extra_args} \ | 29 ${extra_args} \ |
(...skipping 11 matching lines...) Expand all Loading... |
41 --disable-protocols \ | 41 --disable-protocols \ |
42 --disable-network \ | 42 --disable-network \ |
43 --enable-protocol=file \ | 43 --enable-protocol=file \ |
44 --enable-libmp3lame \ | 44 --enable-libmp3lame \ |
45 --enable-libvorbis \ | 45 --enable-libvorbis \ |
46 --enable-libtheora \ | 46 --enable-libtheora \ |
47 --disable-ffplay \ | 47 --disable-ffplay \ |
48 --disable-ffserver \ | 48 --disable-ffserver \ |
49 --disable-demuxer=rtsp \ | 49 --disable-demuxer=rtsp \ |
50 --disable-demuxer=image2 \ | 50 --disable-demuxer=image2 \ |
51 --prefix=${NACL_SDK_USR} \ | 51 --prefix=${NACLPORTS_PREFIX} \ |
52 --libdir=${NACL_SDK_USR_LIB} | 52 --libdir=${NACLPORTS_LIBDIR} |
53 } | 53 } |
54 | 54 |
55 | 55 |
56 CustomPostConfigureStep() { | 56 CustomPostConfigureStep() { |
57 touch strings.h | 57 touch strings.h |
58 } | 58 } |
59 | 59 |
60 | 60 |
61 CustomBuildAndInstallStep() { | 61 CustomBuildAndInstallStep() { |
62 DefaultBuildStep | 62 DefaultBuildStep |
63 make install | 63 make install |
64 DefaultTouchStep | 64 DefaultTouchStep |
65 } | 65 } |
66 | 66 |
67 | 67 |
68 CustomPackageInstall() { | 68 CustomPackageInstall() { |
69 DefaultPreInstallStep | 69 DefaultPreInstallStep |
70 DefaultDownloadBzipStep | 70 DefaultDownloadBzipStep |
71 DefaultExtractBzipStep | 71 DefaultExtractBzipStep |
72 DefaultPatchStep | 72 DefaultPatchStep |
73 CustomConfigureStep | 73 CustomConfigureStep |
74 CustomPostConfigureStep | 74 CustomPostConfigureStep |
75 CustomBuildAndInstallStep | 75 CustomBuildAndInstallStep |
76 DefaultCleanUpStep | 76 DefaultCleanUpStep |
77 } | 77 } |
78 | 78 |
79 | 79 |
80 CustomPackageInstall | 80 CustomPackageInstall |
81 exit 0 | 81 exit 0 |
OLD | NEW |