Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(430)

Side by Side Diff: libraries/Mesa-7.6/nacl-Mesa-7.6.sh

Issue 11885025: Allow re-targeting of naclports install (Closed) Base URL: http://naclports.googlecode.com/svn/trunk/src
Patch Set: rebase Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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-Mesa-7.6.sh 7 # nacl-Mesa-7.6.sh
8 # 8 #
9 # usage: nacl-Mesa-7.6.sh 9 # usage: nacl-Mesa-7.6.sh
10 # 10 #
11 # this script downloads, patches, and builds Mesa for Native Client 11 # this script downloads, patches, and builds Mesa for Native Client
12 # 12 #
13 13
14 source pkg_info 14 source pkg_info
15 source ../../build_tools/common.sh 15 source ../../build_tools/common.sh
16 16
17 CustomConfigureStep() { 17 CustomConfigureStep() {
18 # export the nacl tools 18 # export the nacl tools
19 export CC=${NACLCC} 19 export CC=${NACLCC}
20 export CXX=${NACLCXX} 20 export CXX=${NACLCXX}
21 export AR=${NACLAR} 21 export AR=${NACLAR}
22 export LD=${NACLLD} 22 export LD=${NACLLD}
23 export RANLIB=${NACLRANLIB} 23 export RANLIB=${NACLRANLIB}
24 export PKG_CONFIG_PATH=${NACL_SDK_USR}/lib/pkgconfig 24 export PKG_CONFIG_PATH=${NACLPORTS_PREFIX}/lib/pkgconfig
25 export PKG_CONFIG_LIBDIR=${NACL_SDK_USR}/lib 25 export PKG_CONFIG_LIBDIR=${NACLPORTS_PREFIX}/lib
26 export PATH=${NACL_BIN_PATH}:${PATH}; 26 export PATH=${NACL_BIN_PATH}:${PATH};
27 export X11_INCLUDES= 27 export X11_INCLUDES=
28 cd ${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME} 28 cd ${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME}
29 ./configure \ 29 ./configure \
30 --host=nacl \ 30 --host=nacl \
31 --disable-shared \ 31 --disable-shared \
32 --enable-static \ 32 --enable-static \
33 --prefix=${NACL_SDK_USR} \ 33 --prefix=${NACLPORTS_PREFIX} \
34 --exec-prefix=${NACL_SDK_USR} \ 34 --exec-prefix=${NACLPORTS_PREFIX} \
35 --libdir=${NACL_SDK_USR}/lib \ 35 --libdir=${NACLPORTS_PREFIX}/lib \
36 --oldincludedir=${NACL_SDK_USR}/include \ 36 --oldincludedir=${NACLPORTS_PREFIX}/include \
37 --datarootdir=${NACL_SDK_USR} \ 37 --datarootdir=${NACLPORTS_PREFIX} \
38 --disable-gl-osmesa \ 38 --disable-gl-osmesa \
39 --with-x=no \ 39 --with-x=no \
40 --with-driver=osmesa \ 40 --with-driver=osmesa \
41 --disable-asm \ 41 --disable-asm \
42 --disable-glut \ 42 --disable-glut \
43 --disable-gallium \ 43 --disable-gallium \
44 --disable-egl \ 44 --disable-egl \
45 --disable-glw 45 --disable-glw
46 } 46 }
47 47
(...skipping 12 matching lines...) Expand all
60 DefaultPatchStep 60 DefaultPatchStep
61 CustomConfigureStep 61 CustomConfigureStep
62 DefaultBuildStep 62 DefaultBuildStep
63 CustomInstallStep 63 CustomInstallStep
64 DefaultCleanUpStep 64 DefaultCleanUpStep
65 } 65 }
66 66
67 67
68 CustomPackageInstall 68 CustomPackageInstall
69 exit 0 69 exit 0
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698