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 26 matching lines...) Expand all Loading... |
37 } | 37 } |
38 | 38 |
39 | 39 |
40 CustomConfigureStep() { | 40 CustomConfigureStep() { |
41 Banner "Configuring ${PACKAGE_NAME}" | 41 Banner "Configuring ${PACKAGE_NAME}" |
42 # export the nacl tools | 42 # export the nacl tools |
43 export CC=${NACLCC} | 43 export CC=${NACLCC} |
44 export CXX=${NACLCXX} | 44 export CXX=${NACLCXX} |
45 export AR=${NACLAR} | 45 export AR=${NACLAR} |
46 export RANLIB=${NACLRANLIB} | 46 export RANLIB=${NACLRANLIB} |
47 export PKG_CONFIG_PATH=${NACL_SDK_USR_LIB}/pkgconfig | 47 export PKG_CONFIG_PATH=${NACLPORTS_LIBDIR}/pkgconfig |
48 export PKG_CONFIG_LIBDIR=${NACL_SDK_USR_LIB} | 48 export PKG_CONFIG_LIBDIR=${NACLPORTS_LIBDIR} |
49 export PATH=${NACL_BIN_PATH}:${NACL_SDK_USR}/bin:${PATH}; | 49 export PATH=${NACL_BIN_PATH}:${NACLPORTS_PREFIX}/bin:${PATH}; |
50 ChangeDir ${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME} | 50 ChangeDir ${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME} |
51 chmod a+x install-sh | 51 chmod a+x install-sh |
52 cd ${PACKAGE_NAME}-build | 52 cd ${PACKAGE_NAME}-build |
53 # We'll not build host anyway | 53 # We'll not build host anyway |
54 CC_FOR_BUILD=${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME}/pseudo-gcc \ | 54 CC_FOR_BUILD=${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME}/pseudo-gcc \ |
55 ../configure \ | 55 ../configure \ |
56 --host=nacl \ | 56 --host=nacl \ |
57 --disable-shared \ | 57 --disable-shared \ |
58 --disable-docs \ | 58 --disable-docs \ |
59 --prefix=${NACL_SDK_USR} \ | 59 --prefix=${NACLPORTS_PREFIX} \ |
60 --exec-prefix=${NACL_SDK_USR} \ | 60 --exec-prefix=${NACLPORTS_PREFIX} \ |
61 --libdir=${NACL_SDK_USR_LIB} \ | 61 --libdir=${NACLPORTS_LIBDIR} \ |
62 --oldincludedir=${NACL_SDK_USR_INCLUDE} \ | 62 --oldincludedir=${NACLPORTS_INCLUDE} \ |
63 --with-http=off \ | 63 --with-http=off \ |
64 --with-html=off \ | 64 --with-html=off \ |
65 --with-ftp=off \ | 65 --with-ftp=off \ |
66 --with-x=no \ | 66 --with-x=no \ |
67 --with-arch=x86 | 67 --with-arch=x86 |
68 } | 68 } |
69 | 69 |
70 | 70 |
71 CustomPatchMakefileStep() { | 71 CustomPatchMakefileStep() { |
72 # fontconfig wants to build executable tools. These tools aren't needed | 72 # fontconfig wants to build executable tools. These tools aren't needed |
(...skipping 13 matching lines...) Expand all Loading... |
86 CustomConfigureStep | 86 CustomConfigureStep |
87 CustomPatchMakefileStep | 87 CustomPatchMakefileStep |
88 DefaultBuildStep | 88 DefaultBuildStep |
89 DefaultInstallStep | 89 DefaultInstallStep |
90 DefaultCleanUpStep | 90 DefaultCleanUpStep |
91 } | 91 } |
92 | 92 |
93 | 93 |
94 CustomPackageInstall | 94 CustomPackageInstall |
95 exit 0 | 95 exit 0 |
OLD | NEW |