| OLD | NEW |
| 1 #!/bin/bash | 1 #!/bin/bash |
| 2 # Copyright (c) 2013 The Native Client Authors. All rights reserved. | 2 # Copyright (c) 2013 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 source pkg_info | |
| 7 source ../../build_tools/common.sh | |
| 8 | 6 |
| 9 # override the extract step since the github generated tarball | 7 # override the extract step since the github generated tarball |
| 10 # puts all the files in regal-SHA1HASH folder | 8 # puts all the files in regal-SHA1HASH folder |
| 11 ExtractStep() { | 9 ExtractStep() { |
| 12 ArchiveName | 10 ArchiveName |
| 13 Banner "Untaring ${ARCHIVE_NAME}" | 11 Banner "Untaring ${ARCHIVE_NAME}" |
| 14 ChangeDir ${NACL_PACKAGES_REPOSITORY} | 12 ChangeDir ${NACL_PACKAGES_REPOSITORY} |
| 15 Remove ${PACKAGE_NAME} | 13 Remove ${PACKAGE_NAME} |
| 16 MakeDir ${PACKAGE_NAME} | 14 MakeDir ${PACKAGE_NAME} |
| 17 ChangeDir ${PACKAGE_NAME} | 15 ChangeDir ${PACKAGE_NAME} |
| (...skipping 14 matching lines...) Expand all Loading... |
| 32 | 30 |
| 33 | 31 |
| 34 InstallStep() { | 32 InstallStep() { |
| 35 Banner "Install ${PACKAGE_NAME}" | 33 Banner "Install ${PACKAGE_NAME}" |
| 36 cp -a lib/nacl-${NACL_ARCH}/libRegal*.a ${NACLPORTS_LIBDIR} | 34 cp -a lib/nacl-${NACL_ARCH}/libRegal*.a ${NACLPORTS_LIBDIR} |
| 37 if [ "${NACL_GLIBC}" = 1 ]; then | 35 if [ "${NACL_GLIBC}" = 1 ]; then |
| 38 cp -a lib/nacl-${NACL_ARCH}/libRegal*.so* ${NACLPORTS_LIBDIR} | 36 cp -a lib/nacl-${NACL_ARCH}/libRegal*.so* ${NACLPORTS_LIBDIR} |
| 39 fi | 37 fi |
| 40 cp -r include/GL ${NACLPORTS_INCLUDE} | 38 cp -r include/GL ${NACLPORTS_INCLUDE} |
| 41 } | 39 } |
| 42 | |
| 43 | |
| 44 PackageInstall | |
| 45 exit 0 | |
| OLD | NEW |