Added glm.

This commit is contained in:
Ciprian-Mihai Melinescu 2016-09-21 02:13:39 +03:00
parent 6c9b62eea3
commit 9ff0ea9e57
2 changed files with 20 additions and 0 deletions

3
ports/glm/CONTROL Normal file
View File

@ -0,0 +1,3 @@
Source: glm
Version: 0.9.8.0
Description: OpenGL Mathematics (GLM) https://glm.g-truc.net

17
ports/glm/portfile.cmake Normal file
View File

@ -0,0 +1,17 @@
include(vcpkg_common_functions)
vcpkg_download_distfile(ARCHIVE
URL "https://github.com/g-truc/glm/releases/download/0.9.8.0/glm-0.9.8.0.zip"
FILENAME "glm-0.9.8.0.zip"
MD5 b24613c1f7e16f504d936ae3ac1f4917
)
vcpkg_extract_source_archive(${ARCHIVE})
# Put the license file where vcpkg expects it
file(COPY ${CURRENT_BUILDTREES_DIR}/src/glm/copying.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/glm/)
file(RENAME ${CURRENT_PACKAGES_DIR}/share/glm/copying.txt ${CURRENT_PACKAGES_DIR}/share/glm/copyright)
# Copy the glm header files
file(GLOB HEADER_FILES ${CURRENT_BUILDTREES_DIR}/src/glm/glm/*)
file(COPY ${HEADER_FILES} DESTINATION ${CURRENT_PACKAGES_DIR}/include/glm)
vcpkg_copy_pdbs()