OLD | NEW |
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-faac-1.28.sh | 7 # nacl-faac-1.28.sh |
8 # | 8 # |
9 # usage: nacl-faac-1.28.sh | 9 # usage: nacl-faac-1.28.sh |
10 # | 10 # |
11 # this script downloads, patches, and builds faac for Native Client | 11 # this script downloads, patches, and builds faac for Native Client |
12 # | 12 # |
13 | 13 |
14 readonly URL=http://commondatastorage.googleapis.com/nativeclient-mirror/nacl/fa
ac-1.28.tar.gz | 14 readonly URL=http://commondatastorage.googleapis.com/nativeclient-mirror/nacl/fa
ac-1.28.tar.gz |
15 #readonly URL=http://sourceforge.net/projects/faac/files/faac-src/faac-1.28/faac
-1.28.tar.gz/download | 15 #readonly URL=http://sourceforge.net/projects/faac/files/faac-src/faac-1.28/faac
-1.28.tar.gz/download |
16 readonly PATCH_FILE=nacl-faac-1.28.patch | 16 readonly PATCH_FILE=nacl-faac-1.28.patch |
17 readonly PACKAGE_NAME=faac-1.28 | 17 readonly PACKAGE_NAME=faac-1.28 |
18 | 18 |
19 source ../../build_tools/common.sh | 19 source ../../build_tools/common.sh |
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 # faac appears to require configure from here, not in build dir | 32 # faac appears to require configure from here, not in build dir |
33 ./configure \ | 33 ./configure \ |
34 --host=nacl \ | 34 --host=nacl \ |
35 --disable-shared \ | 35 --disable-shared \ |
36 --prefix=${NACL_SDK_USR} \ | 36 --prefix=${NACLPORTS_PREFIX} \ |
37 --exec-prefix=${NACL_SDK_USR} \ | 37 --exec-prefix=${NACLPORTS_PREFIX} \ |
38 --libdir=${NACL_SDK_USR_LIB} \ | 38 --libdir=${NACLPORTS_LIBDIR} \ |
39 --oldincludedir=${NACL_SDK_USR_INCLUDE} \ | 39 --oldincludedir=${NACLPORTS_INCLUDE} \ |
40 --with-mp4v2=no \ | 40 --with-mp4v2=no \ |
41 --with-x=no | 41 --with-x=no |
42 } | 42 } |
43 | 43 |
44 | 44 |
45 CustomPackageInstall() { | 45 CustomPackageInstall() { |
46 DefaultPreInstallStep | 46 DefaultPreInstallStep |
47 DefaultDownloadStep | 47 DefaultDownloadStep |
48 DefaultExtractStep | 48 DefaultExtractStep |
49 DefaultPatchStep | 49 DefaultPatchStep |
50 CustomConfigureStep | 50 CustomConfigureStep |
51 DefaultBuildStep | 51 DefaultBuildStep |
52 DefaultInstallStep | 52 DefaultInstallStep |
53 DefaultCleanUpStep | 53 DefaultCleanUpStep |
54 } | 54 } |
55 | 55 |
56 | 56 |
57 CustomPackageInstall | 57 CustomPackageInstall |
58 exit 0 | 58 exit 0 |
OLD | NEW |