OLD | NEW |
1 #!/bin/bash -e | 1 #!/bin/bash -e |
2 | 2 |
3 # Copyright (c) 2009 The Chromium Authors. All rights reserved. | 3 # Copyright (c) 2009 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 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 echo | 133 echo |
134 fi | 134 fi |
135 | 135 |
136 # Packages needed for chromeos only | 136 # Packages needed for chromeos only |
137 chromeos_dev_list="libpulse-dev" | 137 chromeos_dev_list="libpulse-dev" |
138 | 138 |
139 # Packages need for development | 139 # Packages need for development |
140 dev_list="apache2 bison fakeroot flex g++ gperf libapache2-mod-php5 | 140 dev_list="apache2 bison fakeroot flex g++ gperf libapache2-mod-php5 |
141 libasound2-dev libbz2-dev libcairo2-dev libdbus-glib-1-dev | 141 libasound2-dev libbz2-dev libcairo2-dev libdbus-glib-1-dev |
142 libgconf2-dev libgl1-mesa-dev libglu1-mesa-dev libglib2.0-dev | 142 libgconf2-dev libgl1-mesa-dev libglu1-mesa-dev libglib2.0-dev |
143 libgtk2.0-dev libjpeg62-dev libnspr4-dev libnss3-dev libpam0g-dev | 143 libgnome-keyring-dev libgtk2.0-dev libjpeg62-dev libnspr4-dev |
144 libsqlite3-dev libxslt1-dev libxss-dev lighttpd mesa-common-dev | 144 libnss3-dev libpam0g-dev libsqlite3-dev libxslt1-dev libxss-dev |
145 msttcorefonts patch perl php5-cgi pkg-config python python-dev rpm | 145 lighttpd mesa-common-dev msttcorefonts patch perl php5-cgi pkg-config |
146 subversion ttf-dejavu-core ttf-kochi-gothic ttf-kochi-mincho wdiff | 146 python python-dev rpm subversion ttf-dejavu-core ttf-kochi-gothic |
147 libcurl4-gnutls-dev $chromeos_dev_list" | 147 ttf-kochi-mincho wdiff libcurl4-gnutls-dev $chromeos_dev_list" |
148 | 148 |
149 # Run-time libraries required by chromeos only | 149 # Run-time libraries required by chromeos only |
150 chromeos_lib_list="libpulse0" | 150 chromeos_lib_list="libpulse0" |
151 | 151 |
152 # Full list of required run-time libraries | 152 # Full list of required run-time libraries |
153 lib_list="libatk1.0-0 libc6 libasound2 libcairo2 libdbus-glib-1-2 libexpat1 | 153 lib_list="libatk1.0-0 libc6 libasound2 libcairo2 libdbus-glib-1-2 libexpat1 |
154 libfontconfig1 libfreetype6 libglib2.0-0 libgtk2.0-0 libnspr4-0d | 154 libfontconfig1 libfreetype6 libglib2.0-0 libgnome-keyring0 libgtk2.0-0 |
155 libnss3-1d libpango1.0-0 libpcre3 libpixman-1-0 libpng12-0 libstdc++6 | 155 libnspr4-0d libnss3-1d libpango1.0-0 libpcre3 libpixman-1-0 libpng12-0 |
156 libsqlite3-0 libx11-6 libxau6 libxcb1 libxcomposite1 | 156 libstdc++6 libsqlite3-0 libx11-6 libxau6 libxcb1 libxcomposite1 |
157 libxcursor1 libxdamage1 libxdmcp6 libxext6 libxfixes3 libxi6 | 157 libxcursor1 libxdamage1 libxdmcp6 libxext6 libxfixes3 libxi6 |
158 libxinerama1 libxrandr2 libxrender1 zlib1g $chromeos_lib_list" | 158 libxinerama1 libxrandr2 libxrender1 zlib1g $chromeos_lib_list" |
159 | 159 |
160 # Debugging symbols for all of the run-time libraries | 160 # Debugging symbols for all of the run-time libraries |
161 dbg_list="libatk1.0-dbg libc6-dbg libcairo2-dbg | 161 dbg_list="libatk1.0-dbg libc6-dbg libcairo2-dbg |
162 libfontconfig1-dbg libglib2.0-0-dbg libgtk2.0-0-dbg libnspr4-0d-dbg | 162 libfontconfig1-dbg libglib2.0-0-dbg libgtk2.0-0-dbg libnspr4-0d-dbg |
163 libnss3-1d-dbg libpango1.0-0-dbg libpcre3-dbg libpixman-1-0-dbg | 163 libnss3-1d-dbg libpango1.0-0-dbg libpcre3-dbg libpixman-1-0-dbg |
164 libx11-6-dbg libxau6-dbg libxcb1-dbg libxcomposite1-dbg | 164 libx11-6-dbg libxau6-dbg libxcb1-dbg libxcomposite1-dbg |
165 libxcursor1-dbg libxdamage1-dbg libxdmcp6-dbg libxext6-dbg | 165 libxcursor1-dbg libxdamage1-dbg libxdmcp6-dbg libxext6-dbg |
166 libxfixes3-dbg libxi6-dbg libxinerama1-dbg libxrandr2-dbg | 166 libxfixes3-dbg libxi6-dbg libxinerama1-dbg libxrandr2-dbg |
167 libxrender1-dbg zlib1g-dbg" | 167 libxrender1-dbg zlib1g-dbg" |
168 | 168 |
169 # CUPS package changed it's name from hardy to the next version. Include | 169 # CUPS package changed its name from hardy to the next version. Include |
170 # proper package here depending on the system. | 170 # proper package here depending on the system. |
171 if egrep -q 'Ubuntu (8\.04|8\.10)' /etc/issue; then | 171 if egrep -q 'Ubuntu (8\.04|8\.10)' /etc/issue; then |
172 dev_list="${dev_list} libcupsys2-dev" | 172 dev_list="${dev_list} libcupsys2-dev" |
173 else | 173 else |
174 dev_list="${dev_list} libcups2-dev" | 174 dev_list="${dev_list} libcups2-dev" |
175 fi | 175 fi |
176 | 176 |
177 # Waits for the user to press 'Y' or 'N'. Either uppercase of lowercase is | 177 # Waits for the user to press 'Y' or 'N'. Either uppercase of lowercase is |
178 # accepted. Returns 0 for 'Y' and 1 for 'N'. If an optional parameter has | 178 # accepted. Returns 0 for 'Y' and 1 for 'N'. If an optional parameter has |
179 # been provided to yes_no(), the function also accepts RETURN as a user input. | 179 # been provided to yes_no(), the function also accepts RETURN as a user input. |
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
448 sed -e 's/[.]so[.][0-9].*/.so/' | | 448 sed -e 's/[.]so[.][0-9].*/.so/' | |
449 sort -u); do | 449 sort -u); do |
450 [ "x${i##*/}" = "xld-linux.so" ] && continue | 450 [ "x${i##*/}" = "xld-linux.so" ] && continue |
451 [ -r "$i" ] && continue | 451 [ -r "$i" ] && continue |
452 j="$(ls "$i."* | sed -e 's/.*[.]so[.]\([^.]*\)$/\1/;t;d' | | 452 j="$(ls "$i."* | sed -e 's/.*[.]so[.]\([^.]*\)$/\1/;t;d' | |
453 sort -n | tail -n 1)" | 453 sort -n | tail -n 1)" |
454 [ -r "$i.$j" ] || continue | 454 [ -r "$i.$j" ] || continue |
455 sudo ln -s "${i##*/}.$j" "$i" | 455 sudo ln -s "${i##*/}.$j" "$i" |
456 done | 456 done |
457 fi | 457 fi |
OLD | NEW |