Advertisement
Guest User

Untitled

a guest
Apr 25th, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.52 KB | None | 0 0
  1. #!/usr/bin/env bash
  2.  
  3. if [[ "$EUID" -ne 0 ]]; then
  4. echo "Sorry, you need to run this as root"
  5. exit 1
  6. fi
  7.  
  8. # apt-get update
  9. # apt-get install -y autoconf file gcc git libc-dev make pkg-config git
  10.  
  11. git clone git://git.linphone.org/bctoolbox.git
  12. cd bctoolbox
  13. apt-get install -y cmake libmbedtls-dev
  14. cmake . -DENABLE_POLARSSL=NO -DENABLE_MBEDTLS=YES -DENABLE_TESTS=NO -DENABLE_TESTS_COMPONENT=NO
  15. make && make install
  16. cd ..
  17.  
  18. git clone git://git.linphone.org/belle-sip.git
  19. cd belle-sip
  20. apt-get install -y libantlr3c-dev antlr3 zlib1g-dev
  21. sed -i -e 's@${BCTOOLBOX_CORE_INCLUDE_DIRS}@/usr/local/include/@g' CMakeLists.txt
  22. cmake . -DENABLE_TESTS=NO
  23. make && make install
  24. cd ..
  25.  
  26. git clone git://git.linphone.org/ortp.git
  27. cd ortp
  28. sed -i -e 's@${BCTOOLBOX_CORE_INCLUDE_DIRS}@/usr/local/include/@g' src/CMakeLists.txt
  29. cmake . -DENABLE_TESTS=NO -DENABLE_DOC=NO
  30. make && make install
  31. cd ..
  32.  
  33. git clone git://git.linphone.org/mediastreamer2.git
  34. cd mediastreamer2
  35. apt-get install -y libasound2-dev
  36. sed -i -e 's@${BCTOOLBOX_CORE_INCLUDE_DIRS}@/usr/local/include/@g' CMakeLists.txt
  37. cmake . -DENABLE_UNIT_TESTS=NO -DENABLE_DOC=NO -DENABLE_SPEEX_DSP=NO -DENABLE_FFMPEG=NO -DENABLE_V4L=NO -DENABLE_VIDEO=NO
  38. make && make install
  39. cd ..
  40.  
  41. git clone git://git.linphone.org/linphone.git
  42. cd linphone
  43. apt-get install -y libxml2-dev
  44. cmake . -DENABLE_VCARD=NO -DENABLE_SQLITE_STORAGE=NO -DENABLE_TOOLS=NO -DENABLE_NLS=NO -DENABLE_ASSISTANT=NO -DENABLE_UNIT_TESTS=NO -DENABLE_GTK_UI=NO -DENABLE_DOC=NO -DENABLE_VIDEO=NO -DENABLE_TUTORIALS=NO -DENABLE_JAVADOC=NO
  45. make && make install
  46. cd ..
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement