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-glib-2.28.8.sh | 7 # nacl-glib-2.28.8.sh |
8 # | 8 # |
9 # usage: nacl-glib-2.28.8.sh | 9 # usage: nacl-glib-2.28.8.sh |
10 # | 10 # |
11 # this script downloads, patches, and builds glib for Native Client | 11 # this script downloads, patches, and builds glib for Native Client |
12 # | 12 # |
13 | 13 |
14 readonly URL=http://commondatastorage.googleapis.com/nativeclient-mirror/nacl/pa
ngo-1.29.3.tar.bz2 | 14 readonly URL=http://commondatastorage.googleapis.com/nativeclient-mirror/nacl/pa
ngo-1.29.3.tar.bz2 |
15 # readonly URL=http://ftp.gnome.org/pub/GNOME/sources/pango/1.29/pango-1.29.3.ta
r.bz2 | 15 # readonly URL=http://ftp.gnome.org/pub/GNOME/sources/pango/1.29/pango-1.29.3.ta
r.bz2 |
16 readonly PATCH_FILE=nacl-pango-1.29.3.patch | 16 readonly PATCH_FILE=nacl-pango-1.29.3.patch |
17 readonly PACKAGE_NAME=pango-1.29.3 | 17 readonly PACKAGE_NAME=pango-1.29.3 |
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 ../configure \ | 35 ../configure \ |
36 --host=nacl \ | 36 --host=nacl \ |
37 --disable-shared \ | 37 --disable-shared \ |
38 --prefix=${NACL_SDK_USR} \ | 38 --prefix=${NACLPORTS_PREFIX} \ |
39 --exec-prefix=${NACL_SDK_USR} \ | 39 --exec-prefix=${NACLPORTS_PREFIX} \ |
40 --libdir=${NACL_SDK_USR_LIB} \ | 40 --libdir=${NACLPORTS_LIBDIR} \ |
41 --oldincludedir=${NACL_SDK_USR_INCLUDE} \ | 41 --oldincludedir=${NACLPORTS_INCLUDE} \ |
42 --${NACL_OPTION}-mmx \ | 42 --${NACL_OPTION}-mmx \ |
43 --${NACL_OPTION}-sse \ | 43 --${NACL_OPTION}-sse \ |
44 --${NACL_OPTION}-sse2 \ | 44 --${NACL_OPTION}-sse2 \ |
45 --${NACL_OPTION}-asm \ | 45 --${NACL_OPTION}-asm \ |
46 --with-x=no \ | 46 --with-x=no \ |
47 --with-included-modules \ | 47 --with-included-modules \ |
48 --without-dynamic-modules | 48 --without-dynamic-modules |
49 } | 49 } |
50 | 50 |
51 | 51 |
52 CustomPackageInstall() { | 52 CustomPackageInstall() { |
53 DefaultPreInstallStep | 53 DefaultPreInstallStep |
54 DefaultDownloadBzipStep | 54 DefaultDownloadBzipStep |
55 DefaultExtractBzipStep | 55 DefaultExtractBzipStep |
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 |