aboutsummaryrefslogtreecommitdiff
path: root/ports/curl
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/curl
downloadvcpkg-ccca198c1b1730b0241911cb56dc8e3504958b2a.tar.gz
vcpkg-ccca198c1b1730b0241911cb56dc8e3504958b2a.zip
Initial commit
Diffstat (limited to 'ports/curl')
-rw-r--r--ports/curl/CONTROL3
-rw-r--r--ports/curl/portfile.cmake24
2 files changed, 27 insertions, 0 deletions
diff --git a/ports/curl/CONTROL b/ports/curl/CONTROL
new file mode 100644
index 000000000..259803ab7
--- /dev/null
+++ b/ports/curl/CONTROL
@@ -0,0 +1,3 @@
+Source: curl
+Version: 7.48.0
+Description: A library for transferring data with URLs \ No newline at end of file
diff --git a/ports/curl/portfile.cmake b/ports/curl/portfile.cmake
new file mode 100644
index 000000000..fc1115741
--- /dev/null
+++ b/ports/curl/portfile.cmake
@@ -0,0 +1,24 @@
+include(vcpkg_common_functions)
+vcpkg_download_distfile(ARCHIVE_FILE
+ URL "https://curl.haxx.se/download/curl-7.48.0.tar.bz2"
+ FILENAME "curl-7.48.0.tar.bz2"
+ MD5 d42e0fc34a5cace5739631cc040974fe
+)
+vcpkg_extract_source_archive(${ARCHIVE_FILE})
+
+vcpkg_configure_cmake(
+ SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/curl-7.48.0
+ OPTIONS
+ -DBUILD_CURL_TESTS=OFF
+ -DBUILD_CURL_EXE=OFF
+ -DENABLE_MANUAL=OFF
+ OPTIONS_DEBUG
+ -DENABLE_DEBUG=ON
+)
+
+vcpkg_build_cmake()
+vcpkg_install_cmake()
+
+file(INSTALL ${CURRENT_BUILDTREES_DIR}/src/curl-7.48.0/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/curl RENAME copyright)
+file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
+vcpkg_copy_pdbs() \ No newline at end of file