2020-06-27 06:06:30 +08:00
|
|
|
vcpkg_from_sourceforge(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO freeimage/Source%20Distribution
|
|
|
|
REF 3.18.0
|
2018-11-11 22:16:11 +08:00
|
|
|
FILENAME "FreeImage3180.zip"
|
|
|
|
SHA512 9d9cc7e2d57552c3115e277aeb036e0455204d389026b17a3f513da5be1fd595421655488bb1ec2f76faebed66049119ca55e26e2a6d37024b3fb7ef36ad4818
|
2020-06-27 06:06:30 +08:00
|
|
|
PATCHES
|
|
|
|
disable-plugins-depending-on-internal-third-party-libraries.patch
|
|
|
|
use-external-jpeg.patch
|
|
|
|
use-external-jxrlib.patch
|
|
|
|
use-external-libtiff.patch
|
|
|
|
use-external-openjpeg.patch
|
|
|
|
use-external-png-zlib.patch
|
|
|
|
use-external-rawlib.patch
|
|
|
|
use-external-webp.patch
|
|
|
|
use-external-openexr.patch
|
|
|
|
use-freeimage-config-include.patch
|
|
|
|
fix-function-overload.patch
|
|
|
|
use-typedef-as-already-declared.patch
|
2020-09-28 08:45:49 +08:00
|
|
|
use-functions-to-override-libtiff-warning-error-handlers.patch
|
2022-07-29 06:45:36 +08:00
|
|
|
remove_auto_ptr.patch
|
2023-02-17 05:35:47 +08:00
|
|
|
rawlib-build-fix.patch
|
2024-05-31 18:00:58 +08:00
|
|
|
typedef-xcode.patch
|
2019-05-10 02:45:23 +08:00
|
|
|
)
|
2016-11-28 00:24:23 +08:00
|
|
|
|
2023-02-17 05:35:47 +08:00
|
|
|
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt"
|
|
|
|
"${CMAKE_CURRENT_LIST_DIR}/FreeImageConfig-static.h"
|
|
|
|
"${CMAKE_CURRENT_LIST_DIR}/FreeImageConfig-dynamic.h"
|
|
|
|
DESTINATION "${SOURCE_PATH}"
|
|
|
|
)
|
2016-11-28 00:24:23 +08:00
|
|
|
|
2019-02-27 00:16:20 +08:00
|
|
|
# This is not strictly necessary, but to make sure
|
|
|
|
# that no "internal" libraries are used we remove them
|
2023-02-17 05:35:47 +08:00
|
|
|
file(REMOVE_RECURSE
|
|
|
|
"${SOURCE_PATH}/Source/LibJPEG"
|
|
|
|
"${SOURCE_PATH}/Source/LibPNG"
|
|
|
|
"${SOURCE_PATH}/Source/LibTIFF4"
|
|
|
|
"${SOURCE_PATH}/Source/ZLib"
|
|
|
|
"${SOURCE_PATH}/Source/LibOpenJPEG"
|
|
|
|
"${SOURCE_PATH}/Source/LibJXR"
|
|
|
|
"${SOURCE_PATH}/Source/LibWebP"
|
|
|
|
"${SOURCE_PATH}/Source/LibRawLite"
|
|
|
|
"${SOURCE_PATH}/Source/OpenEXR"
|
|
|
|
)
|
2016-11-28 00:24:23 +08:00
|
|
|
|
2023-02-17 05:35:47 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2019-02-27 00:16:20 +08:00
|
|
|
OPTIONS_DEBUG
|
2023-02-17 05:35:47 +08:00
|
|
|
-DINSTALL_HEADERS=OFF
|
2016-11-28 00:24:23 +08:00
|
|
|
)
|
|
|
|
|
2023-02-17 05:35:47 +08:00
|
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_cmake_config_fixup()
|
2016-11-28 00:24:23 +08:00
|
|
|
|
2016-11-29 16:52:06 +08:00
|
|
|
vcpkg_copy_pdbs()
|
2020-01-07 05:15:20 +08:00
|
|
|
|
2023-02-17 05:35:47 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/license-fi.txt")
|