Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use SourceForge auto mirror capability #6345

Merged
merged 2 commits into from Jun 2, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 5 additions & 4 deletions winbuild/build_prepare.py
Expand Up @@ -89,7 +89,7 @@ def cmd_msbuild(
)


SF_MIRROR = "https://iweb.dl.sourceforge.net"
SF_PROJECTS = "https://sourceforge.net/projects"

architectures = {
"x86": {"vcvars_arch": "x86", "msbuild_arch": "Win32"},
Expand All @@ -107,7 +107,8 @@ def cmd_msbuild(
# dependencies, listed in order of compilation
deps = {
"libjpeg": {
"url": SF_MIRROR + "/project/libjpeg-turbo/2.1.3/libjpeg-turbo-2.1.3.tar.gz",
"url": SF_PROJECTS
+ "/libjpeg-turbo/files/2.1.3/libjpeg-turbo-2.1.3.tar.gz/download",
"filename": "libjpeg-turbo-2.1.3.tar.gz",
"dir": "libjpeg-turbo-2.1.3",
"build": [
Expand Down Expand Up @@ -172,7 +173,7 @@ def cmd_msbuild(
"libs": [r"output\release-static\{architecture}\lib\*.lib"],
},
"libpng": {
"url": SF_MIRROR + "/project/libpng/libpng16/1.6.37/lpng1637.zip",
"url": SF_PROJECTS + "/libpng/files/libpng16/1.6.37/lpng1637.zip/download",
"filename": "lpng1637.zip",
"dir": "lpng1637",
"build": [
Expand Down Expand Up @@ -221,7 +222,7 @@ def cmd_msbuild(
# "bins": [r"objs\{msbuild_arch}\Release\freetype.dll"],
},
"lcms2": {
"url": SF_MIRROR + "/project/lcms/lcms/2.13/lcms2-2.13.1.tar.gz",
"url": SF_PROJECTS + "/lcms/files/lcms/2.13/lcms2-2.13.1.tar.gz/download",
"filename": "lcms2-2.13.1.tar.gz",
"dir": "lcms2-2.13.1",
"patch": {
Expand Down