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

Side by Side Diff: libraries/SDL-1.2.14/nacl-SDL-1.2.14.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-SDL-1.2.14.sh 7 # nacl-SDL-1.2.14.sh
8 # 8 #
9 # usage: nacl-SDL-1.2.14.sh 9 # usage: nacl-SDL-1.2.14.sh
10 # 10 #
(...skipping 10 matching lines...) Expand all
21 export LIBS=-lnosys 21 export LIBS=-lnosys
22 22
23 CustomConfigureStep() { 23 CustomConfigureStep() {
24 Banner "Configuring ${PACKAGE_NAME}" 24 Banner "Configuring ${PACKAGE_NAME}"
25 # export the nacl tools 25 # export the nacl tools
26 export CC=${NACLCC} 26 export CC=${NACLCC}
27 export CXX=${NACLCXX} 27 export CXX=${NACLCXX}
28 export AR=${NACLAR} 28 export AR=${NACLAR}
29 export RANLIB=${NACLRANLIB} 29 export RANLIB=${NACLRANLIB}
30 export CFLAGS="-I${NACL_SDK_ROOT}/include" 30 export CFLAGS="-I${NACL_SDK_ROOT}/include"
31 export PKG_CONFIG_PATH=${NACL_SDK_USR_LIB}/pkgconfig 31 export PKG_CONFIG_PATH=${NACLPORTS_LIBDIR}/pkgconfig
32 export PKG_CONFIG_LIBDIR=${NACL_SDK_USR_LIB} 32 export PKG_CONFIG_LIBDIR=${NACLPORTS_LIBDIR}
33 export PATH=${NACL_BIN_PATH}:${PATH}; 33 export PATH=${NACL_BIN_PATH}:${PATH};
34 ChangeDir ${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME} 34 ChangeDir ${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME}
35 ./autogen.sh 35 ./autogen.sh
36 36
37 # TODO(khim): remove this when nacl-gcc -V doesn't lockup. 37 # TODO(khim): remove this when nacl-gcc -V doesn't lockup.
38 # See: http://code.google.com/p/nativeclient/issues/detail?id=2074 38 # See: http://code.google.com/p/nativeclient/issues/detail?id=2074
39 TemporaryVersionWorkaround 39 TemporaryVersionWorkaround
40 ChangeDir ${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME} 40 ChangeDir ${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME}
41 41
42 Remove ${PACKAGE_NAME}-build 42 Remove ${PACKAGE_NAME}-build
43 MakeDir ${PACKAGE_NAME}-build 43 MakeDir ${PACKAGE_NAME}-build
44 cd ${PACKAGE_NAME}-build 44 cd ${PACKAGE_NAME}-build
45 set -x 45 set -x
46 ../configure \ 46 ../configure \
47 --host=nacl \ 47 --host=nacl \
48 --disable-assembly \ 48 --disable-assembly \
49 --disable-pthread-sem \ 49 --disable-pthread-sem \
50 --disable-shared \ 50 --disable-shared \
51 --prefix=${NACL_SDK_USR} \ 51 --prefix=${NACLPORTS_PREFIX} \
52 --exec-prefix=${NACL_SDK_USR} \ 52 --exec-prefix=${NACLPORTS_PREFIX} \
53 --libdir=${NACL_SDK_USR_LIB} \ 53 --libdir=${NACLPORTS_LIBDIR} \
54 --oldincludedir=${NACL_SDK_USR_INCLUDE} 54 --oldincludedir=${NACLPORTS_INCLUDE}
55 set +x 55 set +x
56 } 56 }
57 57
58 CustomPackageInstall() { 58 CustomPackageInstall() {
59 DefaultPreInstallStep 59 DefaultPreInstallStep
60 DefaultDownloadStep 60 DefaultDownloadStep
61 DefaultExtractStep 61 DefaultExtractStep
62 DefaultPatchStep 62 DefaultPatchStep
63 CustomConfigureStep 63 CustomConfigureStep
64 DefaultBuildStep 64 DefaultBuildStep
65 DefaultInstallStep 65 DefaultInstallStep
66 DefaultCleanUpStep 66 DefaultCleanUpStep
67 } 67 }
68 68
69 CustomPackageInstall 69 CustomPackageInstall
70 exit 0 70 exit 0
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698