Skip to content

Commit

Permalink
[SDL2] use vcpkg_from_github to enable --head
Browse files Browse the repository at this point in the history
  • Loading branch information
jasjuang committed Jan 16, 2018
1 parent c1d0597 commit 5aa627e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
2 changes: 1 addition & 1 deletion ports/sdl2/CONTROL
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Source: sdl2
Version: 2.0.7-3
Version: 2.0.7-4
Description: Simple DirectMedia Layer is a cross-platform development library designed to provide low level access to audio, keyboard, mouse, joystick, and graphics hardware via OpenGL and Direct3D.
15 changes: 6 additions & 9 deletions ports/sdl2/portfile.cmake
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
include(vcpkg_common_functions)

set(SDL2_VERSION 2.0.7)
set(SDL2_HASH eed5477843086a0e66552eb197a5c4929134522bc366d873732361ea0df5fb841ef7e2b1913e21d1bae69e6fd3152ee630492e615c58cbe903e7d6e47b587410)

set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/SDL2-${SDL2_VERSION})
vcpkg_download_distfile(ARCHIVE_FILE
URLS "http://libsdl.org/release/SDL2-${SDL2_VERSION}.tar.gz"
FILENAME "SDL2-${SDL2_VERSION}.tar.gz"
SHA512 ${SDL2_HASH}
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO SDL-Mirror/SDL
REF release-2.0.7
SHA512 3667c7299d007e0438de90c6dd1f19ad9f30cf155c35792c40267bc74f8fe8acd1046ac918a104690ccba3faa2dbd86b37821a38c6c389179359b903209e2eb7
HEAD_REF master
)
vcpkg_extract_source_archive(${ARCHIVE_FILE})

vcpkg_apply_patches(
SOURCE_PATH ${SOURCE_PATH}
Expand Down

0 comments on commit 5aa627e

Please sign in to comment.