openal.sh 649 B

123456789101112131415161718192021222324
  1. #!/bin/bash
  2. . `dirname "$0"`/common || exit 1
  3. PKG="openal"
  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. OPENAL_DIR="openal-svn"
  10. CONFIGURE_FLAGS="--prefix=$PREFIX --enable-null --enable-sdl --disable-vorbis --disable-mp3 --disable-smpeg --disable-alsa --disable-oss"
  11. CFLAGS="-D_GNU_SOURCE"
  12. export CFLAGS
  13. #execute svn co http://connect.creativelabs.com/OpenAL/trunk/OpenAL-Sample/ "$OPENAL_DIR"
  14. execute pushd "$OPENAL_DIR"
  15. execute "./autogen.sh"
  16. execute "$BASEDIR/configure2x" $CONFIGURE_FLAGS
  17. execute make
  18. execute make install
  19. execute popd
  20. touch $MARKER