vorbis.sh 600 B

12345678910111213141516171819202122232425
  1. #!/bin/bash
  2. . `dirname "$0"`/common || exit 1
  3. PKG="vorbis"
  4. MARKER="$BASEDIR/.${PKG}_is_built"
  5. if [ -e "$MARKER" ]; then
  6. echo "$PKG seems to be already build, remove $MARKER to rebuild"
  7. exit 0
  8. fi
  9. VORBIS_DIR="libvorbis-1.2.0"
  10. VORBIS_FILE="$VORBIS_DIR.tar.gz"
  11. CFLAGS="-D_GNU_SOURCE"
  12. export CFLAGS
  13. download "http://downloads.xiph.org/releases/vorbis/libvorbis-1.2.0.tar.gz" "download/$VORBIS_FILE"
  14. execute tar -xf "download/$VORBIS_FILE"
  15. execute pushd "$VORBIS_DIR"
  16. #execute "./autogen.sh"
  17. execute "$BASEDIR/configure2x" $CONFIGURE_FLAGS
  18. execute make
  19. execute make install
  20. execute popd
  21. touch $MARKER