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

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: 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-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 14 matching lines...) Expand all
25 CustomBuildStep() { 25 CustomBuildStep() {
26 make clean 26 make clean
27 make CC=${NACLCC} AR=${NACLAR} RANLIB=${NACLRANLIB} -j${OS_JOBS} libbz2.a 27 make CC=${NACLCC} AR=${NACLAR} RANLIB=${NACLRANLIB} -j${OS_JOBS} libbz2.a
28 } 28 }
29 29
30 CustomInstallStep() { 30 CustomInstallStep() {
31 # assumes pwd has makefile 31 # assumes pwd has makefile
32 32
33 # Don't rely on make install, as it implicitly builds executables 33 # Don't rely on make install, as it implicitly builds executables
34 # that need things not available in newlib. 34 # that need things not available in newlib.
35 mkdir -p ${NACL_SDK_USR}/include 35 mkdir -p ${NACLPORTS_PREFIX}/include
36 cp -f bzlib.h ${NACL_SDK_USR}/include 36 cp -f bzlib.h ${NACLPORTS_PREFIX}/include
37 chmod a+r ${NACL_SDK_USR}/include/bzlib.h 37 chmod a+r ${NACLPORTS_PREFIX}/include/bzlib.h
38 mkdir -p ${NACL_SDK_USR}/lib 38 mkdir -p ${NACLPORTS_PREFIX}/lib
39 cp -f libbz2.a ${NACL_SDK_USR}/lib 39 cp -f libbz2.a ${NACLPORTS_PREFIX}/lib
40 chmod a+r ${NACL_SDK_USR}/lib/libbz2.a 40 chmod a+r ${NACLPORTS_PREFIX}/lib/libbz2.a
41 41
42 DefaultTouchStep 42 DefaultTouchStep
43 } 43 }
44 44
45 CustomPackageInstall() { 45 CustomPackageInstall() {
46 DefaultPreInstallStep 46 DefaultPreInstallStep
47 DefaultDownloadStep 47 DefaultDownloadStep
48 DefaultExtractStep 48 DefaultExtractStep
49 # bzip2 doesn't need patching, so no patch step 49 # bzip2 doesn't need patching, so no patch step
50 CustomConfigureStep 50 CustomConfigureStep
51 CustomBuildStep 51 CustomBuildStep
52 CustomInstallStep 52 CustomInstallStep
53 DefaultCleanUpStep 53 DefaultCleanUpStep
54 } 54 }
55 55
56 56
57 CustomPackageInstall 57 CustomPackageInstall
58 exit 0 58 exit 0
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698