aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNinetainedo <ninetainedo@gmail.com>2016-09-21 01:52:54 +0200
committerNinetainedo <ninetainedo@gmail.com>2016-09-21 01:52:54 +0200
commit1bda683b89cce2a7c4c37438f70bf7ac8c3f016d (patch)
tree1e5371d47d1e2ea76d6516f987e402aa9e19e2d1
parent1da3c801a3631a976a891a61c4ee9607b992ed1d (diff)
downloadvcpkg-1bda683b89cce2a7c4c37438f70bf7ac8c3f016d.tar.gz
vcpkg-1bda683b89cce2a7c4c37438f70bf7ac8c3f016d.zip
Added Sery 1.0.0
-rw-r--r--ports/sery/CONTROL3
-rw-r--r--ports/sery/portfile.cmake30
2 files changed, 33 insertions, 0 deletions
diff --git a/ports/sery/CONTROL b/ports/sery/CONTROL
new file mode 100644
index 000000000..782452b2a
--- /dev/null
+++ b/ports/sery/CONTROL
@@ -0,0 +1,3 @@
+Source: sery
+Version: 1.0.0
+Description: Simple binary (de)serialization library
diff --git a/ports/sery/portfile.cmake b/ports/sery/portfile.cmake
new file mode 100644
index 000000000..a6df423d3
--- /dev/null
+++ b/ports/sery/portfile.cmake
@@ -0,0 +1,30 @@
+include(vcpkg_common_functions)
+vcpkg_download_distfile(ARCHIVE
+ URL "https://github.com/Ninetainedo/Sery/archive/v1.0.zip"
+ FILENAME "sery-1.0.0.zip"
+ MD5 6af526fb1b029dd989a35e44a6fa59a8
+)
+vcpkg_extract_source_archive(${ARCHIVE})
+
+SET(SERY_ROOT_DIR "${CURRENT_BUILDTREES_DIR}/src/Sery-1.0")
+
+vcpkg_configure_cmake(
+ SOURCE_PATH ${SERY_ROOT_DIR}
+ # OPTIONS -DUSE_THIS_IN_ALL_BUILDS=1 -DUSE_THIS_TOO=2
+ # OPTIONS_RELEASE -DOPTIMIZE=1
+ # OPTIONS_DEBUG -DDEBUGGABLE=1
+)
+
+vcpkg_build_cmake()
+vcpkg_install_cmake()
+
+# Removes unnecessary directories
+file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
+file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/cmake)
+
+# Handle copyright
+file(COPY ${SERY_ROOT_DIR}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/sery)
+file(RENAME ${CURRENT_PACKAGES_DIR}/share/sery/LICENSE ${CURRENT_PACKAGES_DIR}/share/sery/copyright)
+
+# Moves cmake files where appropriate
+file(RENAME ${CURRENT_PACKAGES_DIR}/cmake ${CURRENT_PACKAGES_DIR}/share/sery/cmake)