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-FreeImage-3.14.1.sh | 7 # nacl-FreeImage-3.14.1.sh |
8 # | 8 # |
9 # usage: nacl-FreeImage-3.14.1.sh | 9 # usage: nacl-FreeImage-3.14.1.sh |
10 # | 10 # |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 } | 65 } |
66 | 66 |
67 CustomConfigureStep() { | 67 CustomConfigureStep() { |
68 Banner "Configuring ${PACKAGE_NAME}" | 68 Banner "Configuring ${PACKAGE_NAME}" |
69 # export the nacl tools | 69 # export the nacl tools |
70 export CC=${NACLCC} | 70 export CC=${NACLCC} |
71 export CXX=${NACLCXX} | 71 export CXX=${NACLCXX} |
72 export AR=${NACLAR} | 72 export AR=${NACLAR} |
73 export RANLIB=${NACLRANLIB} | 73 export RANLIB=${NACLRANLIB} |
74 export PATH=${NACL_BIN_PATH}:${PATH}; | 74 export PATH=${NACL_BIN_PATH}:${PATH}; |
75 export INCDIR=${NACL_SDK_USR_INCLUDE} | 75 export INCDIR=${NACLPORTS_INCLUDE} |
76 export INSTALLDIR=${NACL_SDK_USR_LIB} | 76 export INSTALLDIR=${NACLPORTS_LIBDIR} |
77 ChangeDir ${NACL_PACKAGES_REPOSITORY}/${PACKAGE_BASE_NAME} | 77 ChangeDir ${NACL_PACKAGES_REPOSITORY}/${PACKAGE_BASE_NAME} |
78 } | 78 } |
79 | 79 |
80 CustomBuildStep() { | 80 CustomBuildStep() { |
81 # assumes pwd has makefile | 81 # assumes pwd has makefile |
82 make OS=nacl clean | 82 make OS=nacl clean |
83 make OS=nacl -j${OS_JOBS} | 83 make OS=nacl -j${OS_JOBS} |
84 } | 84 } |
85 | 85 |
86 CustomInstallStep() { | 86 CustomInstallStep() { |
87 # assumes pwd has makefile | 87 # assumes pwd has makefile |
88 make OS=nacl install | 88 make OS=nacl install |
89 DefaultTouchStep | 89 DefaultTouchStep |
90 } | 90 } |
91 | 91 |
92 CustomPackageInstall() { | 92 CustomPackageInstall() { |
93 CustomPreInstallStep | 93 CustomPreInstallStep |
94 CustomDownloadStep | 94 CustomDownloadStep |
95 CustomExtractStep | 95 CustomExtractStep |
96 DefaultPatchStep | 96 DefaultPatchStep |
97 CustomConfigureStep | 97 CustomConfigureStep |
98 CustomBuildStep | 98 CustomBuildStep |
99 CustomInstallStep | 99 CustomInstallStep |
100 DefaultCleanUpStep | 100 DefaultCleanUpStep |
101 } | 101 } |
102 | 102 |
103 CustomPackageInstall | 103 CustomPackageInstall |
104 exit 0 | 104 exit 0 |
OLD | NEW |