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-zlib-1.2.3.sh | 7 # nacl-zlib-1.2.3.sh |
8 # | 8 # |
9 # usage: nacl-zlib-1.2.3.sh | 9 # usage: nacl-zlib-1.2.3.sh |
10 # | 10 # |
11 # this script downloads, patches, and builds zlib for Native Client | 11 # this script downloads, patches, and builds zlib for Native Client |
12 # | 12 # |
13 | 13 |
14 source pkg_info | 14 source pkg_info |
15 source ../../build_tools/common.sh | 15 source ../../build_tools/common.sh |
16 | 16 |
17 | 17 |
18 CustomConfigureStep() { | 18 CustomConfigureStep() { |
19 Banner "Configuring ${PACKAGE_NAME}" | 19 Banner "Configuring ${PACKAGE_NAME}" |
20 ChangeDir ${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME} | 20 ChangeDir ${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME} |
21 # TODO: side-by-side install | 21 # TODO: side-by-side install |
22 CC=${NACLCC} AR="${NACLAR} -r" RANLIB=${NACLRANLIB} CFLAGS="-Dunlink=puts" ./c
onfigure\ | 22 CC=${NACLCC} AR="${NACLAR} -r" RANLIB=${NACLRANLIB} CFLAGS="-Dunlink=puts" ./c
onfigure\ |
23 --prefix=${NACL_SDK_USR} | 23 --prefix=${NACLPORTS_PREFIX} |
24 } | 24 } |
25 | 25 |
26 | 26 |
27 CustomPackageInstall() { | 27 CustomPackageInstall() { |
28 DefaultPreInstallStep | 28 DefaultPreInstallStep |
29 DefaultDownloadStep | 29 DefaultDownloadStep |
30 DefaultExtractStep | 30 DefaultExtractStep |
31 # zlib doesn't need patching, so no patch step | 31 # zlib doesn't need patching, so no patch step |
32 CustomConfigureStep | 32 CustomConfigureStep |
33 DefaultBuildStep | 33 DefaultBuildStep |
34 DefaultInstallStep | 34 DefaultInstallStep |
35 DefaultCleanUpStep | 35 DefaultCleanUpStep |
36 } | 36 } |
37 | 37 |
38 | 38 |
39 CustomPackageInstall | 39 CustomPackageInstall |
40 exit 0 | 40 exit 0 |
OLD | NEW |