aboutsummaryrefslogtreecommitdiff
path: root/ports/magnum-plugins
diff options
context:
space:
mode:
authorRobert Schumacher <roschuma@microsoft.com>2017-06-09 20:38:25 -0700
committerRobert Schumacher <roschuma@microsoft.com>2017-06-09 20:38:25 -0700
commit8cbadbffdcf0f1f4d5acd16012ecbb47532bdac9 (patch)
treecca1a342cf775d04330dac8dc0e6549bd9a877b3 /ports/magnum-plugins
parent1b761052002a9466704d53ea5b5029df9e89aaa0 (diff)
downloadvcpkg-8cbadbffdcf0f1f4d5acd16012ecbb47532bdac9.tar.gz
vcpkg-8cbadbffdcf0f1f4d5acd16012ecbb47532bdac9.zip
[corrade][magnum-plugins][magnum] Use vcpkg_from_github()
Diffstat (limited to 'ports/magnum-plugins')
-rw-r--r--ports/magnum-plugins/CONTROL2
-rw-r--r--ports/magnum-plugins/portfile.cmake43
2 files changed, 21 insertions, 24 deletions
diff --git a/ports/magnum-plugins/CONTROL b/ports/magnum-plugins/CONTROL
index 0aec0062d..1bf1111c4 100644
--- a/ports/magnum-plugins/CONTROL
+++ b/ports/magnum-plugins/CONTROL
@@ -1,4 +1,4 @@
Source: magnum-plugins
-Version: jun2017
+Version: jun2017-1
Build-Depends: stb, magnum
Description: Plugins for C++11/C++14 and OpenGL graphics engine http://mosra.cz/blog/magnum.php
diff --git a/ports/magnum-plugins/portfile.cmake b/ports/magnum-plugins/portfile.cmake
index fae2b08e7..199789c99 100644
--- a/ports/magnum-plugins/portfile.cmake
+++ b/ports/magnum-plugins/portfile.cmake
@@ -1,15 +1,11 @@
-###
-
-set(MAGNUM_PLUGINS_HASH 645b50647d5164c5ec8f5bc83ba2578f6cfe7d80)
-
include(vcpkg_common_functions)
-set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/magnum-plugins-${MAGNUM_PLUGINS_HASH})
-vcpkg_download_distfile(ARCHIVE
- URLS "https://github.com/mosra/magnum-plugins/archive/${MAGNUM_PLUGINS_HASH}.zip"
- FILENAME "magnum-plugins-${MAGNUM_PLUGINS_HASH}.zip"
- SHA512 5ab603f50cee325113e3f1ccd67d294d32f7386334136304ad8135ac8ff0218cbd2834197c7db85bb5fd11c69e28d00217fa5d9dbdad71a83e372722a6f8bda0
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO mosra/magnum-plugins
+ REF 645b50647d5164c5ec8f5bc83ba2578f6cfe7d80
+ SHA512 73c7fb7e9a5a9e2a4ee7314b5d41d98ada9cf1a50c1cd833c2ae19c5bdab66862f3696f142e987f9d2b551142e94f96a2d8ccad37625682c8391400091dcf879
+ HEAD_REF master
)
-vcpkg_extract_source_archive(${ARCHIVE})
if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
set(BUILD_STATIC 1)
@@ -20,19 +16,20 @@ endif()
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA # Disable this option if project cannot be built with Ninja
- OPTIONS -DWITH_STBIMAGECONVERTER=ON
- OPTIONS -DWITH_STBIMAGEIMPORTER=ON
- OPTIONS -DWITH_STBTRUETYPEFONT=ON
- OPTIONS -DWITH_STBTRUETYPEFONT=ON
- OPTIONS -DWITH_MINIEXRIMAGECONVERTER=ON
- OPTIONS -DWITH_OPENGEXIMPORTER=ON
- OPTIONS -DWITH_OPENGEXIMPORTER=ON
- OPTIONS -DWITH_STANFORDIMPORTER=ON
- OPTIONS -DWITH_DRWAVAUDIOIMPORTER=ON
- OPTIONS -DWITH_ANYAUDIOIMPORTER=ON
- OPTIONS -DWITH_ANYIMAGECONVERTER=ON
- OPTIONS -DWITH_ANYSCENEIMPORTER=ON
- OPTIONS -DBUILD_STATIC=${BUILD_STATIC}
+ OPTIONS
+ -DWITH_STBIMAGECONVERTER=ON
+ -DWITH_STBIMAGEIMPORTER=ON
+ -DWITH_STBTRUETYPEFONT=ON
+ -DWITH_STBTRUETYPEFONT=ON
+ -DWITH_MINIEXRIMAGECONVERTER=ON
+ -DWITH_OPENGEXIMPORTER=ON
+ -DWITH_OPENGEXIMPORTER=ON
+ -DWITH_STANFORDIMPORTER=ON
+ -DWITH_DRWAVAUDIOIMPORTER=ON
+ -DWITH_ANYAUDIOIMPORTER=ON
+ -DWITH_ANYIMAGECONVERTER=ON
+ -DWITH_ANYSCENEIMPORTER=ON
+ -DBUILD_STATIC=${BUILD_STATIC}
)
vcpkg_install_cmake()