aboutsummaryrefslogtreecommitdiff
path: root/ports/nanogui
diff options
context:
space:
mode:
Diffstat (limited to 'ports/nanogui')
-rw-r--r--ports/nanogui/CONTROL4
-rw-r--r--ports/nanogui/portfile.cmake15
2 files changed, 10 insertions, 9 deletions
diff --git a/ports/nanogui/CONTROL b/ports/nanogui/CONTROL
index 63b70db69..9c532e4f1 100644
--- a/ports/nanogui/CONTROL
+++ b/ports/nanogui/CONTROL
@@ -1,5 +1,7 @@
Source: nanogui
Version: 2019-09-23
+Port-Version: 1
Homepage: https://github.com/wjakob/nanogui
Description: NanoGUI is a minimalistic cross-platform widget library for OpenGL 3.x or higher.
-Build-Depends: glfw3, nanovg, eigen3 \ No newline at end of file
+Build-Depends: glfw3, nanovg, eigen3
+Supports: !uwp
diff --git a/ports/nanogui/portfile.cmake b/ports/nanogui/portfile.cmake
index bc868e549..f1cb824a7 100644
--- a/ports/nanogui/portfile.cmake
+++ b/ports/nanogui/portfile.cmake
@@ -1,21 +1,20 @@
-include(vcpkg_common_functions)
-
-if(VCPKG_TARGET_IS_UWP)
- message(FATAL_ERROR "nanogui doesn't support UWP.")
-endif()
+vcpkg_fail_port_install(ON_TARGET "uwp")
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO wjakob/nanogui
- REF e9ec8a1a9861cf578d9c6e85a6420080aa715c03 #Commits on Sep 23, 2019
+ REF e9ec8a1a9861cf578d9c6e85a6420080aa715c03 #Commits on Sep 23, 2019
SHA512 36c93bf977862ced2df4030211e2b83625e60a11fc9fdb6c1f2996bb234758331d3f41a7fbafd25a5bca0239ed9bac9c93446a4a7fac4c5e6d7943af2be3e14a
HEAD_REF master
PATCHES
- fix-cmakelists.patch
+ fix-cmakelists.patch
)
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
+ OPTIONS
+ -DNANOGUI_EIGEN_INCLUDE_DIR=${CURRENT_INSTALLED_DIR}/include/eigen3
+ -DEIGEN_INCLUDE_DIR=${CURRENT_INSTALLED_DIR}/include/eigen3
)
vcpkg_install_cmake()
@@ -23,4 +22,4 @@ vcpkg_copy_pdbs()
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
# Handle copyright
-file(INSTALL ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright) \ No newline at end of file
+file(INSTALL ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)