Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
otb
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Main Repositories
otb
Commits
e3ab2cb5
Commit
e3ab2cb5
authored
6 years ago
by
Antoine Regimbeau
Browse files
Options
Downloads
Patches
Plain Diff
SuperBuild: allow no download if fonts are already in download dir
parent
5a1de2f1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!97
Fonts download
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
SuperBuild/CMake/font_qt.cmake
+10
-1
10 additions, 1 deletion
SuperBuild/CMake/font_qt.cmake
with
10 additions
and
1 deletion
SuperBuild/CMake/font_qt.cmake
+
10
−
1
View file @
e3ab2cb5
...
@@ -25,10 +25,19 @@ if( NOT DOWNLOAD_LOCATION )
...
@@ -25,10 +25,19 @@ if( NOT DOWNLOAD_LOCATION )
endif
()
endif
()
file
(
MAKE_DIRECTORY
${
INSTALL_DIR
}
/lib/fonts/
)
file
(
MAKE_DIRECTORY
${
INSTALL_DIR
}
/lib/fonts/
)
if
(
EXISTS
"
${
DOWNLOAD_LOCATION
}
/dejavu-fonts-ttf-2.37.tar.bz2"
)
file
(
MD5
"
${
DOWNLOAD_LOCATION
}
/dejavu-fonts-ttf-2.37.tar.bz2"
MD5_FONT
)
endif
()
SET
(
CMAKE_TLS_VERIFY
"OFF"
)
if
(
NOT
(
"
${
MD5_FONT
}
"
STREQUAL
"d0efec10b9f110a32e9b8f796e21782c"
)
)
MESSAGE
(
"DOWNLOADING FONTS"
)
file
(
DOWNLOAD
file
(
DOWNLOAD
http://sourceforge.net/project
s
/dejavu/
files/
dejavu/2.37/dejavu-fonts-ttf-2.37.tar.bz2
http
s
://
netix.dl.
sourceforge.net/project/dejavu/dejavu/2.37/dejavu-fonts-ttf-2.37.tar.bz2
${
DOWNLOAD_LOCATION
}
/dejavu-fonts-ttf-2.37.tar.bz2
${
DOWNLOAD_LOCATION
}
/dejavu-fonts-ttf-2.37.tar.bz2
EXPECTED_MD5 d0efec10b9f110a32e9b8f796e21782c
)
EXPECTED_MD5 d0efec10b9f110a32e9b8f796e21782c
)
endif
()
execute_process
(
execute_process
(
COMMAND
${
CMAKE_COMMAND
}
-E tar -xf
${
DOWNLOAD_LOCATION
}
/dejavu-fonts-ttf-2.37.tar.bz2
COMMAND
${
CMAKE_COMMAND
}
-E tar -xf
${
DOWNLOAD_LOCATION
}
/dejavu-fonts-ttf-2.37.tar.bz2
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment