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-freetype-2.1.10.sh | 7 # nacl-freetype-2.1.10.sh |
8 # | 8 # |
9 # usage: nacl-freetype-2.1.10.sh | 9 # usage: nacl-freetype-2.1.10.sh |
10 # | 10 # |
11 # this script downloads, patches, and builds freetype for Native Client | 11 # this script downloads, patches, and builds freetype 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 CustomInstallStep() { | 17 CustomInstallStep() { |
18 # do the regular make install | 18 # do the regular make install |
19 make install | 19 make install |
20 # move freetype up a directory so #include <freetype/freetype.h> works... | 20 # move freetype up a directory so #include <freetype/freetype.h> works... |
21 Remove ${NACL_SDK_USR_INCLUDE}/freetype | 21 Remove ${NACLPORTS_INCLUDE}/freetype |
22 cp -R ${NACL_SDK_USR_INCLUDE}/freetype2/freetype ${NACL_SDK_USR_INCLUDE}/. | 22 cp -R ${NACLPORTS_INCLUDE}/freetype2/freetype ${NACLPORTS_INCLUDE}/. |
23 Remove ${NACL_SDK_USR_INCLUDE}/freetype2 | 23 Remove ${NACLPORTS_INCLUDE}/freetype2 |
24 DefaultTouchStep | 24 DefaultTouchStep |
25 } | 25 } |
26 | 26 |
27 | 27 |
28 CustomPackageInstall() { | 28 CustomPackageInstall() { |
29 DefaultPreInstallStep | 29 DefaultPreInstallStep |
30 DefaultDownloadStep | 30 DefaultDownloadStep |
31 DefaultExtractStep | 31 DefaultExtractStep |
32 DefaultPatchStep | 32 DefaultPatchStep |
33 DefaultConfigureStep | 33 DefaultConfigureStep |
34 DefaultBuildStep | 34 DefaultBuildStep |
35 CustomInstallStep | 35 CustomInstallStep |
36 DefaultCleanUpStep | 36 DefaultCleanUpStep |
37 } | 37 } |
38 | 38 |
39 | 39 |
40 CustomPackageInstall | 40 CustomPackageInstall |
41 exit 0 | 41 exit 0 |
42 | 42 |
OLD | NEW |