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

Side by Side Diff: ports/bzip2/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/busybox/build.sh ('k') | ports/cairo/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
7 source ../../build_tools/common.sh
8 6
9 ConfigureStep() { 7 ConfigureStep() {
10 ChangeDir ${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME} 8 ChangeDir ${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME}
11 } 9 }
12 10
13 BuildStep() { 11 BuildStep() {
14 make clean 12 make clean
15 make CC="${NACLCC}" AR="${NACLAR}" RANLIB="${NACLRANLIB}" -j${OS_JOBS} libbz2. a 13 make CC="${NACLCC}" AR="${NACLAR}" RANLIB="${NACLRANLIB}" -j${OS_JOBS} libbz2. a
16 if [ ${NACL_GLIBC} = 1 ]; then 14 if [ ${NACL_GLIBC} = 1 ]; then
17 LogExecute make -f Makefile-libbz2_so clean 15 LogExecute make -f Makefile-libbz2_so clean
(...skipping 10 matching lines...) Expand all
28 LogExecute chmod a+r ${NACLPORTS_PREFIX}/include/bzlib.h 26 LogExecute chmod a+r ${NACLPORTS_PREFIX}/include/bzlib.h
29 27
30 LogExecute mkdir -p ${NACLPORTS_PREFIX}/lib 28 LogExecute mkdir -p ${NACLPORTS_PREFIX}/lib
31 LogExecute cp -f libbz2.a ${NACLPORTS_PREFIX}/lib 29 LogExecute cp -f libbz2.a ${NACLPORTS_PREFIX}/lib
32 if [ -f libbz2.so.1.0 ]; then 30 if [ -f libbz2.so.1.0 ]; then
33 LogExecute ln -s libbz2.so.1.0 libbz2.so 31 LogExecute ln -s libbz2.so.1.0 libbz2.so
34 LogExecute cp -af libbz2.so* ${NACLPORTS_PREFIX}/lib 32 LogExecute cp -af libbz2.so* ${NACLPORTS_PREFIX}/lib
35 fi 33 fi
36 LogExecute chmod a+r ${NACLPORTS_PREFIX}/lib/libbz2.* 34 LogExecute chmod a+r ${NACLPORTS_PREFIX}/lib/libbz2.*
37 } 35 }
38
39 PackageInstall
40 exit 0
OLDNEW
« no previous file with comments | « ports/busybox/build.sh ('k') | ports/cairo/build.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698