diff options
| author | Joshua T. Fisher <playmer@gmail.com> | 2016-09-26 00:43:44 -0700 |
|---|---|---|
| committer | Joshua T. Fisher <playmer@gmail.com> | 2016-09-26 00:43:44 -0700 |
| commit | ec38751798e9b38ddc6c6067ca808f093e03b073 (patch) | |
| tree | 796523931594ad7931f85969f745ef9daa0a7c54 /ports/constexpr | |
| parent | cdfa4ea1dfa682fe27d2484ba7a36c45c58f5501 (diff) | |
| download | vcpkg-ec38751798e9b38ddc6c6067ca808f093e03b073.tar.gz vcpkg-ec38751798e9b38ddc6c6067ca808f093e03b073.zip | |
Adding constexpr
Diffstat (limited to 'ports/constexpr')
| -rw-r--r-- | ports/constexpr/CONTROL | 2 | ||||
| -rw-r--r-- | ports/constexpr/portfile.cmake | 16 |
2 files changed, 18 insertions, 0 deletions
diff --git a/ports/constexpr/CONTROL b/ports/constexpr/CONTROL new file mode 100644 index 000000000..090351704 --- /dev/null +++ b/ports/constexpr/CONTROL @@ -0,0 +1,2 @@ +Source: constexpr +Version: 1.0 diff --git a/ports/constexpr/portfile.cmake b/ports/constexpr/portfile.cmake new file mode 100644 index 000000000..9adebea51 --- /dev/null +++ b/ports/constexpr/portfile.cmake @@ -0,0 +1,16 @@ +include(vcpkg_common_functions) +vcpkg_download_distfile(ARCHIVE + URL "https://github.com/elbeno/constexpr/archive/a98b1db39c909e0130d21d3910d4faf97035a625.zip" + FILENAME "constexpr-a98b1db39c909e0130d21d3910d4faf97035a625.zip" + SHA512 847E09F9DF30CB5FBD8AA280679FF359D73C9E9454FFE3090F66975A15665080629E9A664D057F039B17430D42B5E5F5F3F92831E73C15024060991090209C2E +) +vcpkg_extract_source_archive(${ARCHIVE}) + +# Put the licence file where vcpkg expects it +set(SOURCE_DIR ${CURRENT_BUILDTREES_DIR}/src/constexpr-a98b1db39c909e0130d21d3910d4faf97035a625) +file(COPY ${SOURCE_DIR}/README.md DESTINATION ${CURRENT_PACKAGES_DIR}/share/constexpr/README.md) +file(COPY ${SOURCE_DIR}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/constexpr/copyright) + +# Copy the constexpr header files +file(GLOB HEADER_FILES ${SOURCE_DIR}/src/include/*.h) +file(COPY ${HEADER_FILES} DESTINATION ${CURRENT_PACKAGES_DIR}/include) |
