makeprograms.sh 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. #!/bin/bash
  2. lowercase(){
  3. echo "$1" | sed "y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/"
  4. }
  5. OS=`lowercase \`uname\``
  6. if [ "$OS" == "darwin" ]; then
  7. MAKE=Makefile.osx
  8. elif [ "$OS" == "linux" ]; then
  9. MAKE=Makefile.linux
  10. else
  11. MAKE=Makefile.mingw
  12. fi
  13. PABUILD="yes"
  14. if [ ! -e ./externals/paprogs/portaudio/lib/.libs/libportaudio.a ]; then
  15. echo WARNING: portaudio library libportaudio.a not found.
  16. echo The play and record programs will not be built.
  17. PABUILD="no"
  18. else
  19. echo Play and record programs will be built.
  20. fi
  21. targets=(sfsys cdp2k blur cdparams cdparams_other cdparse combine distort editsf env extend filter focus formants \
  22. grain hfperm hilite houskeep misc modify morph new pagrab paview pitch pitchinfo pv pview repitch \
  23. sfutils sndinfo spec specinfo standalone strange stretch submix synth tabedit texture)
  24. for target in ${targets[@]}
  25. do
  26. cd ${target}
  27. echo in folder ${target}
  28. if [ -e $MAKE ]; then
  29. make install -f $MAKE;
  30. fi
  31. cd ..
  32. done
  33. cd externals
  34. # NB portaudio must have been built ("install" not needed) in order to build the record and play programs
  35. pwd
  36. cd portsf; pwd; make install -f $MAKE; cd ..
  37. cd fastconv; pwd; make install -f $MAKE; cd ..
  38. cd reverb; pwd; make install -f $MAKE; cd ..
  39. if [ "$PABUILD" == "yes" ]; then
  40. cd paprogs; pwd;
  41. cd listaudevs; pwd; make install -f $MAKE; cd ..
  42. cd paplay; pwd; make install -f $MAKE; cd ..
  43. cd pvplay; pwd; make install -f $MAKE; cd ..
  44. cd recsf; pwd; make install -f $MAKE; cd ..
  45. cd ..
  46. fi
  47. cd mctools; pwd; make install -f $MAKE; cd ..