mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-31 05:03:22 +08:00
5a7640f6a2
* use vcpkg provided libs before system frameworks on macOS, remove now unnecessary mod to giflib * fix references * fixes from review * apply fixes from review - remove warnings too! * [giflib] add license * fix references Co-authored-by: Victor Romero <viromer@microsoft.com>
33 lines
974 B
CMake
33 lines
974 B
CMake
set(GIFLIB_VERSION 5.2.1)
|
|
|
|
set(EXTRA_PATCHES "")
|
|
if (VCPKG_TARGET_IS_WINDOWS)
|
|
list(APPEND EXTRA_PATCHES fix-compile-error.patch)
|
|
endif()
|
|
|
|
vcpkg_from_sourceforge(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO "giflib"
|
|
FILENAME "giflib-${GIFLIB_VERSION}.tar.gz"
|
|
SHA512 4550e53c21cb1191a4581e363fc9d0610da53f7898ca8320f0d3ef6711e76bdda2609c2df15dc94c45e28bff8de441f1227ec2da7ea827cb3c0405af4faa4736
|
|
PATCHES
|
|
msvc-guard-unistd-h.patch
|
|
disable-GifDrawBoxedText8x8-win32.patch # MSVC doesn't have strtok_r
|
|
${EXTRA_PATCHES}
|
|
)
|
|
|
|
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
OPTIONS
|
|
"-DGIFLIB_EXPORTS=${CMAKE_CURRENT_LIST_DIR}/exports.def"
|
|
OPTIONS_DEBUG
|
|
-DGIFLIB_SKIP_HEADERS=ON
|
|
)
|
|
|
|
vcpkg_cmake_install()
|
|
vcpkg_copy_pdbs()
|
|
|
|
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|