ogg.sh 589 B

1234567891011121314151617181920212223242526
  1. #!/bin/bash
  2. . `dirname "$0"`/common || exit 1
  3. PKG="ogg"
  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. OGG_DIR="libogg-1.1.3"
  10. OGG_FILE="$OGG_DIR.tar.gz"
  11. CONFIGURE_FLAGS=""
  12. CFLAGS="-D_GNU_SOURCE"
  13. export CFLAGS
  14. download "http://downloads.xiph.org/releases/ogg/libogg-1.1.3.tar.gz" "download/$OGG_FILE"
  15. execute tar -xf "download/$OGG_FILE"
  16. execute pushd "$OGG_DIR"
  17. #execute "./autogen.sh"
  18. execute "$BASEDIR/configure2x" $CONFIGURE_FLAGS
  19. execute make
  20. execute make install
  21. execute popd
  22. touch $MARKER