| 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 source pkg_info | 6 BUILD_DIR=${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME} |
| 7 source ../../build_tools/common.sh | |
| 8 | 7 |
| 9 ConfigureStep() { | 8 ConfigureStep() { |
| 10 Banner "Configuring ${PACKAGE_NAME}" | 9 Banner "No configure step" |
| 10 } |
| 11 |
| 12 BuildStep() { |
| 11 # export the nacl tools | 13 # export the nacl tools |
| 12 export CC=${NACLCC} | 14 export CC=${NACLCC} |
| 13 export CXX=${NACLCXX} | 15 export CXX=${NACLCXX} |
| 14 export AR=${NACLAR} | 16 export AR=${NACLAR} |
| 15 export RANLIB=${NACLRANLIB} | 17 export RANLIB=${NACLRANLIB} |
| 16 export CFLAGS=${NACLPORTS_CFLAGS} | 18 export CFLAGS=${NACLPORTS_CFLAGS} |
| 17 export CXXFLAGS=${NACLPORTS_CXXFLAGS} | 19 export CXXFLAGS=${NACLPORTS_CXXFLAGS} |
| 18 export LDFLAGS=${NACLPORTS_LDFLAGS} | 20 export LDFLAGS=${NACLPORTS_LDFLAGS} |
| 19 export PATH=${NACL_BIN_PATH}:${PATH}; | 21 export PATH=${NACL_BIN_PATH}:${PATH}; |
| 20 export LIB_OSG=libosg.a | 22 export LIB_OSG=libosg.a |
| 21 export LIB_OSGUTIL=libosgUtil.a | 23 export LIB_OSGUTIL=libosgUtil.a |
| 22 export LIB_OPENTHREADS=libOpenThreads.a | 24 export LIB_OPENTHREADS=libOpenThreads.a |
| 25 DefaultBuildStep |
| 26 } |
| 23 | 27 |
| 24 ChangeDir ${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME} | |
| 25 } | |
| 26 | 28 |
| 27 InstallStep() { | 29 InstallStep() { |
| 28 Remove ${NACLPORTS_INCLUDE}/osg | 30 Remove ${NACLPORTS_INCLUDE}/osg |
| 29 Remove ${NACLPORTS_INCLUDE}/osgUtil | 31 Remove ${NACLPORTS_INCLUDE}/osgUtil |
| 30 Remove ${NACLPORTS_INCLUDE}/OpenThreads | 32 Remove ${NACLPORTS_INCLUDE}/OpenThreads |
| 31 readonly THIS_PACKAGE_PATH=${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME} | 33 readonly THIS_PACKAGE_PATH=${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME} |
| 32 cp -R include/osg ${NACLPORTS_INCLUDE}/osg | 34 cp -R include/osg ${NACLPORTS_INCLUDE}/osg |
| 33 cp -R include/osgUtil ${NACLPORTS_INCLUDE}/osgUtil | 35 cp -R include/osgUtil ${NACLPORTS_INCLUDE}/osgUtil |
| 34 cp -R include/OpenThreads ${NACLPORTS_INCLUDE}/OpenThreads | 36 cp -R include/OpenThreads ${NACLPORTS_INCLUDE}/OpenThreads |
| 35 Remove ${NACLPORTS_LIBDIR}/libosg.a | 37 Remove ${NACLPORTS_LIBDIR}/libosg.a |
| 36 Remove ${NACLPORTS_LIBDIR}/libosgUtil.a | 38 Remove ${NACLPORTS_LIBDIR}/libosgUtil.a |
| 37 Remove ${NACLPORTS_LIBDIR}/libOpenThreads.a | 39 Remove ${NACLPORTS_LIBDIR}/libOpenThreads.a |
| 38 install -m 644 ${LIB_OSG} ${NACLPORTS_LIBDIR}/${LIB_OSG} | 40 install -m 644 ${LIB_OSG} ${NACLPORTS_LIBDIR}/${LIB_OSG} |
| 39 install -m 644 ${LIB_OSGUTIL} ${NACLPORTS_LIBDIR}/${LIB_OSGUTIL} | 41 install -m 644 ${LIB_OSGUTIL} ${NACLPORTS_LIBDIR}/${LIB_OSGUTIL} |
| 40 install -m 644 ${LIB_OPENTHREADS} ${NACLPORTS_LIBDIR}/${LIB_OPENTHREADS} | 42 install -m 644 ${LIB_OPENTHREADS} ${NACLPORTS_LIBDIR}/${LIB_OPENTHREADS} |
| 41 } | 43 } |
| 42 | |
| 43 | |
| 44 PackageInstall | |
| 45 exit 0 | |
| OLD | NEW |