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

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: 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
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 #
11 # this script downloads, patches, and builds SDL for Native Client 11 # this script downloads, patches, and builds SDL for Native Client
12 # 12 #
13 13
14 source pkg_info 14 source pkg_info
15 source ../../build_tools/common.sh 15 source ../../build_tools/common.sh
16 16
17 export LIBS=-lnosys 17 export LIBS=-lnosys
18 18
19 CustomConfigureStep() { 19 CustomConfigureStep() {
20 Banner "Configuring ${PACKAGE_NAME}" 20 Banner "Configuring ${PACKAGE_NAME}"
21 # export the nacl tools 21 # export the nacl tools
22 export CC=${NACLCC} 22 export CC=${NACLCC}
23 export CXX=${NACLCXX} 23 export CXX=${NACLCXX}
24 export AR=${NACLAR} 24 export AR=${NACLAR}
25 export RANLIB=${NACLRANLIB} 25 export RANLIB=${NACLRANLIB}
26 export CFLAGS="-I${NACL_SDK_ROOT}/include" 26 export CFLAGS="-I${NACL_SDK_ROOT}/include"
27 export PKG_CONFIG_PATH=${NACL_SDK_USR_LIB}/pkgconfig 27 export PKG_CONFIG_PATH=${NACLPORTS_LIBDIR}/pkgconfig
28 export PKG_CONFIG_LIBDIR=${NACL_SDK_USR_LIB} 28 export PKG_CONFIG_LIBDIR=${NACLPORTS_LIBDIR}
29 export PATH=${NACL_BIN_PATH}:${PATH}; 29 export PATH=${NACL_BIN_PATH}:${PATH};
30 ChangeDir ${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME} 30 ChangeDir ${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME}
31 ./autogen.sh 31 ./autogen.sh
32 32
33 # TODO(khim): remove this when nacl-gcc -V doesn't lockup. 33 # TODO(khim): remove this when nacl-gcc -V doesn't lockup.
34 # See: http://code.google.com/p/nativeclient/issues/detail?id=2074 34 # See: http://code.google.com/p/nativeclient/issues/detail?id=2074
35 TemporaryVersionWorkaround 35 TemporaryVersionWorkaround
36 ChangeDir ${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME} 36 ChangeDir ${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME}
37 37
38 Remove ${PACKAGE_NAME}-build 38 Remove ${PACKAGE_NAME}-build
39 MakeDir ${PACKAGE_NAME}-build 39 MakeDir ${PACKAGE_NAME}-build
40 cd ${PACKAGE_NAME}-build 40 cd ${PACKAGE_NAME}-build
41 set -x 41 set -x
42 ../configure \ 42 ../configure \
43 --host=nacl \ 43 --host=nacl \
44 --disable-assembly \ 44 --disable-assembly \
45 --disable-pthread-sem \ 45 --disable-pthread-sem \
46 --disable-shared \ 46 --disable-shared \
47 --prefix=${NACL_SDK_USR} \ 47 --prefix=${NACLPORTS_PREFIX} \
48 --exec-prefix=${NACL_SDK_USR} \ 48 --exec-prefix=${NACLPORTS_PREFIX} \
49 --libdir=${NACL_SDK_USR_LIB} \ 49 --libdir=${NACLPORTS_LIBDIR} \
50 --oldincludedir=${NACL_SDK_USR_INCLUDE} 50 --oldincludedir=${NACLPORTS_INCLUDE}
51 set +x 51 set +x
52 } 52 }
53 53
54 CustomPackageInstall() { 54 CustomPackageInstall() {
55 DefaultPreInstallStep 55 DefaultPreInstallStep
56 DefaultDownloadStep 56 DefaultDownloadStep
57 DefaultExtractStep 57 DefaultExtractStep
58 DefaultPatchStep 58 DefaultPatchStep
59 CustomConfigureStep 59 CustomConfigureStep
60 DefaultBuildStep 60 DefaultBuildStep
61 DefaultInstallStep 61 DefaultInstallStep
62 DefaultCleanUpStep 62 DefaultCleanUpStep
63 } 63 }
64 64
65 CustomPackageInstall 65 CustomPackageInstall
66 exit 0 66 exit 0
OLDNEW
« no previous file with comments | « libraries/OpenSceneGraph-2.9.7/nacl-OpenSceneGraph-2.9.7.sh ('k') | libraries/SDL_mixer-1.2.11/nacl-SDL_mixer-1.2.11.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698