aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhoebe <20694052+PhoebeHui@users.noreply.github.com>2020-10-14 04:25:02 +0800
committerGitHub <noreply@github.com>2020-10-13 13:25:02 -0700
commitd50a66f62809caca1b422e589118ab6ec2d9a47a (patch)
treeda5d3a3c18650368c9f9810be8b7027c5c9638d3
parent8e40ffc03f2ec4d5a388455f8f4a6bf249bced26 (diff)
downloadvcpkg-d50a66f62809caca1b422e589118ab6ec2d9a47a.tar.gz
vcpkg-d50a66f62809caca1b422e589118ab6ec2d9a47a.zip
[glew] Add dependency (#13993)
* [glew] Add dependency * Update ports/glew/portfile.cmake Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com>
-rw-r--r--ports/glew/CONTROL4
-rw-r--r--ports/glew/portfile.cmake6
2 files changed, 5 insertions, 5 deletions
diff --git a/ports/glew/CONTROL b/ports/glew/CONTROL
index 6409f87e7..143426801 100644
--- a/ports/glew/CONTROL
+++ b/ports/glew/CONTROL
@@ -1,4 +1,6 @@
Source: glew
-Version: 2.1.0-8
+Version: 2.1.0
+Port-Version: 9
Description: The OpenGL Extension Wrangler Library (GLEW) is a cross-platform open-source C/C++ extension loading library.
Homepage: https://github.com/nigels-com/glew
+Build-Depends: opengl
diff --git a/ports/glew/portfile.cmake b/ports/glew/portfile.cmake
index de436818c..5b931ecb2 100644
--- a/ports/glew/portfile.cmake
+++ b/ports/glew/portfile.cmake
@@ -1,5 +1,3 @@
-include(vcpkg_common_functions)
-
# Don't change to vcpkg_from_github! The sources in the git repository (archives) are missing some files that are distributed inside releases.
# More info: https://github.com/nigels-com/glew/issues/31 and https://github.com/nigels-com/glew/issues/13
vcpkg_download_distfile(ARCHIVE
@@ -64,6 +62,6 @@ vcpkg_copy_pdbs()
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
-file(INSTALL ${CMAKE_CURRENT_LIST_DIR}/vcpkg-cmake-wrapper.cmake DESTINATION ${CURRENT_PACKAGES_DIR}/share/glew )
-file(INSTALL ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/glew RENAME copyright)
+file(INSTALL ${CMAKE_CURRENT_LIST_DIR}/vcpkg-cmake-wrapper.cmake DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT})
+file(INSTALL ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
file(COPY ${CMAKE_CURRENT_LIST_DIR}/usage DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT})