.PHONY: install-deps-macos-openslide3 install-deps-macos-openslide4 install-deps-ubuntu-openslide3 install-deps-ubuntu-openslide4 dl-test-images install-deps-macos-openslide3: brew update curl https://raw.githubusercontent.com/Homebrew/homebrew-core/e6e41a54ec4d05000c1b95e515c85adb6f8f35af/Formula/o/openslide.rb > openslide.rb brew install --overwrite python@3.12 HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=1 brew install --overwrite --formula openslide.rb install-deps-macos-openslide4: brew update curl https://raw.githubusercontent.com/Homebrew/homebrew-core/f92e0a24754ed265ff7a032b89b336dd612e5559/Formula/o/openslide.rb > openslide.rb brew install --overwrite python@3.12 HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=1 brew install --overwrite --formula openslide.rb install-deps-ubuntu-openslide3: sudo apt-get update sudo apt-get install -y --no-install-recommends libopenslide-dev=3.* install-deps-ubuntu-openslide4: sudo apt-get update sudo apt install -y --no-install-recommends software-properties-common gnupg sudo add-apt-repository -y ppa:openslide/openslide sudo apt-get update sudo apt install -y --no-install-recommends libopenslide-dev=4.* libdicom-dev=1.* libwebp-dev=1.* dl-test-images: mkdir ./tests/assets/hamamatsu ./tests/assets/trestle ./tests/assets/mirax wget -q -O ./tests/assets/hamamatsu.zip "https://openslide.cs.cmu.edu/download/openslide-testdata/Hamamatsu-vms/CMU-3.zip" unzip tests/assets/hamamatsu.zip -d ./tests/assets/hamamatsu rm -f ./tests/assets/hamamatsu.zip wget -q -O ./tests/assets/trestle.zip "https://openslide.cs.cmu.edu/download/openslide-testdata/Trestle/CMU-1.zip" unzip tests/assets/trestle.zip -d ./tests/assets/trestle rm -f ./tests/assets/trestle.zip wget -q -O ./tests/assets/mirax.zip "https://openslide.cs.cmu.edu/download/openslide-testdata/Mirax/CMU-1-Saved-1_16.zip" unzip tests/assets/mirax.zip -d ./tests/assets/mirax rm -f ./tests/assets/mirax.zip wget -q -O ./tests/assets/leica.scn "https://openslide.cs.cmu.edu/download/openslide-testdata/Leica/Leica-1.scn"