diff options
| author | Ernesto Bascón Pantoja <Ernesto Bascón Pantoja> | 2017-04-11 00:18:20 -0400 |
|---|---|---|
| committer | Ernesto Bascón Pantoja <Ernesto Bascón Pantoja> | 2017-04-11 00:18:20 -0400 |
| commit | 4ecf9aa09e05d59e56bf2d53ac267fc81626f603 (patch) | |
| tree | be8da1ed7ccf2847dd1ca25ade45a95310508f34 | |
| parent | 37b250abb8f25d95a4c4323be8860875bd1e2168 (diff) | |
| download | vcpkg-4ecf9aa09e05d59e56bf2d53ac267fc81626f603.tar.gz vcpkg-4ecf9aa09e05d59e56bf2d53ac267fc81626f603.zip | |
Added picojson 1.3.1
| -rw-r--r-- | ports/picojson/CONTROL | 4 | ||||
| -rw-r--r-- | ports/picojson/portfile.cmake | 18 |
2 files changed, 22 insertions, 0 deletions
diff --git a/ports/picojson/CONTROL b/ports/picojson/CONTROL new file mode 100644 index 000000000..8128aa099 --- /dev/null +++ b/ports/picojson/CONTROL @@ -0,0 +1,4 @@ +Source: picojson +Version: 1.3.1 +Description: A header-file-only, JSON parser serializer in C++. + diff --git a/ports/picojson/portfile.cmake b/ports/picojson/portfile.cmake new file mode 100644 index 000000000..91f2f2aa5 --- /dev/null +++ b/ports/picojson/portfile.cmake @@ -0,0 +1,18 @@ + +include(vcpkg_common_functions) +set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/picojson-master) +vcpkg_download_distfile(ARCHIVE + URLS "https://github.com/kazuho/picojson/archive/master.zip" + FILENAME "picojson-1.3.1.zip" + SHA512 961138c1233ee960c8810cd0e53af27b42956ec0ed4017085b2330417833f91ba728dd76e64ece019a37eb5f8a857cc57d36c3370a27707d995091ab409c4819 +) +vcpkg_extract_source_archive(${ARCHIVE}) + +# Put the licence file where vcpkg expects it +file(COPY ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/picojson) +file(RENAME ${CURRENT_PACKAGES_DIR}/share/picojson/LICENSE ${CURRENT_PACKAGES_DIR}/share/picojson/copyright) + +# Copy the header files +file(INSTALL ${SOURCE_PATH}/picojson.h DESTINATION ${CURRENT_PACKAGES_DIR}/include/picojson) + +vcpkg_copy_pdbs() |
