| 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 # This list of files needs to have CRLF (Windows)-style line endings translated | 6 # This list of files needs to have CRLF (Windows)-style line endings translated |
| 7 # to LF (*nix)-style line endings prior to applying the patch. This list of | 7 # to LF (*nix)-style line endings prior to applying the patch. This list of |
| 8 # files is taken from nacl-FreeImage-3.14.1.patch. | 8 # files is taken from nacl-FreeImage-3.14.1.patch. |
| 9 readonly -a CRLF_TRANSLATE_FILES=( | 9 readonly -a CRLF_TRANSLATE_FILES=( |
| 10 "Makefile" | 10 "Makefile" |
| 11 "Source/LibOpenJPEG/opj_includes.h" | 11 "Source/LibOpenJPEG/opj_includes.h" |
| 12 "Source/LibRawLite/dcraw/dcraw.c" | 12 "Source/LibRawLite/dcraw/dcraw.c" |
| 13 "Source/LibRawLite/internal/defines.h" | 13 "Source/LibRawLite/internal/defines.h" |
| 14 "Source/LibRawLite/libraw/libraw.h" | 14 "Source/LibRawLite/libraw/libraw.h" |
| 15 "Source/LibRawLite/src/libraw_cxx.cpp" | 15 "Source/LibRawLite/src/libraw_cxx.cpp" |
| 16 "Source/OpenEXR/Imath/ImathMatrix.h" | 16 "Source/OpenEXR/Imath/ImathMatrix.h" |
| 17 "Source/Utilities.h") | 17 "Source/Utilities.h") |
| 18 | 18 |
| 19 source pkg_info | |
| 20 | 19 |
| 21 # The FreeImage zipfile, unlike other naclports contains a folder | 20 # The FreeImage zipfile, unlike other naclports contains a folder |
| 22 # called FreeImage rather than FreeImage-X-Y-Z, so we set a customr | 21 # called FreeImage rather than FreeImage-X-Y-Z, so we set a customr |
| 23 # PACKAGE_DIR here. | 22 # PACKAGE_DIR here. |
| 24 PACKAGE_DIR=FreeImage | 23 PACKAGE_DIR=FreeImage |
| 25 | 24 |
| 26 source ../../build_tools/common.sh | |
| 27 | 25 |
| 28 | 26 |
| 29 ExtractStep() { | 27 ExtractStep() { |
| 30 DefaultExtractStep | 28 DefaultExtractStep |
| 31 # FreeImage uses CRLF for line-endings. The patch file has LF (Unix-style) | 29 # FreeImage uses CRLF for line-endings. The patch file has LF (Unix-style) |
| 32 # line endings, which means on some versions of patch, the patch fails. Run a | 30 # line endings, which means on some versions of patch, the patch fails. Run a |
| 33 # recursive tr over all the sources to remedy this. | 31 # recursive tr over all the sources to remedy this. |
| 34 # Setting LC_CTYPE is a Mac thing. The locale needs to be set to "C" so that | 32 # Setting LC_CTYPE is a Mac thing. The locale needs to be set to "C" so that |
| 35 # tr interprets the '\r' string as ASCII and not UTF-8. | 33 # tr interprets the '\r' string as ASCII and not UTF-8. |
| 36 ChangeDir ${NACL_PACKAGES_REPOSITORY}/${PACKAGE_DIR} | 34 ChangeDir ${NACL_PACKAGES_REPOSITORY}/${PACKAGE_DIR} |
| (...skipping 24 matching lines...) Expand all Loading... |
| 61 # assumes pwd has makefile | 59 # assumes pwd has makefile |
| 62 LogExecute make OS=nacl clean | 60 LogExecute make OS=nacl clean |
| 63 LogExecute make OS=nacl -j${OS_JOBS} | 61 LogExecute make OS=nacl -j${OS_JOBS} |
| 64 } | 62 } |
| 65 | 63 |
| 66 | 64 |
| 67 InstallStep() { | 65 InstallStep() { |
| 68 # assumes pwd has makefile | 66 # assumes pwd has makefile |
| 69 make OS=nacl install | 67 make OS=nacl install |
| 70 } | 68 } |
| 71 | |
| 72 | |
| 73 PackageInstall | |
| 74 exit 0 | |
| OLD | NEW |