diff options
| author | Alexander Karatarakis <alkarata@microsoft.com> | 2016-12-12 13:29:53 -0800 |
|---|---|---|
| committer | Alexander Karatarakis <alkarata@microsoft.com> | 2016-12-12 13:29:53 -0800 |
| commit | 37ec5a1419d9bee232246f337dc9ad78cb79eb1f (patch) | |
| tree | 955a85d923890efc0997dc189f8b577cb5751e77 | |
| parent | 5d0a88259a398774d7bdbbdaea7855958804b633 (diff) | |
| parent | 7b111b87a817455922a0bcc5aa7579e7baeaa2b0 (diff) | |
| download | vcpkg-37ec5a1419d9bee232246f337dc9ad78cb79eb1f.tar.gz vcpkg-37ec5a1419d9bee232246f337dc9ad78cb79eb1f.zip | |
Merge branch 'master' of https://github.com/gknowles/vcpkg into gknowles-master
| -rw-r--r-- | ports/dimcli/CONTROL | 4 | ||||
| -rw-r--r-- | ports/dimcli/portfile.cmake | 37 |
2 files changed, 41 insertions, 0 deletions
diff --git a/ports/dimcli/CONTROL b/ports/dimcli/CONTROL new file mode 100644 index 000000000..c85457c89 --- /dev/null +++ b/ports/dimcli/CONTROL @@ -0,0 +1,4 @@ +Source: dimcli +Version: 1.0.3 +Description: C++ command line parser toolkit + diff --git a/ports/dimcli/portfile.cmake b/ports/dimcli/portfile.cmake new file mode 100644 index 000000000..465e1699e --- /dev/null +++ b/ports/dimcli/portfile.cmake @@ -0,0 +1,37 @@ +# Common Ambient Variables: +# VCPKG_ROOT_DIR = <C:\path\to\current\vcpkg> +# TARGET_TRIPLET is the current triplet (x86-windows, etc) +# PORT is the current port name (zlib, etc) +# CURRENT_BUILDTREES_DIR = ${VCPKG_ROOT_DIR}\buildtrees\${PORT} +# CURRENT_PACKAGES_DIR = ${VCPKG_ROOT_DIR}\packages\${PORT}_${TARGET_TRIPLET} +# + +set(ver 1.0.3) +include(vcpkg_common_functions) +set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/dimcli-${ver}) +vcpkg_download_distfile(ARCHIVE + URLS "https://github.com/gknowles/dimcli/archive/v${ver}.zip" + FILENAME "dimcli-${ver}.zip" + SHA512 5168aff22223cb85421fabd4ce82f3ec0bcab6551704484bc5b05be02ead23bd3d4a629c558a15f214e9d999eccc9c129649d066fdacfda3c839a40b48f8ec17 +) +vcpkg_extract_source_archive(${ARCHIVE}) + +set(staticCrt OFF) +if(VCPKG_CRT_LINKAGE STREQUAL static) + set(staticCrt ON) +endif() +vcpkg_configure_cmake( + SOURCE_PATH ${SOURCE_PATH} + OPTIONS -DLINK_STATIC_RUNTIME:BOOL=${staticCrt} +) + +vcpkg_install_cmake() + +# Remove includes from ${CMAKE_INSTALL_PREFIX}/debug +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") + +# Handle copyright +file(INSTALL "${SOURCE_PATH}/LICENSE" + DESTINATION "${CURRENT_PACKAGES_DIR}/share/dimcli" + RENAME copyright) + |
