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-bzip2-1.0.6.sh | 7 # nacl-bzip2-1.0.6.sh |
8 # | 8 # |
9 # usage: nacl-bzip2-1.0.6.sh | 9 # usage: nacl-bzip2-1.0.6.sh |
10 # | 10 # |
(...skipping 14 matching lines...) Expand all Loading... |
25 CustomBuildStep() { | 25 CustomBuildStep() { |
26 make clean | 26 make clean |
27 make CC=${NACLCC} AR=${NACLAR} RANLIB=${NACLRANLIB} -j${OS_JOBS} libbz2.a | 27 make CC=${NACLCC} AR=${NACLAR} RANLIB=${NACLRANLIB} -j${OS_JOBS} libbz2.a |
28 } | 28 } |
29 | 29 |
30 CustomInstallStep() { | 30 CustomInstallStep() { |
31 # assumes pwd has makefile | 31 # assumes pwd has makefile |
32 | 32 |
33 # Don't rely on make install, as it implicitly builds executables | 33 # Don't rely on make install, as it implicitly builds executables |
34 # that need things not available in newlib. | 34 # that need things not available in newlib. |
35 mkdir -p ${NACL_SDK_USR}/include | 35 mkdir -p ${NACLPORTS_PREFIX}/include |
36 cp -f bzlib.h ${NACL_SDK_USR}/include | 36 cp -f bzlib.h ${NACLPORTS_PREFIX}/include |
37 chmod a+r ${NACL_SDK_USR}/include/bzlib.h | 37 chmod a+r ${NACLPORTS_PREFIX}/include/bzlib.h |
38 mkdir -p ${NACL_SDK_USR}/lib | 38 mkdir -p ${NACLPORTS_PREFIX}/lib |
39 cp -f libbz2.a ${NACL_SDK_USR}/lib | 39 cp -f libbz2.a ${NACLPORTS_PREFIX}/lib |
40 chmod a+r ${NACL_SDK_USR}/lib/libbz2.a | 40 chmod a+r ${NACLPORTS_PREFIX}/lib/libbz2.a |
41 | 41 |
42 DefaultTouchStep | 42 DefaultTouchStep |
43 } | 43 } |
44 | 44 |
45 CustomPackageInstall() { | 45 CustomPackageInstall() { |
46 DefaultPreInstallStep | 46 DefaultPreInstallStep |
47 DefaultDownloadStep | 47 DefaultDownloadStep |
48 DefaultExtractStep | 48 DefaultExtractStep |
49 # bzip2 doesn't need patching, so no patch step | 49 # bzip2 doesn't need patching, so no patch step |
50 CustomConfigureStep | 50 CustomConfigureStep |
51 CustomBuildStep | 51 CustomBuildStep |
52 CustomInstallStep | 52 CustomInstallStep |
53 DefaultCleanUpStep | 53 DefaultCleanUpStep |
54 } | 54 } |
55 | 55 |
56 | 56 |
57 CustomPackageInstall | 57 CustomPackageInstall |
58 exit 0 | 58 exit 0 |
OLD | NEW |