From 41a68f712a5c4d5000c7bfa37a200c18fef29692 Mon Sep 17 00:00:00 2001 From: sdcb Date: Thu, 5 Jan 2017 15:09:40 +0800 Subject: Add dx port. --- ports/dx/CONTROL | 3 +++ ports/dx/portfile.cmake | 20 ++++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 ports/dx/CONTROL create mode 100644 ports/dx/portfile.cmake diff --git a/ports/dx/CONTROL b/ports/dx/CONTROL new file mode 100644 index 000000000..460e42bdb --- /dev/null +++ b/ports/dx/CONTROL @@ -0,0 +1,3 @@ +Source: dx +Version: 1.0.0 +Description: A modern C++ library for DirectX programming \ No newline at end of file diff --git a/ports/dx/portfile.cmake b/ports/dx/portfile.cmake new file mode 100644 index 000000000..085f30c01 --- /dev/null +++ b/ports/dx/portfile.cmake @@ -0,0 +1,20 @@ +#header-only library +include(vcpkg_common_functions) +set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/dx-1.0.0) +vcpkg_download_distfile(ARCHIVE + URLS "https://github.com/sdcb/dx/archive/1.0.0.tar.gz" + FILENAME "dx-1.0.0.tar.gz" + SHA512 7d0e0550eb27c3a7d3a9c4b78f29290aaf60c02a7c2fabb6e4769673592bc031f8ed430cd777e02096b9b9a8981c7e05b45448bf5c182704e080e61eaeab62f8 +) +vcpkg_extract_source_archive(${ARCHIVE}) + +file(INSTALL + ${SOURCE_PATH}/dx.h + ${SOURCE_PATH}/debug.h + ${SOURCE_PATH}/handle.h + DESTINATION ${CURRENT_PACKAGES_DIR}/include/dx +) + +file(INSTALL + ${SOURCE_PATH}/LICENSE + DESTINATION ${CURRENT_PACKAGES_DIR}/share/dx RENAME copyright) \ No newline at end of file -- cgit v1.2.3