OLD | NEW |
1 #!/bin/bash | 1 #!/bin/bash |
2 # Copyright (c) 2012 The Native Client Authors. All rights reserved. | 2 # Copyright (c) 2012 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-thttpd-2.25.sh | 7 # nacl-thttpd-2.25.sh |
8 # | 8 # |
9 # Usage: nacl-thttpd-2.25.sh | 9 # Usage: nacl-thttpd-2.25.sh |
10 # | 10 # |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 # export the nacl tools | 42 # export the nacl tools |
43 export CC=${NACLCC} | 43 export CC=${NACLCC} |
44 export NACLXX=${NACLCXX} | 44 export NACLXX=${NACLCXX} |
45 export CXX=${NACLCXX} | 45 export CXX=${NACLCXX} |
46 if [ ${NACL_ARCH} = "pnacl" ] ; then | 46 if [ ${NACL_ARCH} = "pnacl" ] ; then |
47 export NACL_CCFLAGS="-O3 -g" | 47 export NACL_CCFLAGS="-O3 -g" |
48 export NACL_LDFLAGS="-O0 -static" | 48 export NACL_LDFLAGS="-O0 -static" |
49 fi | 49 fi |
50 export AR=${NACLAR} | 50 export AR=${NACLAR} |
51 export RANLIB=${NACLRANLIB} | 51 export RANLIB=${NACLRANLIB} |
52 export PKG_CONFIG_PATH=${NACL_SDK_USR_LIB}/pkgconfig | 52 export PKG_CONFIG_PATH=${NACLPORTS_LIBDIR}/pkgconfig |
53 export PKG_CONFIG_LIBDIR=${NACL_SDK_USR_LIB} | 53 export PKG_CONFIG_LIBDIR=${NACLPORTS_LIBDIR} |
54 export PATH=${NACL_BIN_PATH}:${PATH}; | 54 export PATH=${NACL_BIN_PATH}:${PATH}; |
55 local PACKAGE_DIR="${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME}" | 55 local PACKAGE_DIR="${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME}" |
56 ChangeDir ${PACKAGE_DIR} | 56 ChangeDir ${PACKAGE_DIR} |
57 make thttpd | 57 make thttpd |
58 } | 58 } |
59 | 59 |
60 CustomInstallStep() { | 60 CustomInstallStep() { |
61 PUBLISH_DIR="${NACL_PACKAGES_PUBLISH}/${PACKAGE_NAME}" | 61 PUBLISH_DIR="${NACL_PACKAGES_PUBLISH}/${PACKAGE_NAME}" |
62 local PACKAGE_DIR="${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME}" | 62 local PACKAGE_DIR="${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME}" |
63 MakeDir ${PUBLISH_DIR} | 63 MakeDir ${PUBLISH_DIR} |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 DefaultExtractStep | 104 DefaultExtractStep |
105 DefaultPatchStep | 105 DefaultPatchStep |
106 PreConfigureStep | 106 PreConfigureStep |
107 CustomBuildStep | 107 CustomBuildStep |
108 CustomInstallStep | 108 CustomInstallStep |
109 DefaultCleanUpStep | 109 DefaultCleanUpStep |
110 } | 110 } |
111 | 111 |
112 CustomPackageInstall | 112 CustomPackageInstall |
113 exit 0 | 113 exit 0 |
OLD | NEW |