aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBogdan Gospodaru <bgospodaru@gmail.com>2019-04-29 22:16:12 +0300
committerPhil Christensen <philc@microsoft.com>2019-04-29 12:16:12 -0700
commite591f8d63f2b1f53c4aca54b628d5fbe9f31779b (patch)
treeef728539f198abfbd098bfd37786545a48765f5b
parent51dc766e79b889bc47198a3704bf39c356a80970 (diff)
downloadvcpkg-e591f8d63f2b1f53c4aca54b628d5fbe9f31779b.tar.gz
vcpkg-e591f8d63f2b1f53c4aca54b628d5fbe9f31779b.zip
[tmxlite] port (#6243)
* added tmxlite port * added static support
-rw-r--r--ports/tmxlite/CONTROL3
-rw-r--r--ports/tmxlite/portfile.cmake24
2 files changed, 27 insertions, 0 deletions
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