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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 fi | 53 fi |
54 | 54 |
55 # Packages needed for chromeos only | 55 # Packages needed for chromeos only |
56 chromeos_dev_list="libbluetooth-dev libpulse-dev" | 56 chromeos_dev_list="libbluetooth-dev libpulse-dev" |
57 | 57 |
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 libelf-dev | 61 libcairo2-dev libcups2-dev libcurl4-gnutls-dev libelf-dev |
62 libgconf2-dev libgl1-mesa-dev libglib2.0-dev libglu1-mesa-dev | 62 libgconf2-dev libgl1-mesa-dev libglib2.0-dev libglu1-mesa-dev |
63 libgnome-keyring-dev libgtk2.0-dev libkrb5-dev libnspr4-dev | 63 libgnome-keyring-dev libgtk2.0-dev libwebkit-dev libkrb5-dev |
64 libnss3-dev libpam0g-dev libpci-dev libsctp-dev libsqlite3-dev | 64 libnspr4-dev libnss3-dev libpam0g-dev libpci-dev libsctp-dev |
65 libssl-dev libudev-dev libwww-perl libxslt1-dev libxss-dev libxt-dev | 65 libsqlite3-dev libssl-dev libudev-dev libwww-perl libxslt1-dev |
66 libxtst-dev mesa-common-dev patch perl php5-cgi pkg-config python | 66 libxss-dev libxt-dev libxtst-dev mesa-common-dev patch perl php5-cgi |
67 python-cherrypy3 python-dev python-psutil rpm ruby subversion | 67 pkg-config python python-cherrypy3 python-dev python-psutil rpm ruby |
68 ttf-dejavu-core ttf-indic-fonts ttf-kochi-gothic ttf-kochi-mincho | 68 subversion ttf-dejavu-core ttf-indic-fonts ttf-kochi-gothic |
69 ttf-thai-tlwg wdiff git-core $chromeos_dev_list" | 69 ttf-kochi-mincho ttf-thai-tlwg wdiff git-core $chromeos_dev_list" |
70 | 70 |
71 # 64-bit systems need a minimum set of 32-bit compat packages for the pre-built | 71 # 64-bit systems need a minimum set of 32-bit compat packages for the pre-built |
72 # NaCl binaries. These are always needed, regardless of whether or not we want | 72 # NaCl binaries. These are always needed, regardless of whether or not we want |
73 # the full 32-bit "cross-compile" support (--lib32). | 73 # the full 32-bit "cross-compile" support (--lib32). |
74 if [ "$(uname -m)" = "x86_64" ]; then | 74 if [ "$(uname -m)" = "x86_64" ]; then |
75 dev_list="${dev_list} libc6-i386 lib32gcc1 lib32stdc++6" | 75 dev_list="${dev_list} libc6-i386 lib32gcc1 lib32stdc++6" |
76 fi | 76 fi |
77 | 77 |
78 # Run-time libraries required by chromeos only | 78 # Run-time libraries required by chromeos only |
79 chromeos_lib_list="libpulse0 libbz2-1.0 libcurl4-gnutls-dev" | 79 chromeos_lib_list="libpulse0 libbz2-1.0 libcurl4-gnutls-dev" |
(...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
402 sed -e 's/[.]so[.][0-9].*/.so/' | | 402 sed -e 's/[.]so[.][0-9].*/.so/' | |
403 sort -u); do | 403 sort -u); do |
404 [ "x${i##*/}" = "xld-linux.so" ] && continue | 404 [ "x${i##*/}" = "xld-linux.so" ] && continue |
405 [ -r "$i" ] && continue | 405 [ -r "$i" ] && continue |
406 j="$(ls "$i."* | sed -e 's/.*[.]so[.]\([^.]*\)$/\1/;t;d' | | 406 j="$(ls "$i."* | sed -e 's/.*[.]so[.]\([^.]*\)$/\1/;t;d' | |
407 sort -n | tail -n 1)" | 407 sort -n | tail -n 1)" |
408 [ -r "$i.$j" ] || continue | 408 [ -r "$i.$j" ] || continue |
409 sudo ln -s "${i##*/}.$j" "$i" | 409 sudo ln -s "${i##*/}.$j" "$i" |
410 done | 410 done |
411 fi | 411 fi |
OLD | NEW |