/scripts/linux/archlinux/install_dependencies.sh

https://github.com/metropol/openFrameworks · Shell · 27 lines · 23 code · 2 blank · 2 comment · 5 complexity · bfa95476e966dbaa9943673e150bc89a MD5 · raw file

  1. pacman -Syu --needed make pkg-config gcc openal python-lxml glew freeglut freeimage jack gstreamer0.10-good-plugins gstreamer0.10-bad-plugins
  2. ARCH=$(uname -m)
  3. if [ "$ARCH" = "x86_64" ]; then
  4. LIBSPATH=linux64
  5. else
  6. LIBSPATH=linux
  7. fi
  8. WHO=`su -c 'who am i'`;ID=`echo ${WHO%% *}`
  9. #since users in arch have no default named group
  10. GROUP_ID=`id --group -n ${ID}`
  11. cd ../../../libs/openFrameworksCompiled/project/$LIBSPATH
  12. make Debug
  13. if [ $? != 0 ]; then
  14. echo "there has been a problem compiling Debug OF library"
  15. echo "please report this problem in the forums"
  16. exit
  17. fi
  18. chown -R $ID:$GROUP_ID obj ../../lib/${LIBSPATH}/*
  19. make Release
  20. if [ $? != 0 ]; then
  21. echo "there has been a problem compiling Release OF library"
  22. echo "please report this problem in the forums"
  23. fi
  24. chown -R $ID:$GROUP_ID obj ../../lib/${LIBSPATH}/*
  25. # libpoco-dev