From e591f8d63f2b1f53c4aca54b628d5fbe9f31779b Mon Sep 17 00:00:00 2001 From: Bogdan Gospodaru Date: Mon, 29 Apr 2019 22:16:12 +0300 Subject: [tmxlite] port (#6243) * added tmxlite port * added static support --- ports/tmxlite/CONTROL | 3 +++ ports/tmxlite/portfile.cmake | 24 ++++++++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 ports/tmxlite/CONTROL create mode 100644 ports/tmxlite/portfile.cmake diff --git a/ports/tmxlite/CONTROL b/ports/tmxlite/CONTROL new file mode 100644 index 000000000..eb3cfdd55 --- /dev/null +++ b/ports/tmxlite/CONTROL @@ -0,0 +1,3 @@ +Source: tmxlite +Version: 2019-03-05 +Description: A lightweight C++14 parsing library for tmx map files created with the Tiled map editor. \ No newline at end of file diff --git a/ports/tmxlite/portfile.cmake b/ports/tmxlite/portfile.cmake new file mode 100644 index 000000000..14f1234f4 --- /dev/null +++ b/ports/tmxlite/portfile.cmake @@ -0,0 +1,24 @@ +include(vcpkg_common_functions) + +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO fallahn/tmxlite + REF 591dd0371dceb2c43abeceac11cd9e8077880cca + HEAD_REF master + SHA512 a857aea3ec99c686e97d25ecb2bdd8d2f2f14dcb8419e14535ace8794bfbc21fe825cffc60e589df7291ae35076fb6734f7047c985a6ea6d0c55c861c07ba784 +) + +vcpkg_configure_cmake( + SOURCE_PATH ${SOURCE_PATH}/tmxlite + PREFER_NINJA +) + +vcpkg_install_cmake() + +file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include) + +if(VCPKG_LIBRARY_LINKAGE STREQUAL static) + file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin ${CURRENT_PACKAGES_DIR}/debug/bin) +endif() + +configure_file(${SOURCE_PATH}/readme.md ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright COPYONLY) \ No newline at end of file -- cgit v1.2.3