| 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 readonly URL=http://commondatastorage.googleapis.com/nativeclient-mirror/nacl/fr
eetype-2.1.10.tar.gz | 14 readonly URL=http://commondatastorage.googleapis.com/nativeclient-mirror/nacl/fr
eetype-2.1.10.tar.gz |
| 15 #readonly URL=http://download.savannah.gnu.org/releases/freetype/freetype-2.1.10
.tar.gz | 15 #readonly URL=http://download.savannah.gnu.org/releases/freetype/freetype-2.1.10
.tar.gz |
| 16 readonly PATCH_FILE=nacl-freetype-2.1.10.patch | 16 readonly PATCH_FILE=nacl-freetype-2.1.10.patch |
| 17 readonly PACKAGE_NAME=freetype-2.1.10 | 17 readonly PACKAGE_NAME=freetype-2.1.10 |
| 18 | 18 |
| 19 source ../../build_tools/common.sh | 19 source ../../build_tools/common.sh |
| 20 | 20 |
| 21 CustomInstallStep() { | 21 CustomInstallStep() { |
| 22 # do the regular make install | 22 # do the regular make install |
| 23 make install | 23 make install |
| 24 # move freetype up a directory so #include <freetype/freetype.h> works... | 24 # move freetype up a directory so #include <freetype/freetype.h> works... |
| 25 Remove ${NACL_SDK_USR_INCLUDE}/freetype | 25 Remove ${NACLPORTS_INCLUDE}/freetype |
| 26 cp -R ${NACL_SDK_USR_INCLUDE}/freetype2/freetype ${NACL_SDK_USR_INCLUDE}/. | 26 cp -R ${NACLPORTS_INCLUDE}/freetype2/freetype ${NACLPORTS_INCLUDE}/. |
| 27 Remove ${NACL_SDK_USR_INCLUDE}/freetype2 | 27 Remove ${NACLPORTS_INCLUDE}/freetype2 |
| 28 DefaultTouchStep | 28 DefaultTouchStep |
| 29 } | 29 } |
| 30 | 30 |
| 31 | 31 |
| 32 CustomPackageInstall() { | 32 CustomPackageInstall() { |
| 33 DefaultPreInstallStep | 33 DefaultPreInstallStep |
| 34 DefaultDownloadStep | 34 DefaultDownloadStep |
| 35 DefaultExtractStep | 35 DefaultExtractStep |
| 36 DefaultPatchStep | 36 DefaultPatchStep |
| 37 DefaultConfigureStep | 37 DefaultConfigureStep |
| 38 DefaultBuildStep | 38 DefaultBuildStep |
| 39 CustomInstallStep | 39 CustomInstallStep |
| 40 DefaultCleanUpStep | 40 DefaultCleanUpStep |
| 41 } | 41 } |
| 42 | 42 |
| 43 | 43 |
| 44 CustomPackageInstall | 44 CustomPackageInstall |
| 45 exit 0 | 45 exit 0 |
| 46 | 46 |
| OLD | NEW |