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

Side by Side Diff: libraries/bzip2-1.0.6/nacl-bzip2-1.0.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
« no previous file with comments | « libraries/boost_1_47_0/nacl-boost_1_47_0.sh ('k') | libraries/dreadthread/nacl-dreadthread.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 6
7 # nacl-bzip2-1.0.6.sh 7 # nacl-bzip2-1.0.6.sh
8 # 8 #
9 # usage: nacl-bzip2-1.0.6.sh 9 # usage: nacl-bzip2-1.0.6.sh
10 # 10 #
(...skipping 10 matching lines...) Expand all
21 CustomBuildStep() { 21 CustomBuildStep() {
22 make clean 22 make clean
23 make CC=${NACLCC} AR=${NACLAR} RANLIB=${NACLRANLIB} -j${OS_JOBS} libbz2.a 23 make CC=${NACLCC} AR=${NACLAR} RANLIB=${NACLRANLIB} -j${OS_JOBS} libbz2.a
24 } 24 }
25 25
26 CustomInstallStep() { 26 CustomInstallStep() {
27 # assumes pwd has makefile 27 # assumes pwd has makefile
28 28
29 # Don't rely on make install, as it implicitly builds executables 29 # Don't rely on make install, as it implicitly builds executables
30 # that need things not available in newlib. 30 # that need things not available in newlib.
31 mkdir -p ${NACL_SDK_USR}/include 31 mkdir -p ${NACLPORTS_PREFIX}/include
32 cp -f bzlib.h ${NACL_SDK_USR}/include 32 cp -f bzlib.h ${NACLPORTS_PREFIX}/include
33 chmod a+r ${NACL_SDK_USR}/include/bzlib.h 33 chmod a+r ${NACLPORTS_PREFIX}/include/bzlib.h
34 mkdir -p ${NACL_SDK_USR}/lib 34 mkdir -p ${NACLPORTS_PREFIX}/lib
35 cp -f libbz2.a ${NACL_SDK_USR}/lib 35 cp -f libbz2.a ${NACLPORTS_PREFIX}/lib
36 chmod a+r ${NACL_SDK_USR}/lib/libbz2.a 36 chmod a+r ${NACLPORTS_PREFIX}/lib/libbz2.a
37 37
38 DefaultTouchStep 38 DefaultTouchStep
39 } 39 }
40 40
41 CustomPackageInstall() { 41 CustomPackageInstall() {
42 DefaultPreInstallStep 42 DefaultPreInstallStep
43 DefaultDownloadStep 43 DefaultDownloadStep
44 DefaultExtractStep 44 DefaultExtractStep
45 # bzip2 doesn't need patching, so no patch step 45 # bzip2 doesn't need patching, so no patch step
46 CustomConfigureStep 46 CustomConfigureStep
47 CustomBuildStep 47 CustomBuildStep
48 CustomInstallStep 48 CustomInstallStep
49 DefaultCleanUpStep 49 DefaultCleanUpStep
50 } 50 }
51 51
52 52
53 CustomPackageInstall 53 CustomPackageInstall
54 exit 0 54 exit 0
OLDNEW
« no previous file with comments | « libraries/boost_1_47_0/nacl-boost_1_47_0.sh ('k') | libraries/dreadthread/nacl-dreadthread.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698