diff options
Diffstat (limited to 'vcpkg/ports/rioki-glow')
| -rw-r--r-- | vcpkg/ports/rioki-glow/add-iostream.diff | 13 | ||||
| -rw-r--r-- | vcpkg/ports/rioki-glow/portfile.cmake | 18 | ||||
| -rw-r--r-- | vcpkg/ports/rioki-glow/vcpkg.json | 20 |
3 files changed, 51 insertions, 0 deletions
diff --git a/vcpkg/ports/rioki-glow/add-iostream.diff b/vcpkg/ports/rioki-glow/add-iostream.diff new file mode 100644 index 0000000..3ac0c05 --- /dev/null +++ b/vcpkg/ports/rioki-glow/add-iostream.diff @@ -0,0 +1,13 @@ +diff --git a/glow/util.cpp b/glow/util.cpp +index 005df9d..e8a5747 100644 +--- a/glow/util.cpp ++++ b/glow/util.cpp +@@ -25,6 +25,8 @@ + #ifdef _WIN32 + #define NOMINMAX + #include <Windows.h> ++#else ++#include <iostream> + #endif + + namespace glow diff --git a/vcpkg/ports/rioki-glow/portfile.cmake b/vcpkg/ports/rioki-glow/portfile.cmake new file mode 100644 index 0000000..e18795a --- /dev/null +++ b/vcpkg/ports/rioki-glow/portfile.cmake @@ -0,0 +1,18 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO rioki/glow + REF v0.2.1 + SHA512 410d0bcc98f9587321dceab498ed84fe2cffbf1f38ba59592d5f7eded9eea67c17e40415966d14f548b7e91f23e17fc0162c216c34b905c641647f90274af5b1 + PATCHES + add-iostream.diff # https://github.com/rioki/glow/pull/21 +) + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" +) + +vcpkg_cmake_install() +vcpkg_cmake_config_fixup(PACKAGE_NAME "rioki_glow") +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") + +file(INSTALL "${SOURCE_PATH}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright) diff --git a/vcpkg/ports/rioki-glow/vcpkg.json b/vcpkg/ports/rioki-glow/vcpkg.json new file mode 100644 index 0000000..e56b718 --- /dev/null +++ b/vcpkg/ports/rioki-glow/vcpkg.json @@ -0,0 +1,20 @@ +{ + "name": "rioki-glow", + "version-semver": "0.2.1", + "port-version": 1, + "description": "OpenGL Object Wrapper", + "homepage": "https://github.com/rioki/glow", + "license": "MIT", + "dependencies": [ + "glew", + "glm", + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} |