physfs.sh 554 B

12345678910111213141516171819202122
  1. #!/bin/bash
  2. . `dirname "$0"`/common || exit 1
  3. PKG="physfs"
  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. PHYSFS_VERSION="1.0.1"
  10. PHYSFS_FILE="$DOWNLOAD_DIR/physfs-$PHYSFS_VERSION.tar.gz"
  11. download "http://icculus.org/physfs/downloads/physfs-$PHYSFS_VERSION.tar.gz" "$PHYSFS_FILE"
  12. execute tar -xf "$PHYSFS_FILE"
  13. execute pushd physfs-"$PHYSFS_VERSION"
  14. execute "$BASEDIR/configure2x" --prefix="$PREFIX"
  15. execute make
  16. execute make install
  17. execute popd
  18. touch $MARKER