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

Side by Side Diff: libraries/boost_1_43_0/nacl-boost_1_43_0.sh

Issue 8060015: Update boost to 1.47.0 and, with glibc, build more boost libraries. (Closed) Base URL: http://naclports.googlecode.com/svn/trunk/src/
Patch Set: '' Created 9 years, 2 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
(Empty)
1 #!/bin/bash
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
4 # found in the LICENSE file.
5 #
6
7 # nacl-boost-1.43.0.sh
8 #
9 # usage: nacl-boost-1.43.0.sh
10 #
11 # this script downloads, patches, and builds boost for Native Client
12 #
13
14 readonly URL=http://commondatastorage.googleapis.com/nativeclient-mirror/nacl/bo ost_1_43_0.tar.gz
15 #readonly URL=http://sourceforge.net/projects/boost/files/boost/1.43.0/boost_1_4 3_0.tar.gz/download
16 readonly PATCH_FILE=nacl-boost_1_43_0.patch
17 readonly PACKAGE_NAME=boost_1_43_0
18
19 source ../../build_tools/common.sh
20
21 CustomConfigureStep() {
22 Banner "Configuring ${PACKAGE_NAME}"
23 # export the nacl tools
24 export CC=${NACLCC}
25 export CXX=${NACLCXX}
26 export AR=${NACLAR}
27 export RANLIB=${NACLRANLIB}
28 export LIB_BOOST_DATETIME=libboost_datetime.a
29 export LIB_BOOST_PROGRAM_OPTIONS=libboost_program_options.a
30 ChangeDir ${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME}
31 }
32
33 CustomInstallStep() {
34 Remove ${NACL_SDK_USR_INCLUDE}/boost
35 tar cf - --exclude='asio.hpp' --exclude='asio' --exclude='mpi.hpp' --exclude=' mpi' boost | ( ChangeDir ${NACL_SDK_USR_INCLUDE}; tar xfp -)
36 Remove ${NACL_SDK_USR_LIB}/${LIB_BOOST_DATETIME}
37 install -m 644 ${LIB_BOOST_DATETIME} ${NACL_SDK_USR_LIB}/${LIB_BOOST_DATETIME}
38 Remove ${NACL_SDK_USR_LIB}/${LIB_BOOST_PROGRAM_OPTIONS}
39 install -m 644 ${LIB_BOOST_PROGRAM_OPTIONS} ${NACL_SDK_USR_LIB}/${LIB_BOOST_PR OGRAM_OPTIONS}
40 }
41
42 CustomPackageInstall() {
43 DefaultPreInstallStep
44 DefaultDownloadStep
45 DefaultExtractStep
46 DefaultPatchStep
47 CustomConfigureStep
48 DefaultBuildStep
49 CustomInstallStep
50 DefaultCleanUpStep
51 }
52
53 CustomPackageInstall
54 exit 0
OLDNEW
« no previous file with comments | « libraries/boost_1_43_0/nacl-boost_1_43_0.patch ('k') | libraries/boost_1_47_0/boost_1_47_0.sha1 » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698