OLD | NEW |
1 #!/bin/sh | 1 #!/bin/sh |
2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2012 The Chromium 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 # This is a convenience for installing prerequisites that seem to be often | 6 # This is a convenience for installing prerequisites that seem to be often |
7 # missing. | 7 # missing. |
8 | 8 |
9 PPATH=/usr/lib/pkgconfig | 9 PPATH=/usr/lib/pkgconfig |
10 LPATH="$(pwd)" | 10 LPATH="$(pwd)" |
11 export PKG_CONFIG_PATH="${PPATH}" | 11 export PKG_CONFIG_PATH="${PPATH}" |
12 | 12 |
13 function getxfromy() { | 13 function getxfromy() { |
14 if [ \! -f "${PPATH}"/"$1".pc ] ; then | 14 case "$1" in |
| 15 */*) testpath="$1" ;; |
| 16 *) testpath="${PPATH}"/"$1".pc ;; |
| 17 esac |
| 18 if [ \! -f "${testpath}" ] ; then |
15 sudo apt-get install "$2" | 19 sudo apt-get install "$2" |
16 fi | 20 fi |
17 } | 21 } |
18 | 22 |
19 getxfromy pixman-1 libpixman-1-dev | 23 getxfromy pixman-1 libpixman-1-dev |
20 getxfromy fixesproto x11proto-fixes-dev | 24 getxfromy fixesproto x11proto-fixes-dev |
21 getxfromy damageproto x11proto-damage-dev | 25 getxfromy damageproto x11proto-damage-dev |
22 getxfromy xcmiscproto x11proto-xcmisc-dev | 26 getxfromy xcmiscproto x11proto-xcmisc-dev |
23 getxfromy bigreqsproto x11proto-bigreqs-dev | 27 getxfromy bigreqsproto x11proto-bigreqs-dev |
24 getxfromy randrproto x11proto-randr-dev | 28 getxfromy randrproto x11proto-randr-dev |
25 getxfromy renderproto x11proto-render-dev | 29 getxfromy renderproto x11proto-render-dev |
26 getxfromy fontsproto x11proto-fonts-dev | 30 getxfromy fontsproto x11proto-fonts-dev |
27 getxfromy videoproto x11proto-video-dev | 31 getxfromy videoproto x11proto-video-dev |
28 getxfromy compositeproto x11proto-composite-dev | 32 getxfromy compositeproto x11proto-composite-dev |
29 getxfromy scrnsaverproto x11proto-scrnsaver-dev | 33 getxfromy scrnsaverproto x11proto-scrnsaver-dev |
30 getxfromy resourceproto x11proto-resource-dev | 34 getxfromy resourceproto x11proto-resource-dev |
31 getxfromy xineramaproto x11proto-xinerama-dev | 35 getxfromy xineramaproto x11proto-xinerama-dev |
32 getxfromy pciaccess libpciaccess-dev | 36 getxfromy pciaccess libpciaccess-dev |
33 getxfromy gl libgl1-mesa-dev | 37 getxfromy gl libgl1-mesa-dev |
34 getxfromy glproto x11proto-gl-dev | 38 getxfromy glproto x11proto-gl-dev |
35 getxfromy xf86driproto x11proto-xf86dri-dev | 39 getxfromy xf86driproto x11proto-xf86dri-dev |
36 getxfromy fontenc libfontenc-dev | 40 getxfromy fontenc libfontenc-dev |
37 getxfromy makedepend xutils-dev | 41 getxfromy makedepend xutils-dev |
38 getxfromy talloc libfontenc-dev | 42 getxfromy talloc libfontenc-dev |
39 getxfromy autoconf autoconf | 43 getxfromy autoconf autoconf |
40 getxfromy libtool libtool | 44 getxfromy libtool libtool |
| 45 getxfromy ffi ffi-dev |
| 46 getxfromy /usr/bin/llvm-config llvm-dev |
OLD | NEW |