aboutsummaryrefslogtreecommitdiff
path: root/ports/expat
diff options
context:
space:
mode:
authorAlexander Karatarakis <alkarata@microsoft.com>2016-09-18 20:50:08 -0700
committerAlexander Karatarakis <alkarata@microsoft.com>2016-09-18 20:54:03 -0700
commitccca198c1b1730b0241911cb56dc8e3504958b2a (patch)
treea2dd9b8b087a09afdcecc5cbb3377bed15127eb2 /ports/expat
downloadvcpkg-ccca198c1b1730b0241911cb56dc8e3504958b2a.tar.gz
vcpkg-ccca198c1b1730b0241911cb56dc8e3504958b2a.zip
Initial commit
Diffstat (limited to 'ports/expat')
-rw-r--r--ports/expat/CONTROL3
-rw-r--r--ports/expat/portfile.cmake22
2 files changed, 25 insertions, 0 deletions
diff --git a/ports/expat/CONTROL b/ports/expat/CONTROL
new file mode 100644
index 000000000..86d446529
--- /dev/null
+++ b/ports/expat/CONTROL
@@ -0,0 +1,3 @@
+Source: expat
+Version: 2.1.1
+Description: XML parser library written in C \ No newline at end of file
diff --git a/ports/expat/portfile.cmake b/ports/expat/portfile.cmake
new file mode 100644
index 000000000..9a396774d
--- /dev/null
+++ b/ports/expat/portfile.cmake
@@ -0,0 +1,22 @@
+include(vcpkg_common_functions)
+vcpkg_download_distfile(ARCHIVE_FILE
+ URL "http://downloads.sourceforge.net/project/expat/expat/2.1.1/expat-2.1.1.tar.bz2"
+ FILENAME "expat-2.1.1.tar.bz2"
+ MD5 7380a64a8e3a9d66a9887b01d0d7ea81
+)
+vcpkg_extract_source_archive(${ARCHIVE_FILE})
+
+vcpkg_configure_cmake(
+ SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/expat-2.1.1
+ OPTIONS
+ -DBUILD_examples=OFF
+ -DBUILD_tests=OFF
+ -DBUILD_tools=OFF
+)
+
+vcpkg_build_cmake()
+vcpkg_install_cmake()
+
+file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include ${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig ${CURRENT_PACKAGES_DIR}/lib/pkgconfig)
+file(INSTALL ${CURRENT_BUILDTREES_DIR}/src/expat-2.1.1/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/expat RENAME copyright)
+vcpkg_copy_pdbs() \ No newline at end of file