Merge pull request #46 from Ninetainedo/Add-Sery

Added Sery 1.0.0
This commit is contained in:
Robert Schumacher 2016-09-20 20:05:23 -07:00 committed by GitHub
commit b706a09e50
2 changed files with 33 additions and 0 deletions

3
ports/sery/CONTROL Normal file
View File

@ -0,0 +1,3 @@
Source: sery
Version: 1.0.0
Description: Simple binary (de)serialization library

30
ports/sery/portfile.cmake Normal file
View File

@ -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)