-
Notifications
You must be signed in to change notification settings - Fork 6.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[gf] Add the new package GF (#12426)
* [gf] Add the new package GF * Update CONTROL * Update portfile.cmake * Try to fix failed builds * fix x64-linux build for vcpkg * remove nuklear from dependencies * use vcpkg_fail_port_install to fail early on arm * fix x64-windows build * change the name of the source in CONTROL * change the name of the directory * fix cmake install directory Co-authored-by: Lily <47812810+LilyWangL@users.noreply.github.com> Co-authored-by: Julien Bernard <julien.bernard@univ-fcomte.fr>
- Loading branch information
1 parent
092267f
commit 31cf09e
Showing
2 changed files
with
54 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
Source: gamedev-framework | ||
Version: 0.17 | ||
Homepage: https://github.com/GamedevFramework/gf | ||
Description: gf is a framework to build 2D games in C++14. | ||
Build-Depends: sdl2, freetype, zlib, boost-algorithm, boost-filesystem, boost-heap, boost-container, stb, pugixml | ||
Supports: !arm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
vcpkg_fail_port_install( | ||
ON_ARCH "arm" | ||
) | ||
|
||
vcpkg_from_github( | ||
OUT_SOURCE_PATH SOURCE_PATH | ||
REPO GamedevFramework/gf | ||
HEAD_REF master | ||
REF v0.17.4 | ||
SHA512 b35e0fef3c9dc397ec43132dcd6ca87f78217c55d72fc1117b1f530d568ad3537a0f682e285840471faa4e06eb7f396b784da767e83686519d0694b198a86379 | ||
) | ||
|
||
vcpkg_configure_cmake( | ||
SOURCE_PATH ${SOURCE_PATH} | ||
PREFER_NINJA | ||
OPTIONS | ||
-DGF_VCPKG=ON | ||
-DGF_USE_EMBEDDED_LIBS=OFF | ||
-DGF_BUILD_GAMES=OFF | ||
-DGF_BUILD_EXAMPLES=OFF | ||
-DGF_BUILD_TESTS=OFF | ||
-DGF_BUILD_DOCUMENTATION=OFF | ||
-DGF_SINGLE_COMPILTATION_UNIT=ON | ||
-DBUILD_SHARED_LIBS=${BUILD_SHARED_LIBS} | ||
OPTIONS_RELEASE -DGF_DEBUG=OFF | ||
OPTIONS_DEBUG -DGF_DEBUG=ON | ||
) | ||
|
||
vcpkg_install_cmake() | ||
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/gf) | ||
vcpkg_copy_pdbs() | ||
|
||
file(REMOVE_RECURSE | ||
"${CURRENT_PACKAGES_DIR}/debug/share" | ||
"${CURRENT_PACKAGES_DIR}/debug/include" | ||
"${CURRENT_PACKAGES_DIR}/share/doc" | ||
"${CURRENT_PACKAGES_DIR}/debug/bin/gf_info.exe" | ||
"${CURRENT_PACKAGES_DIR}/bin/gf_info.exe" | ||
) | ||
|
||
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static") | ||
file(REMOVE_RECURSE | ||
"${CURRENT_PACKAGES_DIR}/bin" | ||
"${CURRENT_PACKAGES_DIR}/debug/bin" | ||
) | ||
endif() | ||
|
||
file(INSTALL ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright) |