macbuild.sh 790 B

12345678910111213141516171819202122232425262728293031
  1. #!/bin/bash
  2. set -Eeo pipefail -x
  3. # install dependencies
  4. brew install autoconf-archive automake libsndfile fftw mpg123 libgcrypt libtool ffmpeg@4
  5. export PKG_CONFIG_PATH="$(brew --prefix ffmpeg@4)/lib/pkgconfig:${PKG_CONFIG_PATH:-}"
  6. export PATH="$(brew --prefix ffmpeg@4)/bin:$PATH"
  7. # build zita-resampler
  8. git clone https://github.com/swesterfeld/zita-resampler
  9. cd zita-resampler
  10. cmake .
  11. sudo make install
  12. cd ..
  13. export DYLD_LIBRARY_PATH=/usr/local/lib:$DYLD_LIBRARY_PATH
  14. # build audiowmark
  15. ./autogen.sh
  16. NPROC=`sysctl -n hw.ncpu`
  17. make -j $NPROC
  18. make -j $NPROC check
  19. # test build audiowmark with ffmpeg support
  20. make clean
  21. ./autogen.sh --with-ffmpeg
  22. make -j $NPROC
  23. ### unfortunately HLS is currently broken on macOS, so although it builds, make check will fail
  24. ###
  25. ###make -j $NPROC check