| 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-pixman-0.16.2.sh | 7 # nacl-pixman-0.16.2.sh |
| 8 # | 8 # |
| 9 # usage: nacl-pixman-0.16.2.sh | 9 # usage: nacl-pixman-0.16.2.sh |
| 10 # | 10 # |
| 11 # this script downloads, patches, and builds pixman for Native Client | 11 # this script downloads, patches, and builds pixman for Native Client |
| 12 # | 12 # |
| 13 | 13 |
| 14 readonly URL=http://commondatastorage.googleapis.com/nativeclient-mirror/nacl/pi
xman-0.16.2.tar.gz | 14 readonly URL=http://commondatastorage.googleapis.com/nativeclient-mirror/nacl/pi
xman-0.16.2.tar.gz |
| 15 #readonly URL=http://cairographics.org/releases/pixman-0.16.2.tar.gz | 15 #readonly URL=http://cairographics.org/releases/pixman-0.16.2.tar.gz |
| 16 readonly PATCH_FILE=nacl-pixman-0.16.2.patch | 16 readonly PATCH_FILE=nacl-pixman-0.16.2.patch |
| 17 readonly PACKAGE_NAME=pixman-0.16.2 | 17 readonly PACKAGE_NAME=pixman-0.16.2 |
| 18 | 18 |
| 19 source ../../build_tools/common.sh | 19 source ../../build_tools/common.sh |
| 20 | 20 |
| 21 CustomConfigureStep() { | 21 CustomConfigureStep() { |
| 22 Banner "Configuring ${PACKAGE_NAME}" | 22 Banner "Configuring ${PACKAGE_NAME}" |
| 23 # export the nacl tools | 23 # export the nacl tools |
| 24 export CC=${NACLCC} | 24 export CC=${NACLCC} |
| 25 export CXX=${NACLCXX} | 25 export CXX=${NACLCXX} |
| 26 export AR=${NACLAR} | 26 export AR=${NACLAR} |
| 27 export RANLIB=${NACLRANLIB} | 27 export RANLIB=${NACLRANLIB} |
| 28 export PKG_CONFIG_PATH=${NACL_SDK_USR_LIB}/pkgconfig | 28 export PKG_CONFIG_PATH=${NACLPORTS_LIBDIR}/pkgconfig |
| 29 export PKG_CONFIG_LIBDIR=${NACL_SDK_USR_LIB} | 29 export PKG_CONFIG_LIBDIR=${NACLPORTS_LIBDIR} |
| 30 export PATH=${NACL_BIN_PATH}:${PATH}; | 30 export PATH=${NACL_BIN_PATH}:${PATH}; |
| 31 ChangeDir ${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME} | 31 ChangeDir ${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME} |
| 32 Remove ${PACKAGE_NAME}-build | 32 Remove ${PACKAGE_NAME}-build |
| 33 MakeDir ${PACKAGE_NAME}-build | 33 MakeDir ${PACKAGE_NAME}-build |
| 34 cd ${PACKAGE_NAME}-build | 34 cd ${PACKAGE_NAME}-build |
| 35 PERL=/bin/true \ | 35 PERL=/bin/true \ |
| 36 ../configure \ | 36 ../configure \ |
| 37 --host=nacl \ | 37 --host=nacl \ |
| 38 --disable-shared \ | 38 --disable-shared \ |
| 39 --prefix=${NACL_SDK_USR} \ | 39 --prefix=${NACLPORTS_PREFIX} \ |
| 40 --exec-prefix=${NACL_SDK_USR} \ | 40 --exec-prefix=${NACLPORTS_PREFIX} \ |
| 41 --libdir=${NACL_SDK_USR_LIB} \ | 41 --libdir=${NACLPORTS_LIBDIR} \ |
| 42 --oldincludedir=${NACL_SDK_USR_INCLUDE} \ | 42 --oldincludedir=${NACLPORTS_INCLUDE} \ |
| 43 --with-http=off \ | 43 --with-http=off \ |
| 44 --with-html=off \ | 44 --with-html=off \ |
| 45 --with-ftp=off \ | 45 --with-ftp=off \ |
| 46 --with-x=no \ | 46 --with-x=no \ |
| 47 --${NACL_OPTION}-mmx \ | 47 --${NACL_OPTION}-mmx \ |
| 48 --${NACL_OPTION}-sse2 | 48 --${NACL_OPTION}-sse2 |
| 49 } | 49 } |
| 50 | 50 |
| 51 | 51 |
| 52 CustomPackageInstall() { | 52 CustomPackageInstall() { |
| 53 DefaultPreInstallStep | 53 DefaultPreInstallStep |
| 54 DefaultDownloadStep | 54 DefaultDownloadStep |
| 55 DefaultExtractStep | 55 DefaultExtractStep |
| 56 DefaultPatchStep | 56 DefaultPatchStep |
| 57 CustomConfigureStep | 57 CustomConfigureStep |
| 58 DefaultBuildStep | 58 DefaultBuildStep |
| 59 DefaultInstallStep | 59 DefaultInstallStep |
| 60 DefaultCleanUpStep | 60 DefaultCleanUpStep |
| 61 } | 61 } |
| 62 | 62 |
| 63 | 63 |
| 64 CustomPackageInstall | 64 CustomPackageInstall |
| 65 exit 0 | 65 exit 0 |
| OLD | NEW |