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/glib-2.28.8/nacl-glib-2.28.8.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-glib-2.28.8.sh 7 # nacl-glib-2.28.8.sh
8 # 8 #
9 # usage: nacl-glib-2.28.8.sh 9 # usage: nacl-glib-2.28.8.sh
10 # 10 #
11 # this script downloads, patches, and builds glib for Native Client 11 # this script downloads, patches, and builds glib for Native Client
12 # 12 #
13 13
14 readonly URL=http://commondatastorage.googleapis.com/nativeclient-mirror/nacl/gl ib-2.28.8.tar.bz2 14 readonly URL=http://commondatastorage.googleapis.com/nativeclient-mirror/nacl/gl ib-2.28.8.tar.bz2
15 # readonly URL=http://ftp.gnome.org/pub/gnome/sources/glib/2.28/glib-2.28.8.tar. bz2 15 # readonly URL=http://ftp.gnome.org/pub/gnome/sources/glib/2.28/glib-2.28.8.tar. bz2
16 readonly PATCH_FILE=nacl-glib-2.28.8.patch 16 readonly PATCH_FILE=nacl-glib-2.28.8.patch
17 readonly PACKAGE_NAME=glib-2.28.8 17 readonly PACKAGE_NAME=glib-2.28.8
18 18
19 source ../../build_tools/common.sh 19 source ../../build_tools/common.sh
20 20
21 CustomConfigureStep() { 21 CustomConfigureStep() {
22 Banner "Configuring ${PACKAGE_NAME}" 22 Banner "Configuring ${PACKAGE_NAME}"
23 # export the nacl tools 23 # export the nacl tools
24 export CC=${NACLCC} 24 export CC=${NACLCC}
25 export CXX=${NACLCXX} 25 export CXX=${NACLCXX}
26 export AR=${NACLAR} 26 export AR=${NACLAR}
27 export RANLIB=${NACLRANLIB} 27 export RANLIB=${NACLRANLIB}
28 export PKG_CONFIG_PATH=${NACL_SDK_USR_LIB}/pkgconfig 28 export PKG_CONFIG_PATH=${NACLPORTS_LIBDIR}/pkgconfig
29 export PKG_CONFIG_LIBDIR=${NACL_SDK_USR_LIB} 29 export PKG_CONFIG_LIBDIR=${NACLPORTS_LIBDIR}
30 export PATH=${NACL_BIN_PATH}:${PATH}; 30 export PATH=${NACL_BIN_PATH}:${PATH};
31 ChangeDir ${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME} 31 ChangeDir ${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME}
32 Remove ${PACKAGE_NAME}-build 32 Remove ${PACKAGE_NAME}-build
33 MakeDir ${PACKAGE_NAME}-build 33 MakeDir ${PACKAGE_NAME}-build
34 cp nacl.cache ${PACKAGE_NAME}-build/nacl.cache.tmp 34 cp nacl.cache ${PACKAGE_NAME}-build/nacl.cache.tmp
35 cd ${PACKAGE_NAME}-build 35 cd ${PACKAGE_NAME}-build
36 ../configure \ 36 ../configure \
37 --host=nacl \ 37 --host=nacl \
38 --disable-shared \ 38 --disable-shared \
39 --prefix=${NACL_SDK_USR} \ 39 --prefix=${NACLPORTS_PREFIX} \
40 --exec-prefix=${NACL_SDK_USR} \ 40 --exec-prefix=${NACLPORTS_PREFIX} \
41 --libdir=${NACL_SDK_USR_LIB} \ 41 --libdir=${NACLPORTS_LIBDIR} \
42 --oldincludedir=${NACL_SDK_USR_INCLUDE} \ 42 --oldincludedir=${NACLPORTS_INCLUDE} \
43 --${NACL_OPTION}-mmx \ 43 --${NACL_OPTION}-mmx \
44 --${NACL_OPTION}-sse \ 44 --${NACL_OPTION}-sse \
45 --${NACL_OPTION}-sse2 \ 45 --${NACL_OPTION}-sse2 \
46 --${NACL_OPTION}-asm \ 46 --${NACL_OPTION}-asm \
47 --cache-file=nacl.cache.tmp 47 --cache-file=nacl.cache.tmp
48 } 48 }
49 49
50 50
51 CustomPackageInstall() { 51 CustomPackageInstall() {
52 DefaultPreInstallStep 52 DefaultPreInstallStep
53 DefaultDownloadBzipStep 53 DefaultDownloadBzipStep
54 DefaultExtractBzipStep 54 DefaultExtractBzipStep
55 DefaultPatchStep 55 DefaultPatchStep
56 CustomConfigureStep 56 CustomConfigureStep
57 DefaultBuildStep 57 DefaultBuildStep
58 DefaultInstallStep 58 DefaultInstallStep
59 DefaultCleanUpStep 59 DefaultCleanUpStep
60 } 60 }
61 61
62 62
63 CustomPackageInstall 63 CustomPackageInstall
64 exit 0 64 exit 0
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698