Subversion Repositories Scribus

Compare Revisions

Regard whitespace Rev 20013 → Rev 20014

/trunk/Scribus/CMakeLists.txt
3,11 → 3,12
 
#Set our CMake minimum version
#Require 2.8.9 for Qt5
CMAKE_MINIMUM_REQUIRED(VERSION 2.8.9 FATAL_ERROR)
#Require 3.2.0 for add_custom_target with byproducts
CMAKE_MINIMUM_REQUIRED(VERSION 3.2.0 FATAL_ERROR)
 
#Pretty colors
SET(CMAKE_COLOR_MAKEFILE ON)
#Dont force verbose
#Don't force verbose
SET(CMAKE_VERBOSE_MAKEFILE OFF)
#Include current dir
SET(CMAKE_INCLUDE_CURRENT_DIR TRUE)
55,7 → 56,7
IF (VERSION_SUFFIX)
SET (VERSION ${VERSION}.${VERSION_SUFFIX})
ENDIF (VERSION_SUFFIX)
MESSAGE(STATUS "Scribus ${VERSION} will be built to install into ${CMAKE_INSTALL_PREFIX}")
MESSAGE(STATUS "Scribus ${VERSION} will be built and installed into ${CMAKE_INSTALL_PREFIX}")
 
#Set the permissions to be used when installing plugins
SET(PLUGIN_PERMISSIONS WORLD_EXECUTE GROUP_EXECUTE OWNER_EXECUTE WORLD_READ GROUP_READ OWNER_READ OWNER_WRITE)
71,6 → 72,8
OUTPUT_VARIABLE MACHINE
OUTPUT_STRIP_TRAILING_WHITESPACE
)
 
## Find out what machine/cpu we are running on
MESSAGE(STATUS "Machine: ${MACHINE}, void pointer size: ${CMAKE_SIZEOF_VOID_P}")
STRING(REGEX MATCH "(i[0-9]86-*)|(athlon-*)|(pentium-*)" _machine_x86 "${MACHINE}")
IF (_machine_x86)
84,37 → 87,6
SET(ARCH_X86_64 1)
ENDIF (_machine_x86_64)
 
IF (APPLE AND CMAKE_SIZEOF_VOID_P EQUAL 8 AND (ARCH_X86 EQUAL 1 OR ARCH_X86_64 EQUAL 1))
STRING(REGEX REPLACE ".*-darwin([0-9]+).*" "\\1" _apple_ver "${MACHINE}")
IF (_apple_ver EQUAL "14")
MESSAGE(STATUS "Found OSX Yosemite Target: Apple, 64 bit, X86")
SET(APPLE_10_10_X 1 CACHE TYPE BOOL)
ENDIF (_apple_ver EQUAL "14")
IF (_apple_ver EQUAL "13")
MESSAGE(STATUS "Found OSX Mavericks Target: Apple, 64 bit, X86")
SET(APPLE_10_9_X 1 CACHE TYPE BOOL)
ENDIF (_apple_ver EQUAL "13")
IF (_apple_ver EQUAL "12")
MESSAGE(STATUS "Found OSX Mountain Lion Target: Apple, 64 bit, X86")
SET(APPLE_10_8_X 1 CACHE TYPE BOOL)
ENDIF (_apple_ver EQUAL "12")
IF (_apple_ver EQUAL "11")
MESSAGE(STATUS "Found OSX Lion Target: Apple, 64 bit, X86")
SET(APPLE_10_7_X 1 CACHE TYPE BOOL)
ENDIF (_apple_ver EQUAL "11")
IF (_apple_ver EQUAL "10")
MESSAGE(STATUS "Found OSX Snow Leopard Target: Apple, 64 bit, X86")
SET(APPLE_10_6_X 1 CACHE TYPE BOOL)
ENDIF (_apple_ver EQUAL "10")
IF (_apple_ver EQUAL "9")
MESSAGE(STATUS "Found OSX Leopard Target: Apple, 32 bit, X86")
SET(APPLE_10_5_X 1 CACHE TYPE BOOL)
ENDIF (_apple_ver EQUAL "9")
UNSET(ARCH_X86)
ENDIF (APPLE AND CMAKE_SIZEOF_VOID_P EQUAL 8 AND (ARCH_X86 EQUAL 1 OR ARCH_X86_64 EQUAL 1))
 
 
 
STRING(REGEX MATCH "(sparc64-*)|(SPARC64-*)" _machine_sparc_64 "${MACHINE}")
IF (_machine_sparc_64)
MESSAGE(STATUS "Found target SPARC 64")
158,6 → 130,37
SET(ARCH64BIT 1)
ENDIF (_machine_sparc64)
 
## Do our Apple OSX version setup
IF (APPLE AND CMAKE_SIZEOF_VOID_P EQUAL 8 AND (ARCH_X86 EQUAL 1 OR ARCH_X86_64 EQUAL 1))
STRING(REGEX REPLACE ".*-darwin([0-9]+).*" "\\1" _apple_ver "${MACHINE}")
IF (_apple_ver EQUAL "14")
MESSAGE(STATUS "Found OSX Yosemite Target: Apple, 64 bit, X86")
SET(APPLE_10_10_X 1 CACHE TYPE BOOL)
ENDIF (_apple_ver EQUAL "14")
IF (_apple_ver EQUAL "13")
MESSAGE(STATUS "Found OSX Mavericks Target: Apple, 64 bit, X86")
SET(APPLE_10_9_X 1 CACHE TYPE BOOL)
ENDIF (_apple_ver EQUAL "13")
IF (_apple_ver EQUAL "12")
MESSAGE(STATUS "Found OSX Mountain Lion Target: Apple, 64 bit, X86")
SET(APPLE_10_8_X 1 CACHE TYPE BOOL)
ENDIF (_apple_ver EQUAL "12")
IF (_apple_ver EQUAL "11")
MESSAGE(STATUS "Found OSX Lion Target: Apple, 64 bit, X86")
SET(APPLE_10_7_X 1 CACHE TYPE BOOL)
ENDIF (_apple_ver EQUAL "11")
IF (_apple_ver EQUAL "10")
MESSAGE(STATUS "Found OSX Snow Leopard Target: Apple, 64 bit, X86")
SET(APPLE_10_6_X 1 CACHE TYPE BOOL)
ENDIF (_apple_ver EQUAL "10")
IF (_apple_ver EQUAL "9")
MESSAGE(STATUS "Found OSX Leopard Target: Apple, 32 bit, X86")
SET(APPLE_10_5_X 1 CACHE TYPE BOOL)
ENDIF (_apple_ver EQUAL "9")
UNSET(ARCH_X86)
ENDIF (APPLE AND CMAKE_SIZEOF_VOID_P EQUAL 8 AND (ARCH_X86 EQUAL 1 OR ARCH_X86_64 EQUAL 1))
 
 
#convert any 64 bit build into generic 64 tag for below
IF (ARCH_X86_64 OR ARCH_SPARC_64 OR ARCH_MIPS_64 OR ARCH_PPC_64)
SET(ARCH64BIT 1)
196,7 → 199,7
ENDIF (WANT_VERSIONING OR CACHED_VERSIONING)
ENDIF (APPLEBUNDLE OR WIN32)
 
#Store our version string if require
#Store our version string if required
IF (WANT_VERSIONING AND NOT CACHED_VERSIONING)
IF (NOT CUSTOM_VERSIONTAG)
SET(TAG_VERSION "-${VERSION}" CACHE TYPE STRING)
221,7 → 224,6
SET(CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}/Scribus${VERSION}.app/Contents")
ENDIF ("${CMAKE_INSTALL_PREFIX}" MATCHES "[.]app/?$")
ENDIF ("${CMAKE_INSTALL_PREFIX}" MATCHES "[.]app/Contents/?$")
 
MESSAGE(STATUS "APPLEBUNDLE install prefix: ${APPLE_APP_DIR}")
ENDIF (APPLEBUNDLE)
 
884,7 → 886,8
)
 
ADD_CUSTOM_TARGET(uninstall
"${CMAKE_COMMAND}" -P "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake")
"${CMAKE_COMMAND}" -P "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake"
)
 
 
##############################################################################################################
996,3 → 999,4
INCLUDE(CPack)
ENDIF(EXISTS "${CMAKE_ROOT}/Modules/CPack.cmake")
 
#include (cmakeconfigreport optional)
/trunk/Scribus/cmake/modules/cmakeconfigreport.cmake
0,0 → 1,134
##############################################################################################################
########## Report on installed dependencies and offered features ##########
 
MESSAGE("")
MESSAGE("--------------------------------------------------")
MESSAGE("-- Configuration Summary")
MESSAGE("--------------------------------------------------")
 
if (HAVE_LIBZ)
MESSAGE(STATUS "libz found: Compression support enabled")
else (HAVE_LIBZ)
MESSAGE(STATUS "libz not found: Compression support disabled")
endif (HAVE_LIBZ)
 
if (HAVE_XML)
MESSAGE(STATUS "libxml2 found: XML support enabled")
else (HAVE_XML)
MESSAGE(STATUS "libxml2 not found: XML support disabled")
endif (HAVE_XML)
 
if (HAVE_PYTHON)
MESSAGE(STATUS "Python found: Scripting support enabled")
else (HAVE_PYTHON)
MESSAGE(STATUS "Python not found: Scripting support disabled")
endif (HAVE_PYTHON)
 
if (CAIRO_FOUND)
MESSAGE(STATUS "cairo found ok")
else (CAIRO_FOUND)
MESSAGE(STATUS "cairo not found")
endif (CAIRO_FOUND)
 
if (HAVE_CUPS)
MESSAGE(STATUS "cups found: Printing support enabled")
else (HAVE_CUPS)
MESSAGE(STATUS "cups not found: Print support disabled")
endif (HAVE_CUPS)
 
if (HAVE_LCMS2)
MESSAGE(STATUS "littleCMS2 found: Color management support enabled")
else (HAVE_LCMS2)
MESSAGE(STATUS "littleCMS2 not found: Color management support disabled")
endif (HAVE_LCMS2)
 
if (HAVE_HUNSPELL)
MESSAGE(STATUS "Hunspell found: Spell correction support enabled")
else (HAVE_HUNSPELL)
MESSAGE(STATUS "Hunspell not found: Spell correction support disabled")
endif (HAVE_HUNSPELL)
 
if (HAVE_PODOFO)
MESSAGE(STATUS "podofo found: PDF import support enabled")
else (HAVE_PODOFO)
MESSAGE(STATUS "podofo not found: PDF import support disabled")
endif (HAVE_PODOFO)
 
if (HAVE_POPPLER)
MESSAGE(STATUS "poppler found: PDF import support enabled")
else (HAVE_POPPLER)
MESSAGE(STATUS "poppler not found: PDF import support disabled")
endif (HAVE_POPPLER)
 
if (HAVE_BOOST)
MESSAGE(STATUS "boost found: Extra geometric tools support enabled")
else (HAVE_BOOST)
MESSAGE(STATUS "boost not found: Extra geometric tools support disabled")
endif (HAVE_BOOST)
 
MESSAGE("--")
MESSAGE("-- Image formats:")
 
if (JPEG_FOUND)
MESSAGE(STATUS "libjpeg found: JPEG support enabled")
else (JPEG_FOUND)
MESSAGE(STATUS "libjpeg not found: JPEG support disabled")
endif (JPEG_FOUND)
 
if (HAVE_TIFF)
MESSAGE(STATUS "libtiff found: TIFF support enabled")
else (HAVE_TIFF)
MESSAGE(STATUS "libtiff not found: TIFF support disabled")
endif (HAVE_TIFF)
 
if (HAVE_OSG)
MESSAGE(STATUS "osg found: Support for for OSG 3D Extension be supported")
else (HAVE_OSG)
MESSAGE(STATUS "osg not found: Support for OSG 3D Extension not be supported")
endif (HAVE_OSG)
 
if (HAVE_REVENGE)
MESSAGE(STATUS "librevenge found: Support for proprietary file import will be supported")
else (HAVE_REVENGE)
MESSAGE(STATUS "librevenge not found: Support for proprietary file import will not be supported")
endif (HAVE_REVENGE)
 
if (HAVE_LIBVISIO)
MESSAGE(STATUS "libvisio found: Support for Microsoft Visio files will be supported")
else (HAVE_LIBVISIO)
MESSAGE(STATUS "libvisio not found: Support for Microsoft Visio files will not be supported")
endif (HAVE_LIBVISIO)
 
if (LIBCDR_FOUND)
MESSAGE(STATUS "libcdr found: Support for CorelDraw files will be supported")
else (LIBCDR_FOUND)
MESSAGE(STATUS "libcdr not found: Support for CorelDraw files will not be supported")
endif (LIBCDR_FOUND)
 
if (LIBVISIO_FOUND)
MESSAGE(STATUS "libvisio found: Support for Microsoft Visio files will be supported")
else (LIBVISIO_FOUND)
MESSAGE(STATUS "libvisio not found: Support for Microsoft Visio files will not be supported")
endif (LIBVISIO_FOUND)
 
if (LIBMSPUB_FOUND)
MESSAGE(STATUS "libmspub found: Support for Microsoft Publisher files will be supported")
else (LIBMSPUB_FOUND)
MESSAGE(STATUS "libmspub not found: Support for Microsoft Publisher files will not be supported")
endif (LIBMSPUB_FOUND)
 
if (LIBPAGEMAKER_FOUND)
MESSAGE(STATUS "libpagemaker found: Support for PageMaker files will be supported")
else (LIBPAGEMAKER_FOUND)
MESSAGE(STATUS "libpagemaker not found: Support for PageMaker files will not be supported")
endif (LIBPAGEMAKER_FOUND)
 
if (GMAGICK_FOUND)
MESSAGE(STATUS "graphicsmagick found: Support for extra graphics formats will be supported")
else (GMAGICK_FOUND)
MESSAGE(STATUS "graphicsmagick not found: Support for extra graphics formats files will not be supported")
endif (GMAGICK_FOUND)
 
MESSAGE("--------------------------------------------------")
MESSAGE("")