Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-gpu
Commits
c460a74a
Commit
c460a74a
authored
Jul 06, 2011
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
contrib: use Perl shasum if sha512sum is not found
parent
96fce709
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
contrib/src/main.mak
contrib/src/main.mak
+10
-3
No files found.
contrib/src/main.mak
View file @
c460a74a
...
@@ -136,6 +136,14 @@ else
...
@@ -136,6 +136,14 @@ else
download
=
$(
error
Neither curl nor wget found!
)
download
=
$(
error
Neither curl nor wget found!
)
endif
endif
ifeq
($(shell sha512sum --version >/dev/null 2>&1 || echo FAIL),)
SHA512SUM
=
sha512sum
else
ifeq
($(shell shasum --version >/dev/null 2>&1 || echo FAIL),)
SHA512SUM
=
shasum
-a
512
else
SHA512SUM
=
$(
error
SHA-512 checksumming not found!
)
endif
#
#
# Common helpers
# Common helpers
#
#
...
@@ -169,10 +177,9 @@ download_git = \
...
@@ -169,10 +177,9 @@ download_git = \
(
cd
$(
dir
$@
)
&&
\
(
cd
$(
dir
$@
)
&&
\
tar
cvJ
$(
notdir
$
(
@:.tar.xz
=
))
)
>
$@
&&
\
tar
cvJ
$(
notdir
$
(
@:.tar.xz
=
))
)
>
$@
&&
\
rm
-Rf
$
(
@:.tar.xz
=)
rm
-Rf
$
(
@:.tar.xz
=)
checksum
=
(
cd
$(TARBALLS)
&&
$(1)
sum
-c
-
)
<
\
checksum
=
(
cd
$(TARBALLS)
&&
$(1)
--check
-
)
<
\
$(SRC)
/
$(
patsubst
.sum-%,%,
$@
)
/
$(2)
SUMS
$(SRC)
/
$(
patsubst
.sum-%,%,
$@
)
/
$(2)
SUMS
CHECK_SHA256
=
$(
call
checksum,sha512,SHA512
)
CHECK_SHA512
=
$(
call
checksum,
$(SHA512SUM)
,SHA512
)
CHECK_SHA512
=
$(
call
checksum,sha512,SHA512
)
UNPACK
=
$(RM)
-R
$@
\
UNPACK
=
$(RM)
-R
$@
\
$(
foreach
f,
$(
filter
%.tar.gz %.tgz,
$^
)
,
&&
tar
xvzf
$(f)
)
\
$(
foreach
f,
$(
filter
%.tar.gz %.tgz,
$^
)
,
&&
tar
xvzf
$(f)
)
\
$(
foreach
f,
$(
filter
%.tar.bz2,
$^
)
,
&&
tar
xvjf
$(f)
)
\
$(
foreach
f,
$(
filter
%.tar.bz2,
$^
)
,
&&
tar
xvjf
$(f)
)
\
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment