From ccca198c1b1730b0241911cb56dc8e3504958b2a Mon Sep 17 00:00:00 2001 From: Alexander Karatarakis Date: Sun, 18 Sep 2016 20:50:08 -0700 Subject: Initial commit --- ports/tinyxml2/CONTROL | 3 +++ ports/tinyxml2/portfile.cmake | 22 ++++++++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 ports/tinyxml2/CONTROL create mode 100644 ports/tinyxml2/portfile.cmake (limited to 'ports/tinyxml2') diff --git a/ports/tinyxml2/CONTROL b/ports/tinyxml2/CONTROL new file mode 100644 index 000000000..b8bf3d76a --- /dev/null +++ b/ports/tinyxml2/CONTROL @@ -0,0 +1,3 @@ +Source: tinyxml2 +Version: 3.0.0 +Description: A simple, small, efficient, C++ XML parser \ No newline at end of file diff --git a/ports/tinyxml2/portfile.cmake b/ports/tinyxml2/portfile.cmake new file mode 100644 index 000000000..56c86d82a --- /dev/null +++ b/ports/tinyxml2/portfile.cmake @@ -0,0 +1,22 @@ +include(vcpkg_common_functions) +vcpkg_download_distfile(ARCHIVE + URL "https://github.com/leethomason/tinyxml2/archive/3.0.0.zip" + FILENAME "tinyxml2-3.0.0.zip" + MD5 851ffc79097239cdc03a952094ddf437 +) +vcpkg_extract_source_archive(${ARCHIVE}) + +vcpkg_configure_cmake( + SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/tinyxml2-3.0.0 + # OPTIONS -DUSE_THIS_IN_ALL_BUILDS=1 + # OPTIONS_RELEASE -DOPTIMIZE=1 + # OPTIONS_DEBUG -DDEBUGGABLE=1 +) + +vcpkg_build_cmake() +vcpkg_install_cmake() + +file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include) +file(COPY ${CURRENT_BUILDTREES_DIR}/src/tinyxml2-3.0.0/readme.md DESTINATION ${CURRENT_PACKAGES_DIR}/share/tinyxml2) +file(RENAME ${CURRENT_PACKAGES_DIR}/share/tinyxml2/readme.md ${CURRENT_PACKAGES_DIR}/share/tinyxml2/copyright) +vcpkg_copy_pdbs() -- cgit v1.2.3