2019-03-12 04:15:08 +08:00
|
|
|
set(VERSION 1.0.4)
|
|
|
|
|
2017-07-06 15:22:58 +08:00
|
|
|
vcpkg_download_distfile(ARCHIVE
|
2019-03-12 04:15:08 +08:00
|
|
|
URLS "http://www.ferzkopp.net/Software/SDL2_gfx/SDL2_gfx-${VERSION}.zip"
|
|
|
|
FILENAME "SDL2_gfx-${VERSION}.zip"
|
|
|
|
SHA512 213b481469ba2161bd8558a7a5427b129420193b1c3895923d515f69f87991ed2c99bbc44349c60b4bcbb7d7d2255c1f15ee8a3523c26502070cfaacccaa5242
|
2017-07-06 15:22:58 +08:00
|
|
|
)
|
2019-03-12 04:15:08 +08:00
|
|
|
|
2023-03-02 02:39:29 +08:00
|
|
|
vcpkg_extract_source_archive(
|
|
|
|
SOURCE_PATH
|
2019-03-12 04:15:08 +08:00
|
|
|
ARCHIVE ${ARCHIVE}
|
2023-03-02 02:39:29 +08:00
|
|
|
SOURCE_BASE "${VERSION}"
|
2020-01-28 06:32:23 +08:00
|
|
|
PATCHES
|
|
|
|
001-lrint-arm64.patch
|
2020-11-04 08:25:46 +08:00
|
|
|
002-use-the-lrintf-intrinsic.patch
|
2019-03-12 04:15:08 +08:00
|
|
|
)
|
|
|
|
|
2023-03-02 02:39:29 +08:00
|
|
|
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
|
2017-07-06 15:22:58 +08:00
|
|
|
|
2023-03-02 02:39:29 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2017-07-08 08:44:09 +08:00
|
|
|
OPTIONS_DEBUG -DSDL_GFX_SKIP_HEADERS=1
|
2017-07-06 15:22:58 +08:00
|
|
|
)
|
|
|
|
|
2023-03-02 02:39:29 +08:00
|
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_cmake_config_fixup()
|
2017-07-06 15:22:58 +08:00
|
|
|
|
|
|
|
# Handle copyright
|
2023-03-02 02:39:29 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
2017-07-06 15:22:58 +08:00
|
|
|
|
|
|
|
vcpkg_copy_pdbs()
|