mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-28 03:10:57 +08:00
[graphicsmagick] Linux/MacOS support (#6408)
This commit is contained in:
parent
46a77b9006
commit
da5ee89be5
@ -2,20 +2,20 @@ cmake_minimum_required (VERSION 3.6)
|
||||
project (graphicsmagick)
|
||||
|
||||
find_package(ZLIB REQUIRED)
|
||||
find_package(Bzip2 REQUIRED)
|
||||
find_package(BZip2 REQUIRED)
|
||||
find_package(JPEG REQUIRED)
|
||||
find_package(PNG REQUIRED)
|
||||
find_package(TIFF REQUIRED)
|
||||
find_package(Freetype REQUIRED)
|
||||
|
||||
add_definitions(-D_MAGICKLIB_ -D_WANDLIB_ -DMAGICK_IMPLEMENTATION -D_VISUALC_)
|
||||
add_definitions(-D_MAGICKLIB_ -D_WANDLIB_ -DMAGICK_IMPLEMENTATION)
|
||||
|
||||
if (BUILD_SHARED_LIBS)
|
||||
add_definitions(-D_DLL -DDLL)
|
||||
endif ()
|
||||
|
||||
if (MSVC)
|
||||
add_definitions(-D_CRT_SECURE_NO_WARNINGS -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE)
|
||||
add_definitions( -D_VISUALC_ -D_CRT_SECURE_NO_WARNINGS -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE)
|
||||
endif ()
|
||||
|
||||
if (WIN32)
|
||||
@ -35,11 +35,20 @@ string(REPLACE "#undef HasJPEG" "#define HasJPEG" CONFIG_H "${CONFIG_H}")
|
||||
string(REPLACE "#undef HasPNG" "#define HasPNG" CONFIG_H "${CONFIG_H}")
|
||||
string(REPLACE "#undef HasTIFF" "#define HasTIFF" CONFIG_H "${CONFIG_H}")
|
||||
string(REPLACE "#undef HasTTF" "#define HasTTF" CONFIG_H "${CONFIG_H}")
|
||||
string(REPLACE "#undef HasWINGDI32" "#define HasWINGDI32" CONFIG_H "${CONFIG_H}")
|
||||
string(REPLACE "#undef HasTTF" "#define HasTTF" CONFIG_H "${CONFIG_H}")
|
||||
string(REPLACE "#undef HAVE_FT2BUILD_H" "#define HAVE_FT2BUILD_H" CONFIG_H "${CONFIG_H}")
|
||||
string(REPLACE "#undef HasZLIB" "#define HasZLIB" CONFIG_H "${CONFIG_H}")
|
||||
string(REPLACE "#undef QuantumDepth" "#define QuantumDepth 16" CONFIG_H "${CONFIG_H}")
|
||||
string(REPLACE "#undef restrict" "#define restrict" CONFIG_H "${CONFIG_H}")
|
||||
string(REPLACE "#undef size_t" "/* #undef size_t */" CONFIG_H "${CONFIG_H}")
|
||||
if (WIN32)
|
||||
string(REPLACE "#undef HasWINGDI32" "#define HasWINGDI32" CONFIG_H "${CONFIG_H}")
|
||||
else ()
|
||||
string(REPLACE "#undef HAVE_VSNPRINTF" "#define HAVE_VSNPRINTF" CONFIG_H "${CONFIG_H}")
|
||||
string(REPLACE "#undef MagickLibSubdir" "#define MagickLibSubdir \"magick\"" CONFIG_H "${CONFIG_H}")
|
||||
string(REPLACE "#undef MagickLibConfigSubDir" "#define MagickLibConfigSubDir \"magick/config\"" CONFIG_H "${CONFIG_H}")
|
||||
string(REPLACE "#undef MagickShareConfigSubDir" "#define MagickShareConfigSubDir \"magick/config\"" CONFIG_H "${CONFIG_H}")
|
||||
endif ()
|
||||
file(WRITE "magick/magick_config.h" "${CONFIG_H}")
|
||||
|
||||
file(READ "magick/magick_config_api.h.in" CONFIG_API_H)
|
||||
|
@ -1,5 +1,5 @@
|
||||
Source: graphicsmagick
|
||||
Maintainer: josuegomes@gmail.com
|
||||
Version: 1.3.31
|
||||
Version: 1.3.31-1
|
||||
Build-Depends: zlib, bzip2, freetype, libjpeg-turbo, libpng, tiff
|
||||
Description: Image processing library
|
||||
|
@ -92,33 +92,33 @@ extern "C" {
|
||||
#else
|
||||
|
||||
/* The following typedefs are subtituted when using Unixish configure */
|
||||
typedef @INT8_T@ magick_int8_t;
|
||||
typedef @UINT8_T@ magick_uint8_t;
|
||||
typedef signed char magick_int8_t;
|
||||
typedef unsigned char magick_uint8_t;
|
||||
|
||||
typedef @INT16_T@ magick_int16_t;
|
||||
typedef @UINT16_T@ magick_uint16_t;
|
||||
typedef signed short magick_int16_t;
|
||||
typedef unsigned short magick_uint16_t;
|
||||
|
||||
typedef @INT32_T@ magick_int32_t;
|
||||
# define MAGICK_INT32_F @INT32_F@
|
||||
typedef @UINT32_T@ magick_uint32_t;
|
||||
# define MAGICK_UINT32_F @UINT32_F@
|
||||
typedef signed int magick_int32_t;
|
||||
# define MAGICK_INT32_F ""
|
||||
typedef unsigned int magick_uint32_t;
|
||||
# define MAGICK_UINT32_F ""
|
||||
|
||||
typedef @INT64_T@ magick_int64_t;
|
||||
# define MAGICK_INT64_F @INT64_F@
|
||||
typedef @UINT64_T@ magick_uint64_t;
|
||||
# define MAGICK_UINT64_F @UINT64_F@
|
||||
typedef signed long magick_int64_t;
|
||||
# define MAGICK_INT64_F "l"
|
||||
typedef unsigned long magick_uint64_t;
|
||||
# define MAGICK_UINT64_F "l"
|
||||
|
||||
typedef @UINTMAX_T@ magick_uintmax_t;
|
||||
# define MAGICK_UINTMAX_F @UINTMAX_F@
|
||||
typedef unsigned long magick_uintmax_t;
|
||||
# define MAGICK_UINTMAX_F "l"
|
||||
|
||||
typedef @UINTPTR_T@ magick_uintptr_t;
|
||||
# define MAGICK_UINTPTR_F @UINTPTR_F@
|
||||
typedef unsigned long magick_uintptr_t;
|
||||
# define MAGICK_UINTPTR_F "l"
|
||||
|
||||
# define MAGICK_SIZE_T_F @MAGICK_SIZE_T_F@
|
||||
# define MAGICK_SIZE_T @MAGICK_SIZE_T@
|
||||
# define MAGICK_SIZE_T_F "l"
|
||||
# define MAGICK_SIZE_T unsigned long
|
||||
|
||||
# define MAGICK_SSIZE_T_F @MAGICK_SSIZE_T_F@
|
||||
# define MAGICK_SSIZE_T @MAGICK_SSIZE_T@
|
||||
# define MAGICK_SSIZE_T_F "l"
|
||||
# define MAGICK_SSIZE_T signed long
|
||||
|
||||
#endif
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user