forked from AzHicham/openslide-rs
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
executable file
·37 lines (32 loc) · 2 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
.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 [email protected]
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 [email protected]
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"