2020-01-28 06:11:39 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO frankheckenbach/ftgl
|
2024-09-04 03:38:18 +08:00
|
|
|
REF v${VERSION}
|
|
|
|
SHA512 5a0d05dbb32952e5aa81d2537d604192ca19710cd57289ae056acc5e3ae6d403d7f0ffc8cf6c1aada6c3c23a8df4a8d0eabb81433036ade810bca1894fdfde54
|
2020-01-28 06:11:39 +08:00
|
|
|
HEAD_REF master
|
|
|
|
PATCHES
|
2024-09-04 03:38:18 +08:00
|
|
|
fix-cmake.diff # https://github.com/frankheckenbach/ftgl/commit/835f2ba7911a6c15a1a314d5e3267fa089b5a319
|
|
|
|
fix-gl-flags.diff # https://github.com/frankheckenbach/ftgl/commit/778b8f21ba0b71289aef37e3422d008456445971
|
|
|
|
install-pkgconfig.diff # https://github.com/frankheckenbach/ftgl/commit/8763fa4e413e015e46376697fb8ab59ed31c2ff5
|
2020-01-28 06:11:39 +08:00
|
|
|
02_enable-cpp11-std.patch
|
2024-09-04 03:38:18 +08:00
|
|
|
freetype-usage.diff
|
2020-01-28 06:11:39 +08:00
|
|
|
)
|
|
|
|
|
2021-11-05 01:42:34 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2024-09-04 03:38:18 +08:00
|
|
|
OPTIONS
|
|
|
|
-DCMAKE_DISABLE_FIND_PACKAGE_CxxTest=ON
|
|
|
|
-DCMAKE_DISABLE_FIND_PACKAGE_Doxygen=ON
|
2020-01-28 06:11:39 +08:00
|
|
|
)
|
|
|
|
|
2021-11-05 01:42:34 +08:00
|
|
|
vcpkg_cmake_install()
|
2020-01-28 06:11:39 +08:00
|
|
|
if (VCPKG_TARGET_IS_WINDOWS)
|
2021-11-05 01:42:34 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH cmake)
|
2020-01-28 06:11:39 +08:00
|
|
|
else ()
|
2021-11-05 01:42:34 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake)
|
2020-01-28 06:11:39 +08:00
|
|
|
endif()
|
|
|
|
|
2024-09-04 03:38:18 +08:00
|
|
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
|
|
|
vcpkg_replace_string(
|
|
|
|
"${CURRENT_PACKAGES_DIR}/include/FTGL/ftgl.h"
|
|
|
|
"ifdef FTGL_LIBRARY_STATIC"
|
|
|
|
"if 1//ifdef FTGL_LIBRARY_STATIC"
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
2021-11-05 01:42:34 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2020-01-28 06:11:39 +08:00
|
|
|
|
2022-05-21 05:36:33 +08:00
|
|
|
vcpkg_fixup_pkgconfig()
|
|
|
|
|
2024-09-04 03:38:18 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING")
|