OLD | NEW |
1 #!/bin/bash -e | 1 #!/bin/bash -e |
2 | 2 |
3 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 3 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
4 # Use of this source code is governed by a BSD-style license that can be | 4 # Use of this source code is governed by a BSD-style license that can be |
5 # found in the LICENSE file. | 5 # found in the LICENSE file. |
6 | 6 |
7 # Script to install everything needed to build chromium (well, ideally, anyway) | 7 # Script to install everything needed to build chromium (well, ideally, anyway) |
8 # See http://code.google.com/p/chromium/wiki/LinuxBuildInstructions | 8 # See http://code.google.com/p/chromium/wiki/LinuxBuildInstructions |
9 # and http://code.google.com/p/chromium/wiki/LinuxBuild64Bit | 9 # and http://code.google.com/p/chromium/wiki/LinuxBuild64Bit |
10 | 10 |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 # Packages need for development | 58 # Packages need for development |
59 dev_list="apache2.2-bin bison curl elfutils fakeroot flex g++ gperf | 59 dev_list="apache2.2-bin bison curl elfutils fakeroot flex g++ gperf |
60 language-pack-fr libapache2-mod-php5 libasound2-dev libbz2-dev | 60 language-pack-fr libapache2-mod-php5 libasound2-dev libbz2-dev |
61 libcairo2-dev libcups2-dev libcurl4-gnutls-dev libdbus-glib-1-dev | 61 libcairo2-dev libcups2-dev libcurl4-gnutls-dev libdbus-glib-1-dev |
62 libelf-dev libgconf2-dev libgl1-mesa-dev libglib2.0-dev | 62 libelf-dev libgconf2-dev libgl1-mesa-dev libglib2.0-dev |
63 libglu1-mesa-dev libgnome-keyring-dev libgtk2.0-dev | 63 libglu1-mesa-dev libgnome-keyring-dev libgtk2.0-dev |
64 libkrb5-dev libnspr4-dev libnss3-dev libpam0g-dev libsctp-dev | 64 libkrb5-dev libnspr4-dev libnss3-dev libpam0g-dev libsctp-dev |
65 libsqlite3-dev libssl-dev libudev-dev libwww-perl libxslt1-dev | 65 libsqlite3-dev libssl-dev libudev-dev libwww-perl libxslt1-dev |
66 libxss-dev libxt-dev libxtst-dev mesa-common-dev patch | 66 libxss-dev libxt-dev libxtst-dev mesa-common-dev patch |
67 perl php5-cgi pkg-config python python-cherrypy3 python-dev | 67 perl php5-cgi pkg-config python python-cherrypy3 python-dev |
68 python-mod-pywebsocket python-psutil rpm ruby subversion | 68 python-psutil rpm ruby subversion ttf-dejavu-core ttf-indic-fonts |
69 ttf-dejavu-core ttf-indic-fonts ttf-kochi-gothic ttf-kochi-mincho | 69 ttf-kochi-gothic ttf-kochi-mincho ttf-thai-tlwg wdiff git-core |
70 ttf-thai-tlwg wdiff git-core $chromeos_dev_list" | 70 $chromeos_dev_list" |
71 | 71 |
72 # 64-bit systems need a minimum set of 32-bit compat packages for the pre-built | 72 # 64-bit systems need a minimum set of 32-bit compat packages for the pre-built |
73 # NaCL binaries. These are always needed, regardless of whether or not we want | 73 # NaCL binaries. These are always needed, regardless of whether or not we want |
74 # the full 32-bit "cross-compile" support (--lib32). | 74 # the full 32-bit "cross-compile" support (--lib32). |
75 if [ "$(uname -m)" = "x86_64" ]; then | 75 if [ "$(uname -m)" = "x86_64" ]; then |
76 dev_list="${dev_list} libc6-i386 lib32gcc1" | 76 dev_list="${dev_list} libc6-i386 lib32gcc1" |
77 fi | 77 fi |
78 | 78 |
79 # Run-time libraries required by chromeos only | 79 # Run-time libraries required by chromeos only |
80 chromeos_lib_list="libpulse0 libbz2-1.0 libcurl4-gnutls-dev" | 80 chromeos_lib_list="libpulse0 libbz2-1.0 libcurl4-gnutls-dev" |
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
405 sed -e 's/[.]so[.][0-9].*/.so/' | | 405 sed -e 's/[.]so[.][0-9].*/.so/' | |
406 sort -u); do | 406 sort -u); do |
407 [ "x${i##*/}" = "xld-linux.so" ] && continue | 407 [ "x${i##*/}" = "xld-linux.so" ] && continue |
408 [ -r "$i" ] && continue | 408 [ -r "$i" ] && continue |
409 j="$(ls "$i."* | sed -e 's/.*[.]so[.]\([^.]*\)$/\1/;t;d' | | 409 j="$(ls "$i."* | sed -e 's/.*[.]so[.]\([^.]*\)$/\1/;t;d' | |
410 sort -n | tail -n 1)" | 410 sort -n | tail -n 1)" |
411 [ -r "$i.$j" ] || continue | 411 [ -r "$i.$j" ] || continue |
412 sudo ln -s "${i##*/}.$j" "$i" | 412 sudo ln -s "${i##*/}.$j" "$i" |
413 done | 413 done |
414 fi | 414 fi |
OLD | NEW |