aboutsummaryrefslogtreecommitdiff
path: root/ports/zlib
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/zlib
downloadvcpkg-ccca198c1b1730b0241911cb56dc8e3504958b2a.tar.gz
vcpkg-ccca198c1b1730b0241911cb56dc8e3504958b2a.zip
Initial commit
Diffstat (limited to 'ports/zlib')
-rw-r--r--ports/zlib/CONTROL3
-rw-r--r--ports/zlib/LICENSE20
-rw-r--r--ports/zlib/portfile.cmake22
3 files changed, 45 insertions, 0 deletions
diff --git a/ports/zlib/CONTROL b/ports/zlib/CONTROL
new file mode 100644
index 000000000..482873480
--- /dev/null
+++ b/ports/zlib/CONTROL
@@ -0,0 +1,3 @@
+Source: zlib
+Version: 1.2.8
+Description: A compression library \ No newline at end of file
diff --git a/ports/zlib/LICENSE b/ports/zlib/LICENSE
new file mode 100644
index 000000000..9b2f94711
--- /dev/null
+++ b/ports/zlib/LICENSE
@@ -0,0 +1,20 @@
+Copyright (C) 1995-2013 Jean-loup Gailly and Mark Adler
+
+ This software is provided 'as-is', without any express or implied
+ warranty. In no event will the authors be held liable for any damages
+ arising from the use of this software.
+
+ Permission is granted to anyone to use this software for any purpose,
+ including commercial applications, and to alter it and redistribute it
+ freely, subject to the following restrictions:
+
+ 1. The origin of this software must not be misrepresented; you must not
+ claim that you wrote the original software. If you use this software
+ in a product, an acknowledgment in the product documentation would be
+ appreciated but is not required.
+ 2. Altered source versions must be plainly marked as such, and must not be
+ misrepresented as being the original software.
+ 3. This notice may not be removed or altered from any source distribution.
+
+ Jean-loup Gailly Mark Adler
+ jloup@gzip.org madler@alumni.caltech.edu \ No newline at end of file
diff --git a/ports/zlib/portfile.cmake b/ports/zlib/portfile.cmake
new file mode 100644
index 000000000..cbd942aeb
--- /dev/null
+++ b/ports/zlib/portfile.cmake
@@ -0,0 +1,22 @@
+include(vcpkg_common_functions)
+vcpkg_download_distfile(ARCHIVE_FILE
+ URL "http://zlib.net/zlib128.zip"
+ FILENAME "zlib128.zip"
+ MD5 126f8676442ffbd97884eb4d6f32afb4
+)
+vcpkg_extract_source_archive(${ARCHIVE_FILE})
+
+vcpkg_configure_cmake(
+ SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/zlib-1.2.8
+ OPTIONS
+ -DSKIP_INSTALL_FILES=ON
+ OPTIONS_DEBUG
+ -DSKIP_INSTALL_HEADERS=ON
+)
+
+vcpkg_build_cmake()
+vcpkg_install_cmake()
+
+file(REMOVE ${CURRENT_PACKAGES_DIR}/lib/zlibstatic.lib ${CURRENT_PACKAGES_DIR}/debug/lib/zlibstaticd.lib)
+file(INSTALL ${CMAKE_CURRENT_LIST_DIR}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/zlib RENAME copyright)
+vcpkg_copy_pdbs()