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

Side by Side Diff: ports/Mesa/build.sh

Issue 132343007: Add top level build script for building packages. (Closed) Base URL: https://naclports.googlecode.com/svn/trunk/src
Patch Set: Created 6 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
« no previous file with comments | « ports/ImageMagick/build.sh ('k') | ports/OpenSceneGraph/build.sh » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 source pkg_info 6 BUILD_DIR=${SRC_DIR}
7 source ../../build_tools/common.sh
8 7
9 ConfigureStep() { 8 ConfigureStep() {
10 # export the nacl tools 9 # export the nacl tools
11 export CC=${NACLCC} 10 export CC=${NACLCC}
12 export CXX=${NACLCXX} 11 export CXX=${NACLCXX}
13 export AR=${NACLAR} 12 export AR=${NACLAR}
14 export LD=${NACLLD} 13 export LD=${NACLLD}
15 export RANLIB=${NACLRANLIB} 14 export RANLIB=${NACLRANLIB}
16 export PKG_CONFIG_PATH=${NACLPORTS_PREFIX}/lib/pkgconfig 15 export PKG_CONFIG_PATH=${NACLPORTS_PREFIX}/lib/pkgconfig
17 export PKG_CONFIG_LIBDIR=${NACLPORTS_PREFIX}/lib 16 export PKG_CONFIG_LIBDIR=${NACLPORTS_PREFIX}/lib
18 export PATH=${NACL_BIN_PATH}:${PATH}; 17 export PATH=${NACL_BIN_PATH}:${PATH};
19 export X11_INCLUDES= 18 export X11_INCLUDES=
20 ChangeDir ${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME} 19 ChangeDir ${BUILD_DIR}
21 ./configure \ 20 ./configure \
22 --host=nacl \ 21 --host=nacl \
23 --enable-static \ 22 --enable-static \
24 --prefix=${NACLPORTS_PREFIX} \ 23 --prefix=${NACLPORTS_PREFIX} \
25 --exec-prefix=${NACLPORTS_PREFIX} \ 24 --exec-prefix=${NACLPORTS_PREFIX} \
26 --libdir=${NACLPORTS_PREFIX}/lib \ 25 --libdir=${NACLPORTS_PREFIX}/lib \
27 --oldincludedir=${NACLPORTS_PREFIX}/include \ 26 --oldincludedir=${NACLPORTS_PREFIX}/include \
28 --datarootdir=${NACLPORTS_PREFIX} \ 27 --datarootdir=${NACLPORTS_PREFIX} \
29 --disable-gl-osmesa \ 28 --disable-gl-osmesa \
30 --with-x=no \ 29 --with-x=no \
31 --with-driver=osmesa \ 30 --with-driver=osmesa \
32 --disable-asm \ 31 --disable-asm \
33 --disable-glut \ 32 --disable-glut \
34 --disable-gallium \ 33 --disable-gallium \
35 --disable-egl \ 34 --disable-egl \
36 --disable-glw 35 --disable-glw
37 } 36 }
38 37
39 38
40 InstallStep() { 39 InstallStep() {
41 # assumes pwd has makefile 40 # assumes pwd has makefile
42 make install 41 make install
43 } 42 }
44
45
46 PackageInstall
47 exit 0
OLDNEW
« no previous file with comments | « ports/ImageMagick/build.sh ('k') | ports/OpenSceneGraph/build.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698