Skip to content

Commit

Permalink
restore manual download code for HDF5 1.8.19 for now (vcpkg hdf5 was …
Browse files Browse the repository at this point in the history
…causing break for appveyor); fix svn update for portmidi
  • Loading branch information
kunstmusik committed Dec 7, 2017
1 parent 62fbded commit ed231cd
Showing 1 changed file with 31 additions and 8 deletions.
39 changes: 31 additions & 8 deletions msvc/downloadDependencies.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ echo "vsToolset: $vsToolset"

$startTime = (Get-Date).TimeOfDay

# Add different protocols to get download working for HDF5 site
# ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls12 | SecurityProtocolType.Ssl3;
[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]::Tls12;

$webclient = New-Object System.Net.WebClient
$currentDir = Split-Path $MyInvocation.MyCommand.Path
$cacheDir = $currentDir + "\cache\"
Expand Down Expand Up @@ -89,7 +93,7 @@ $targetTriplet = "x64-windows"
$targetTripletStatic = "x64-windows-static"
#vcpkg --triplet $targetTriplet install eigen3 fltk zlib
#vcpkg --triplet $targetTripletStatic install libflac libogg libvorbis libsndfile
vcpkg --triplet $targetTripletStatic install hdf5 eigen3 fltk zlib libflac libogg libvorbis libsndfile
vcpkg --triplet $targetTripletStatic install eigen3 fltk zlib libflac libogg libvorbis libsndfile
$vcpkgTiming = (Get-Date).TimeOfDay

# Comment for testing to avoid extracting if already done so
Expand All @@ -114,8 +118,12 @@ $uriList="https://downloads.sourceforge.net/project/winflexbison/win_flex_bison-
"http://ftp.acc.umu.se/pub/gnome/binaries/win64/glib/2.26/glib-dev_2.26.1-1_win64.zip",
"http://ftp.acc.umu.se/pub/gnome/binaries/win64/glib/2.26/glib_2.26.1-1_win64.zip",
"http://download-mirror.savannah.gnu.org/releases/getfem/stable/gmm-5.1.tar.gz",
"http://support.hdfgroup.org/ftp/HDF5/current18/bin/windows/hdf5-1.8.19-Std-win7_64-vs2015.zip",
"https://github.com/thestk/stk/archive/master.zip"

# commenting out 1.8.20 for now
#"https://support.hdfgroup.org/ftp/HDF5/current18/bin/windows/hdf5-1.8.20-Std-win7_64-vs14.zip",

# Appends this folder location to the 'deps' uri
$destList="win_flex_bison",
"",
Expand All @@ -127,6 +135,7 @@ $destList="win_flex_bison",
"fluidsynthdeps",
"fluidsynthdeps",
"",
"",
""

# Download list of files to cache folder
Expand All @@ -140,8 +149,8 @@ for($i=0; $i -lt $uriList.Length; $i++)
}
else
{
echo "Downloading: " $uriList[$i]
$webclient.DownloadFile($uriList[$i], $cachedFile)
echo "Downloading: " $uriList[$i]
$webclient.DownloadFile($uriList[$i], $cachedFile)
}
}

Expand Down Expand Up @@ -184,6 +193,20 @@ cd build
cmake .. -G $vsGenerator -T $vsToolset -DCMAKE_BUILD_TYPE="Release"
cmake --build .


# disable 1.8.20 for time being
# cd $depsDir
# cd hdf5-1.8.20-Std-win7_64-vs14
# dir hdf
# Start-Process msiexec -Wait -ArgumentList '/I hdf\HDF5-1.8.20-win64.msi /quiet /qn /li /norestart'
# echo "Installed HDF5..."

cd $depsDir
dir hdf
Start-Process msiexec -Wait -ArgumentList '/I hdf\HDF5-1.8.19-win64.msi /quiet /qn /li /norestart'
echo "Installed HDF5..."


cd $depsDir

Copy-Item ($destDir + "stk-master\*") ($csoundDir + "\Opcodes\stk") -recurse -force
Expand Down Expand Up @@ -228,14 +251,14 @@ cd $stageDir

if (Test-Path "portmidi")
{
cd portmidi
git pull
cd ..
echo "Portmidi already downloaded, updated"
cd portmidi
svn update
cd ..
echo "Portmidi already downloaded, updated"
}
else
{
svn checkout "https://svn.code.sf.net/p/portmedia/code" portmidi
svn checkout "https://svn.code.sf.net/p/portmedia/code" portmidi
}

cd portmidi\portmidi\trunk
Expand Down

0 comments on commit ed231cd

Please sign in to comment.