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