aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/tmx
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/tmx')
-rw-r--r--vcpkg/ports/tmx/portfile.cmake24
-rw-r--r--vcpkg/ports/tmx/vcpkg.json18
2 files changed, 42 insertions, 0 deletions
diff --git a/vcpkg/ports/tmx/portfile.cmake b/vcpkg/ports/tmx/portfile.cmake
new file mode 100644
index 0000000..a9a694a
--- /dev/null
+++ b/vcpkg/ports/tmx/portfile.cmake
@@ -0,0 +1,24 @@
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO baylej/tmx
+ REF "tmx_${VERSION}"
+ HEAD_REF master
+ SHA512 302e55c6d78947dbac1470855331fb238e2ac681f10414aef1e3dad5c1128b66aeb2fef0c4cb2d03360b5e5b327e46c9e5d7dc5bf15d411c9fa3cf7dd4351b4f
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+)
+
+vcpkg_cmake_install()
+vcpkg_copy_pdbs()
+
+vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/tmx)
+
+file(REMOVE_RECURSE
+ "${CURRENT_PACKAGES_DIR}/debug/include"
+ "${CURRENT_PACKAGES_DIR}/debug/share"
+)
+
+# Handle copyright
+configure_file("${SOURCE_PATH}/COPYING" "${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright" COPYONLY)
diff --git a/vcpkg/ports/tmx/vcpkg.json b/vcpkg/ports/tmx/vcpkg.json
new file mode 100644
index 0000000..c9a95fd
--- /dev/null
+++ b/vcpkg/ports/tmx/vcpkg.json
@@ -0,0 +1,18 @@
+{
+ "name": "tmx",
+ "version": "1.10.0",
+ "description": "A portable C library to load tiled maps in your games.",
+ "license": "BSD-2-Clause",
+ "dependencies": [
+ "libxml2",
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ },
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true
+ },
+ "zlib"
+ ]
+}