diff options
| author | Alexander Karatarakis <alkarata@microsoft.com> | 2016-09-19 16:17:05 -0700 |
|---|---|---|
| committer | Alexander Karatarakis <alkarata@microsoft.com> | 2016-09-19 16:17:05 -0700 |
| commit | d4c14451334d0751ea0b5009bf4cc94210232021 (patch) | |
| tree | 37fc4836414a098e10175ebf176701c03a566d6b | |
| parent | 7f04e737f3bab1e5a79a07d36f7ef98284fa01b0 (diff) | |
| parent | 45599349c95fd1232e1943de9b9cd60fa8393c1c (diff) | |
| download | vcpkg-d4c14451334d0751ea0b5009bf4cc94210232021.tar.gz vcpkg-d4c14451334d0751ea0b5009bf4cc94210232021.zip | |
Merge remote-tracking branch 'corporateshark/master'
| -rw-r--r-- | ports/stb/CONTROL | 3 | ||||
| -rw-r--r-- | ports/stb/portfile.cmake | 16 |
2 files changed, 19 insertions, 0 deletions
diff --git a/ports/stb/CONTROL b/ports/stb/CONTROL new file mode 100644 index 000000000..136f8e57e --- /dev/null +++ b/ports/stb/CONTROL @@ -0,0 +1,3 @@ +Source: stb +Version: 1.0 +Description: stb single-file public domain libraries for C/C++ diff --git a/ports/stb/portfile.cmake b/ports/stb/portfile.cmake new file mode 100644 index 000000000..1750d791f --- /dev/null +++ b/ports/stb/portfile.cmake @@ -0,0 +1,16 @@ +include(vcpkg_common_functions) +vcpkg_download_distfile(ARCHIVE + URL "https://github.com/nothings/stb/archive/master.zip" + FILENAME "stb.zip" + MD5 23bbf81dcfa7871b785e1c45d2ad24f5 +) +vcpkg_extract_source_archive(${ARCHIVE}) + +# Put the licence file where vcpkg expects it +file(RENAME ${CURRENT_BUILDTREES_DIR}/src/stb-master ${CURRENT_BUILDTREES_DIR}/src/stb) +file(COPY ${CURRENT_BUILDTREES_DIR}/src/stb/README.md DESTINATION ${CURRENT_PACKAGES_DIR}/share/stb/README.md) +file(RENAME ${CURRENT_PACKAGES_DIR}/share/stb/README.md ${CURRENT_PACKAGES_DIR}/share/stb/copyright.) + +# Copy the stb header files +file(INSTALL ${CURRENT_BUILDTREES_DIR}/src/stb/ DESTINATION ${CURRENT_PACKAGES_DIR}/include FILES_MATCHING PATTERN "*.h") +vcpkg_copy_pdbs() |
