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

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: 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 readonly URL=http://commondatastorage.googleapis.com/nativeclient-mirror/nacl/Me saLib-7.6.tar.gz 14 readonly URL=http://commondatastorage.googleapis.com/nativeclient-mirror/nacl/Me saLib-7.6.tar.gz
15 #readonly URL=http://www.sfr-fresh.com/unix/misc/MesaLib-7.6.tar.gz 15 #readonly URL=http://www.sfr-fresh.com/unix/misc/MesaLib-7.6.tar.gz
16 readonly PATCH_FILE=nacl-Mesa-7.6.patch 16 readonly PATCH_FILE=nacl-Mesa-7.6.patch
17 readonly PACKAGE_NAME=Mesa-7.6 17 readonly PACKAGE_NAME=Mesa-7.6
18 18
19 source ../../build_tools/common.sh 19 source ../../build_tools/common.sh
20 20
21 CustomConfigureStep() { 21 CustomConfigureStep() {
22 # export the nacl tools 22 # export the nacl tools
23 export CC=${NACLCC} 23 export CC=${NACLCC}
24 export CXX=${NACLCXX} 24 export CXX=${NACLCXX}
25 export AR=${NACLAR} 25 export AR=${NACLAR}
26 export LD=${NACLLD} 26 export LD=${NACLLD}
27 export RANLIB=${NACLRANLIB} 27 export RANLIB=${NACLRANLIB}
28 export PKG_CONFIG_PATH=${NACL_SDK_USR}/lib/pkgconfig 28 export PKG_CONFIG_PATH=${NACLPORTS_PREFIX}/lib/pkgconfig
29 export PKG_CONFIG_LIBDIR=${NACL_SDK_USR}/lib 29 export PKG_CONFIG_LIBDIR=${NACLPORTS_PREFIX}/lib
30 export PATH=${NACL_BIN_PATH}:${PATH}; 30 export PATH=${NACL_BIN_PATH}:${PATH};
31 export X11_INCLUDES= 31 export X11_INCLUDES=
32 cd ${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME} 32 cd ${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME}
33 ./configure \ 33 ./configure \
34 --host=nacl \ 34 --host=nacl \
35 --disable-shared \ 35 --disable-shared \
36 --enable-static \ 36 --enable-static \
37 --prefix=${NACL_SDK_USR} \ 37 --prefix=${NACLPORTS_PREFIX} \
38 --exec-prefix=${NACL_SDK_USR} \ 38 --exec-prefix=${NACLPORTS_PREFIX} \
39 --libdir=${NACL_SDK_USR}/lib \ 39 --libdir=${NACLPORTS_PREFIX}/lib \
40 --oldincludedir=${NACL_SDK_USR}/include \ 40 --oldincludedir=${NACLPORTS_PREFIX}/include \
41 --datarootdir=${NACL_SDK_USR} \ 41 --datarootdir=${NACLPORTS_PREFIX} \
42 --disable-gl-osmesa \ 42 --disable-gl-osmesa \
43 --with-x=no \ 43 --with-x=no \
44 --with-driver=osmesa \ 44 --with-driver=osmesa \
45 --disable-asm \ 45 --disable-asm \
46 --disable-glut \ 46 --disable-glut \
47 --disable-gallium \ 47 --disable-gallium \
48 --disable-egl \ 48 --disable-egl \
49 --disable-glw 49 --disable-glw
50 } 50 }
51 51
(...skipping 12 matching lines...) Expand all
64 DefaultPatchStep 64 DefaultPatchStep
65 CustomConfigureStep 65 CustomConfigureStep
66 DefaultBuildStep 66 DefaultBuildStep
67 CustomInstallStep 67 CustomInstallStep
68 DefaultCleanUpStep 68 DefaultCleanUpStep
69 } 69 }
70 70
71 71
72 CustomPackageInstall 72 CustomPackageInstall
73 exit 0 73 exit 0
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698