| 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 # nacl-fontconfig-2.7.3.sh | 6 # nacl-fontconfig-2.7.3.sh |
| 7 # | 7 # |
| 8 # usage: nacl-fontconfig-2.7.3.sh | 8 # usage: nacl-fontconfig-2.7.3.sh |
| 9 # | 9 # |
| 10 # this script downloads, patches, and builds fontconfig for Native Client. | 10 # this script downloads, patches, and builds fontconfig for Native Client. |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 } | 32 } |
| 33 | 33 |
| 34 | 34 |
| 35 CustomConfigureStep() { | 35 CustomConfigureStep() { |
| 36 Banner "Configuring ${PACKAGE_NAME}" | 36 Banner "Configuring ${PACKAGE_NAME}" |
| 37 # export the nacl tools | 37 # export the nacl tools |
| 38 export CC=${NACLCC} | 38 export CC=${NACLCC} |
| 39 export CXX=${NACLCXX} | 39 export CXX=${NACLCXX} |
| 40 export AR=${NACLAR} | 40 export AR=${NACLAR} |
| 41 export RANLIB=${NACLRANLIB} | 41 export RANLIB=${NACLRANLIB} |
| 42 export PKG_CONFIG_PATH=${NACL_SDK_USR_LIB}/pkgconfig | 42 export PKG_CONFIG_PATH=${NACLPORTS_LIBDIR}/pkgconfig |
| 43 export PKG_CONFIG_LIBDIR=${NACL_SDK_USR_LIB} | 43 export PKG_CONFIG_LIBDIR=${NACLPORTS_LIBDIR} |
| 44 export PATH=${NACL_BIN_PATH}:${NACL_SDK_USR}/bin:${PATH}; | 44 export PATH=${NACL_BIN_PATH}:${NACLPORTS_PREFIX}/bin:${PATH}; |
| 45 ChangeDir ${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME} | 45 ChangeDir ${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME} |
| 46 chmod a+x install-sh | 46 chmod a+x install-sh |
| 47 cd ${PACKAGE_NAME}-build | 47 cd ${PACKAGE_NAME}-build |
| 48 # We'll not build host anyway | 48 # We'll not build host anyway |
| 49 CC_FOR_BUILD=${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME}/pseudo-gcc \ | 49 CC_FOR_BUILD=${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME}/pseudo-gcc \ |
| 50 ../configure \ | 50 ../configure \ |
| 51 --host=nacl \ | 51 --host=nacl \ |
| 52 --disable-shared \ | 52 --disable-shared \ |
| 53 --disable-docs \ | 53 --disable-docs \ |
| 54 --prefix=${NACL_SDK_USR} \ | 54 --prefix=${NACLPORTS_PREFIX} \ |
| 55 --exec-prefix=${NACL_SDK_USR} \ | 55 --exec-prefix=${NACLPORTS_PREFIX} \ |
| 56 --libdir=${NACL_SDK_USR_LIB} \ | 56 --libdir=${NACLPORTS_LIBDIR} \ |
| 57 --oldincludedir=${NACL_SDK_USR_INCLUDE} \ | 57 --oldincludedir=${NACLPORTS_INCLUDE} \ |
| 58 --with-http=off \ | 58 --with-http=off \ |
| 59 --with-html=off \ | 59 --with-html=off \ |
| 60 --with-ftp=off \ | 60 --with-ftp=off \ |
| 61 --with-x=no \ | 61 --with-x=no \ |
| 62 --with-arch=x86 | 62 --with-arch=x86 |
| 63 } | 63 } |
| 64 | 64 |
| 65 | 65 |
| 66 CustomPatchMakefileStep() { | 66 CustomPatchMakefileStep() { |
| 67 # fontconfig wants to build executable tools. These tools aren't needed | 67 # fontconfig wants to build executable tools. These tools aren't needed |
| (...skipping 13 matching lines...) Expand all Loading... |
| 81 CustomConfigureStep | 81 CustomConfigureStep |
| 82 CustomPatchMakefileStep | 82 CustomPatchMakefileStep |
| 83 DefaultBuildStep | 83 DefaultBuildStep |
| 84 DefaultInstallStep | 84 DefaultInstallStep |
| 85 DefaultCleanUpStep | 85 DefaultCleanUpStep |
| 86 } | 86 } |
| 87 | 87 |
| 88 | 88 |
| 89 CustomPackageInstall | 89 CustomPackageInstall |
| 90 exit 0 | 90 exit 0 |
| OLD | NEW |