From 469b819fdfa91bb81b3c0ec6081e43df36883528 Mon Sep 17 00:00:00 2001 From: Daniel Bonrath Date: Sat, 26 Nov 2016 19:36:25 +0100 Subject: #339 added clockUtils port --- ports/clockutils/CONTROL | 3 +++ ports/clockutils/portfile.cmake | 34 ++++++++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 ports/clockutils/CONTROL create mode 100644 ports/clockutils/portfile.cmake (limited to 'ports/clockutils') diff --git a/ports/clockutils/CONTROL b/ports/clockutils/CONTROL new file mode 100644 index 000000000..4ade8d5f0 --- /dev/null +++ b/ports/clockutils/CONTROL @@ -0,0 +1,3 @@ +Source: clockutils +Version: 1.1.1 +Description: A lightweight c++ library for commonly needed tasks. Optimized for simplicity and speed. diff --git a/ports/clockutils/portfile.cmake b/ports/clockutils/portfile.cmake new file mode 100644 index 000000000..c40d73328 --- /dev/null +++ b/ports/clockutils/portfile.cmake @@ -0,0 +1,34 @@ +include(vcpkg_common_functions) +set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/clockUtils-1.1.1) +vcpkg_download_distfile(ARCHIVE + URLS "https://github.com/ClockworkOrigins/clockUtils/archive/1.1.1.tar.gz" + FILENAME "clockUtils-1.1.1.tar.gz" + SHA512 6b0c57862baf04c0c5529549ba13983e53445172d9a272571aa20968ba6dba15f1cf480096ca100d450218fef090805366d0564c77a4aa4721a4fe694a0481c9 +) +vcpkg_extract_source_archive(${ARCHIVE}) + +if (VCPKG_CRT_LINKAGE STREQUAL dynamic) + SET(SHARED_FLAG ON) +else() + SET(SHARED_FLAG OFF) +endif() + +vcpkg_configure_cmake( + SOURCE_PATH ${SOURCE_PATH} + OPTIONS + -DWITH_LIBRARY_ARGPARSER=ON + -DWITH_LIBRARY_COMPRESSION=ON + -DWITH_LIBRARY_CONTAINER=ON + -DWITH_LIBRARY_INIPARSER=ON + -DWITH_LIBRARY_SOCKETS=ON + -DWITH_TESTING=OFF + -DCLOCKUTILS_BUILD_SHARED=${SHARED_FLAG} +) + +vcpkg_build_cmake() +vcpkg_install_cmake() + +file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include) + +file(COPY ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/clockUtils) +file(RENAME ${CURRENT_PACKAGES_DIR}/share/clockUtils/LICENSE ${CURRENT_PACKAGES_DIR}/share/clockUtils/copyright) \ No newline at end of file -- cgit v1.2.3 From 660797c22cf866a0fc613e3ec4c5d59cf761edc8 Mon Sep 17 00:00:00 2001 From: Alexander Karatarakis Date: Sat, 26 Nov 2016 13:35:26 -0800 Subject: [clockutils] Call vcpkg_copy_pdbs() --- ports/clockutils/portfile.cmake | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'ports/clockutils') diff --git a/ports/clockutils/portfile.cmake b/ports/clockutils/portfile.cmake index c40d73328..49ef3bf3f 100644 --- a/ports/clockutils/portfile.cmake +++ b/ports/clockutils/portfile.cmake @@ -31,4 +31,6 @@ vcpkg_install_cmake() file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include) file(COPY ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/clockUtils) -file(RENAME ${CURRENT_PACKAGES_DIR}/share/clockUtils/LICENSE ${CURRENT_PACKAGES_DIR}/share/clockUtils/copyright) \ No newline at end of file +file(RENAME ${CURRENT_PACKAGES_DIR}/share/clockUtils/LICENSE ${CURRENT_PACKAGES_DIR}/share/clockUtils/copyright) + +vcpkg_copy_pdbs() \ No newline at end of file -- cgit v1.2.3 From 9fdb1f8fe800867a5e87452f0bad249b2500f3b2 Mon Sep 17 00:00:00 2001 From: Alexander Karatarakis Date: Sat, 26 Nov 2016 16:11:27 -0800 Subject: [clockutils] Remove copy of LICENSE --- ports/clockutils/portfile.cmake | 1 + 1 file changed, 1 insertion(+) (limited to 'ports/clockutils') diff --git a/ports/clockutils/portfile.cmake b/ports/clockutils/portfile.cmake index 49ef3bf3f..c078673a6 100644 --- a/ports/clockutils/portfile.cmake +++ b/ports/clockutils/portfile.cmake @@ -32,5 +32,6 @@ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include) file(COPY ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/clockUtils) file(RENAME ${CURRENT_PACKAGES_DIR}/share/clockUtils/LICENSE ${CURRENT_PACKAGES_DIR}/share/clockUtils/copyright) +file(REMOVE ${CURRENT_PACKAGES_DIR}/LICENSE) vcpkg_copy_pdbs() \ No newline at end of file -- cgit v1.2.3