OLD | NEW |
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-OpenSceneGraph-2.9.7.sh | 7 # nacl-OpenSceneGraph-2.9.7.sh |
8 # | 8 # |
9 # usage: nacl-OpenSceneGraph-2.9.7.sh | 9 # usage: nacl-OpenSceneGraph-2.9.7.sh |
10 # | 10 # |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 export RANLIB=${NACLRANLIB} | 48 export RANLIB=${NACLRANLIB} |
49 export PATH=${NACL_BIN_PATH}:${PATH}; | 49 export PATH=${NACL_BIN_PATH}:${PATH}; |
50 export LIB_OSG=libosg.a | 50 export LIB_OSG=libosg.a |
51 export LIB_OSGUTIL=libosgUtil.a | 51 export LIB_OSGUTIL=libosgUtil.a |
52 export LIB_OPENTHREADS=libOpenThreads.a | 52 export LIB_OPENTHREADS=libOpenThreads.a |
53 | 53 |
54 ChangeDir ${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME} | 54 ChangeDir ${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME} |
55 } | 55 } |
56 | 56 |
57 CustomInstallStep() { | 57 CustomInstallStep() { |
58 Remove ${NACL_SDK_USR_INCLUDE}/osg | 58 Remove ${NACLPORTS_INCLUDE}/osg |
59 Remove ${NACL_SDK_USR_INCLUDE}/osgUtil | 59 Remove ${NACLPORTS_INCLUDE}/osgUtil |
60 Remove ${NACL_SDK_USR_INCLUDE}/OpenThreads | 60 Remove ${NACLPORTS_INCLUDE}/OpenThreads |
61 readonly THIS_PACKAGE_PATH=${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME} | 61 readonly THIS_PACKAGE_PATH=${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME} |
62 cp -R include/osg ${NACL_SDK_USR_INCLUDE}/osg | 62 cp -R include/osg ${NACLPORTS_INCLUDE}/osg |
63 cp -R include/osgUtil ${NACL_SDK_USR_INCLUDE}/osgUtil | 63 cp -R include/osgUtil ${NACLPORTS_INCLUDE}/osgUtil |
64 cp -R include/OpenThreads ${NACL_SDK_USR_INCLUDE}/OpenThreads | 64 cp -R include/OpenThreads ${NACLPORTS_INCLUDE}/OpenThreads |
65 Remove ${NACL_SDK_USR_LIB}/libosg.a | 65 Remove ${NACLPORTS_LIBDIR}/libosg.a |
66 Remove ${NACL_SDK_USR_LIB}/libosgUtil.a | 66 Remove ${NACLPORTS_LIBDIR}/libosgUtil.a |
67 Remove ${NACL_SDK_USR_LIB}/libOpenThreads.a | 67 Remove ${NACLPORTS_LIBDIR}/libOpenThreads.a |
68 install -m 644 ${LIB_OSG} ${NACL_SDK_USR_LIB}/${LIB_OSG} | 68 install -m 644 ${LIB_OSG} ${NACLPORTS_LIBDIR}/${LIB_OSG} |
69 install -m 644 ${LIB_OSGUTIL} ${NACL_SDK_USR_LIB}/${LIB_OSGUTIL} | 69 install -m 644 ${LIB_OSGUTIL} ${NACLPORTS_LIBDIR}/${LIB_OSGUTIL} |
70 install -m 644 ${LIB_OPENTHREADS} ${NACL_SDK_USR_LIB}/${LIB_OPENTHREADS} | 70 install -m 644 ${LIB_OPENTHREADS} ${NACLPORTS_LIBDIR}/${LIB_OPENTHREADS} |
71 DefaultTouchStep | 71 DefaultTouchStep |
72 } | 72 } |
73 | 73 |
74 CustomPackageInstall() { | 74 CustomPackageInstall() { |
75 DefaultPreInstallStep | 75 DefaultPreInstallStep |
76 CustomDownloadStep | 76 CustomDownloadStep |
77 CustomExtractStep | 77 CustomExtractStep |
78 DefaultPatchStep | 78 DefaultPatchStep |
79 CustomConfigureStep | 79 CustomConfigureStep |
80 DefaultBuildStep | 80 DefaultBuildStep |
81 CustomInstallStep | 81 CustomInstallStep |
82 DefaultCleanUpStep | 82 DefaultCleanUpStep |
83 } | 83 } |
84 | 84 |
85 CustomPackageInstall | 85 CustomPackageInstall |
86 exit 0 | 86 exit 0 |
OLD | NEW |