Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added SFML 2.4.0 and Sery 1.0.0 support #40

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions docs/EXAMPLES.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ openssl 1.0.2h OpenSSL is an open source project that pro
range-v3 0.0.0-1 Range library for C++11/14/17.
rapidjson 1.0.2-1 A fast JSON parser/generator for C++ with both SA...
sdl2 2.0.4 Simple DirectMedia Layer is a cross-platform deve...
sery 1.0.0 Simple binary (de)serialization library
sfml 2.4.0 Simple and Fast Multimedia Library http://www.sfm...
sqlite3 3120200 SQLite is a software library that implements a se...
tiff 4.0.6 A library that supports the manipulation of TIFF ...
tinyxml2 3.0.0 A simple, small, efficient, C++ XML parser
Expand Down
3 changes: 3 additions & 0 deletions ports/sery/CONTROL
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Source: sery
Version: 1.0.0
Description: Simple binary (de)serialization library
30 changes: 30 additions & 0 deletions ports/sery/portfile.cmake
Original file line number Diff line number Diff line change
@@ -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)
3 changes: 3 additions & 0 deletions ports/sfml/CONTROL
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Source: sfml
Version: 2.4.0
Description: Simple and Fast Multimedia Library http://www.sfml-dev.org/
30 changes: 30 additions & 0 deletions ports/sfml/portfile.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
include(vcpkg_common_functions)
vcpkg_download_distfile(ARCHIVE
URL "http://www.sfml-dev.org/files/SFML-2.4.0-sources.zip"
FILENAME "SFML-2.4.0.zip"
MD5 c15e4169b8cfeb2ab8bbc004a90c159a
)
vcpkg_extract_source_archive(${ARCHIVE})

SET(SFML_ROOT_DIR "${CURRENT_BUILDTREES_DIR}/src/SFML-2.4.0")

vcpkg_configure_cmake(
SOURCE_PATH ${SFML_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 ${SFML_ROOT_DIR}/license.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/sfml)
file(RENAME ${CURRENT_PACKAGES_DIR}/share/sfml/license.txt ${CURRENT_PACKAGES_DIR}/share/sfml/copyright)

# Moves cmake files where appropriate
file(RENAME ${CURRENT_PACKAGES_DIR}/cmake ${CURRENT_PACKAGES_DIR}/share/sfml/cmake)