mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-25 00:59:07 +08:00
9c33de2d07
* [freeimage] improve compatibility with other ports, using typedefs identical to other headers to avoid errors * [libwebp] fixes for non-win32 systems * [giflib] revert again #5578 * [freeglut] add missing wrapper for linux
38 lines
1.1 KiB
CMake
38 lines
1.1 KiB
CMake
include(vcpkg_common_functions)
|
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
set(GIFLIB_VERSION 5.1.4)
|
|
vcpkg_download_distfile(ARCHIVE
|
|
URLS "https://nchc.dl.sourceforge.net/project/giflib/giflib-${GIFLIB_VERSION}.tar.bz2"
|
|
FILENAME "giflib-${GIFLIB_VERSION}.tar.bz2"
|
|
SHA512 32b5e342056c210e6478e9cb3b6ceec9594dcfaf34feea1eb4dad633a081ed4465bceee578c19165907cb47cb83912ac359ceea666a8e07dbbb5420f9928f96d
|
|
)
|
|
|
|
if (VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore" OR NOT VCPKG_CMAKE_SYSTEM_NAME)
|
|
set(ADDITIONAL_PATCH "fix-compile-error.patch")
|
|
endif()
|
|
|
|
vcpkg_extract_source_archive_ex(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
ARCHIVE ${ARCHIVE}
|
|
REF ${GIFLIB_VERSION}
|
|
PATCHES
|
|
msvc-guard-unistd-h.patch
|
|
${ADDITIONAL_PATCH}
|
|
)
|
|
|
|
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
|
|
|
|
vcpkg_configure_cmake(
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
PREFER_NINJA
|
|
OPTIONS_DEBUG
|
|
-DGIFLIB_SKIP_HEADERS=ON
|
|
)
|
|
|
|
vcpkg_install_cmake()
|
|
vcpkg_copy_pdbs()
|
|
|
|
file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/giflib RENAME copyright)
|