2021-07-24 00:02:46 +08:00
|
|
|
set(EXTRA_PATCHES "")
|
2024-02-29 09:08:22 +08:00
|
|
|
if (VCPKG_TARGET_IS_WINDOWS AND NOT VCPKG_TARGET_IS_MINGW)
|
|
|
|
list(APPEND EXTRA_PATCHES msvc.diff)
|
2019-05-10 02:45:23 +08:00
|
|
|
endif()
|
|
|
|
|
2020-06-27 06:06:30 +08:00
|
|
|
vcpkg_from_sourceforge(
|
2019-03-27 08:31:19 +08:00
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
2020-06-27 06:06:30 +08:00
|
|
|
REPO "giflib"
|
2024-02-29 09:08:22 +08:00
|
|
|
FILENAME "giflib-${VERSION}.tar.gz"
|
|
|
|
SHA512 0865ab2b1904fa14640c655fdb14bb54244ad18a66e358565c00287875d00912343f9be8bfac7658cc0146200d626f7ec9160d7a339f20ba3be6b9941d73975f
|
2019-03-29 05:46:21 +08:00
|
|
|
PATCHES
|
2021-07-24 00:02:46 +08:00
|
|
|
${EXTRA_PATCHES}
|
2019-03-27 08:31:19 +08:00
|
|
|
)
|
2019-03-23 18:07:21 +08:00
|
|
|
|
2021-07-24 00:02:46 +08:00
|
|
|
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
|
2017-04-27 23:00:00 +08:00
|
|
|
|
2021-07-24 00:02:46 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
|
|
OPTIONS
|
|
|
|
"-DGIFLIB_EXPORTS=${CMAKE_CURRENT_LIST_DIR}/exports.def"
|
2017-04-27 23:00:00 +08:00
|
|
|
OPTIONS_DEBUG
|
|
|
|
-DGIFLIB_SKIP_HEADERS=ON
|
|
|
|
)
|
|
|
|
|
2021-07-24 00:02:46 +08:00
|
|
|
vcpkg_cmake_install()
|
2017-04-27 23:00:00 +08:00
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
2022-10-28 10:15:17 +08:00
|
|
|
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/vcpkg-cmake-wrapper.cmake" DESTINATION "${CURRENT_PACKAGES_DIR}/share/gif")
|
|
|
|
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
2021-07-24 00:02:46 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|