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

Side by Side Diff: libraries/FreeImage-3.14.1/nacl-FreeImage-3.14.1.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-FreeImage-3.14.1.sh 7 # nacl-FreeImage-3.14.1.sh
8 # 8 #
9 # usage: nacl-FreeImage-3.14.1.sh 9 # usage: nacl-FreeImage-3.14.1.sh
10 # 10 #
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 } 69 }
70 70
71 CustomConfigureStep() { 71 CustomConfigureStep() {
72 Banner "Configuring ${PACKAGE_NAME}" 72 Banner "Configuring ${PACKAGE_NAME}"
73 # export the nacl tools 73 # export the nacl tools
74 export CC=${NACLCC} 74 export CC=${NACLCC}
75 export CXX=${NACLCXX} 75 export CXX=${NACLCXX}
76 export AR=${NACLAR} 76 export AR=${NACLAR}
77 export RANLIB=${NACLRANLIB} 77 export RANLIB=${NACLRANLIB}
78 export PATH=${NACL_BIN_PATH}:${PATH}; 78 export PATH=${NACL_BIN_PATH}:${PATH};
79 export INCDIR=${NACL_SDK_USR_INCLUDE} 79 export INCDIR=${NACLPORTS_INCLUDE}
80 export INSTALLDIR=${NACL_SDK_USR_LIB} 80 export INSTALLDIR=${NACLPORTS_LIBDIR}
81 ChangeDir ${NACL_PACKAGES_REPOSITORY}/${PACKAGE_BASE_NAME} 81 ChangeDir ${NACL_PACKAGES_REPOSITORY}/${PACKAGE_BASE_NAME}
82 } 82 }
83 83
84 CustomBuildStep() { 84 CustomBuildStep() {
85 # assumes pwd has makefile 85 # assumes pwd has makefile
86 make OS=nacl clean 86 make OS=nacl clean
87 make OS=nacl -j${OS_JOBS} 87 make OS=nacl -j${OS_JOBS}
88 } 88 }
89 89
90 CustomInstallStep() { 90 CustomInstallStep() {
91 # assumes pwd has makefile 91 # assumes pwd has makefile
92 make OS=nacl install 92 make OS=nacl install
93 DefaultTouchStep 93 DefaultTouchStep
94 } 94 }
95 95
96 CustomPackageInstall() { 96 CustomPackageInstall() {
97 CustomPreInstallStep 97 CustomPreInstallStep
98 CustomDownloadStep 98 CustomDownloadStep
99 CustomExtractStep 99 CustomExtractStep
100 DefaultPatchStep 100 DefaultPatchStep
101 CustomConfigureStep 101 CustomConfigureStep
102 CustomBuildStep 102 CustomBuildStep
103 CustomInstallStep 103 CustomInstallStep
104 DefaultCleanUpStep 104 DefaultCleanUpStep
105 } 105 }
106 106
107 CustomPackageInstall 107 CustomPackageInstall
108 exit 0 108 exit 0
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698