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

Side by Side Diff: libraries/SDL_mixer-1.2.11/nacl-SDL_mixer-1.2.11.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_mixer-1.2.11.sh 7 # nacl-SDL_mixer-1.2.11.sh
8 # 8 #
9 # usage: nacl-SDL_mixer-1.2.11.sh 9 # usage: nacl-SDL_mixer-1.2.11.sh
10 # 10 #
11 # this script downloads, patches, and builds SDL_mixer for Native Client 11 # this script downloads, patches, and builds SDL_mixer for Native Client
12 # 12 #
13 13
14 readonly URL=http://commondatastorage.googleapis.com/nativeclient-mirror/nacl/SD L_mixer-1.2.11.tar.gz 14 readonly URL=http://commondatastorage.googleapis.com/nativeclient-mirror/nacl/SD L_mixer-1.2.11.tar.gz
15 # readonly URL=http://www.libsdl.org/projects/SDL_mixer/release/SDL_mixer-1.2.11 .tar.gz 15 # readonly URL=http://www.libsdl.org/projects/SDL_mixer/release/SDL_mixer-1.2.11 .tar.gz
16 readonly PATCH_FILE=nacl-SDL_mixer-1.2.11.patch 16 readonly PATCH_FILE=nacl-SDL_mixer-1.2.11.patch
17 readonly PACKAGE_NAME=SDL_mixer-1.2.11 17 readonly PACKAGE_NAME=SDL_mixer-1.2.11
18 18
19 source ../../build_tools/common.sh 19 source ../../build_tools/common.sh
20 set -x
20 21
21 CustomConfigureStep() { 22 CustomConfigureStep() {
22 Banner "Configuring ${PACKAGE_NAME}" 23 Banner "Configuring ${PACKAGE_NAME}"
23 # export the nacl tools 24 # export the nacl tools
24 export CC=${NACLCC} 25 export CC=${NACLCC}
25 export CXX=${NACLCXX} 26 export CXX=${NACLCXX}
26 export AR=${NACLAR} 27 export AR=${NACLAR}
27 export RANLIB=${NACLRANLIB} 28 export RANLIB=${NACLRANLIB}
28 export PKG_CONFIG_PATH=${NACL_SDK_USR_LIB}/pkgconfig 29 export PKG_CONFIG_PATH=${NACLPORTS_LIBDIR}/pkgconfig
29 export PKG_CONFIG_LIBDIR=${NACL_SDK_USR_LIB} 30 export PKG_CONFIG_LIBDIR=${NACLPORTS_LIBDIR}
30 # Adding target usr/bin for libmikmod-config 31 # Adding target usr/bin for libmikmod-config
31 export PATH=${NACL_BIN_PATH}:${NACL_SDK_USR}/bin:${PATH}; 32 export PATH=${NACL_BIN_PATH}:${NACLPORTS_PREFIX}/bin:${PATH};
32 export LIBS="-lvorbisfile -lvorbis -logg -lm" 33 export LIBS="-lvorbisfile -lvorbis -logg -lm"
33 ChangeDir ${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME} 34 ChangeDir ${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME}
34 Remove ${PACKAGE_NAME}-build 35 Remove ${PACKAGE_NAME}-build
35 MakeDir ${PACKAGE_NAME}-build 36 MakeDir ${PACKAGE_NAME}-build
36 cd ${PACKAGE_NAME}-build 37 cd ${PACKAGE_NAME}-build
37 ../configure \ 38 ../configure \
38 --host=nacl \ 39 --host=nacl \
39 --disable-shared \ 40 --disable-shared \
40 --prefix=${NACL_SDK_USR} \ 41 --prefix=${NACLPORTS_PREFIX} \
41 --exec-prefix=${NACL_SDK_USR} \ 42 --exec-prefix=${NACLPORTS_PREFIX} \
42 --libdir=${NACL_SDK_USR_LIB} \ 43 --libdir=${NACLPORTS_LIBDIR} \
43 --oldincludedir=${NACL_SDK_USR_INCLUDE} \ 44 --oldincludedir=${NACLPORTS_INCLUDE} \
44 --${NACL_OPTION}-mmx \ 45 --${NACL_OPTION}-mmx \
45 --${NACL_OPTION}-sse \ 46 --${NACL_OPTION}-sse \
46 --${NACL_OPTION}-sse2 \ 47 --${NACL_OPTION}-sse2 \
47 --${NACL_OPTION}-asm \ 48 --${NACL_OPTION}-asm \
48 --with-x=no \ 49 --with-x=no \
49 --disable-music-flac \ 50 --disable-music-flac \
50 --disable-music-mp3 51 --disable-music-mp3
51 } 52 }
52 53
53 54
54 CustomPackageInstall() { 55 CustomPackageInstall() {
55 DefaultPreInstallStep 56 DefaultPreInstallStep
56 DefaultDownloadStep 57 DefaultDownloadStep
57 DefaultExtractStep 58 DefaultExtractStep
58 DefaultPatchStep 59 DefaultPatchStep
59 CustomConfigureStep 60 CustomConfigureStep
60 DefaultBuildStep 61 DefaultBuildStep
61 DefaultInstallStep 62 DefaultInstallStep
62 DefaultCleanUpStep 63 DefaultCleanUpStep
63 } 64 }
64 65
65 66
66 CustomPackageInstall 67 CustomPackageInstall
67 exit 0 68 exit 0
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698