From daeab46090dba4592b776d2e829ad19b9e6b2bff Mon Sep 17 00:00:00 2001 From: vlj Date: Fri, 23 Dec 2016 19:49:55 +0100 Subject: Add gli. --- ports/gli/CONTROL | 3 +++ ports/gli/portfile.cmake | 21 +++++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 ports/gli/CONTROL create mode 100644 ports/gli/portfile.cmake diff --git a/ports/gli/CONTROL b/ports/gli/CONTROL new file mode 100644 index 000000000..8d89bc2d1 --- /dev/null +++ b/ports/gli/CONTROL @@ -0,0 +1,3 @@ +Source: gli +Version: 0.8.2 +Description: OpenGL Image (GLI) https://gli.g-truc.net diff --git a/ports/gli/portfile.cmake b/ports/gli/portfile.cmake new file mode 100644 index 000000000..60ab1e409 --- /dev/null +++ b/ports/gli/portfile.cmake @@ -0,0 +1,21 @@ +#Header only + +include(vcpkg_common_functions) +set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/gli-0.8.2.0) +vcpkg_download_distfile(ARCHIVE + URLS "https://github.com/g-truc/gli/archive/0.8.2.0.tar.gz" + FILENAME "0.8.2.0.tar.gz" + SHA512 c254a4e1497d0add985e4a882c552db99c512cc0e9cc72145d51a6e7deada817d624d9818099a47136a8a3ef1223a26a34e355e3c713166f0bb062e506059834 +) +vcpkg_extract_source_archive(${ARCHIVE}) + +# Remove glm/CMakeLists.txt +file(REMOVE ${SOURCE_PATH}/glm/CMakeLists.txt) + +# Put the license file where vcpkg expects it +file(COPY ${SOURCE_PATH}/external/glm/copying.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/gli/) +file(RENAME ${CURRENT_PACKAGES_DIR}/share/gli/copying.txt ${CURRENT_PACKAGES_DIR}/share/gli/copyright) + +# Copy the glm header files +file(GLOB HEADER_FILES ${SOURCE_PATH}/gli/*) +file(COPY ${HEADER_FILES} DESTINATION ${CURRENT_PACKAGES_DIR}/include/gli) -- cgit v1.2.3 From 04b62c7be9868ecd180c29a127e3be4072e25a81 Mon Sep 17 00:00:00 2001 From: Alexander Karatarakis Date: Tue, 27 Dec 2016 14:18:23 -0800 Subject: [gli] Make "header-only" comment same as other ports --- ports/gli/portfile.cmake | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ports/gli/portfile.cmake b/ports/gli/portfile.cmake index 60ab1e409..c0854909f 100644 --- a/ports/gli/portfile.cmake +++ b/ports/gli/portfile.cmake @@ -1,5 +1,4 @@ -#Header only - +#header-only library include(vcpkg_common_functions) set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/gli-0.8.2.0) vcpkg_download_distfile(ARCHIVE -- cgit v1.2.3