Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Factory:Rebuild
pdfmixtool
fix-missing-definitions.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File fix-missing-definitions.patch of Package pdfmixtool
--- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -57,6 +57,24 @@ foreach(QM_FILE ${QM_FILES}) endforeach() file(APPEND ${TRANSLATIONS_QRC} "</qresource></RCC>") + +exec_program (Magick++-config ARGS --cxxflags OUTPUT_VARIABLE magick_config) +string (REGEX MATCH "-DMAGICKCORE_HDRI_ENABLE=." magick_config_hdri ${magick_config}) +string (REGEX MATCH "-DMAGICKCORE_QUANTUM_DEPTH=[0-9]+" magick_config_quantum ${magick_config}) +if (magick_config_hdri STREQUAL "") + set (magick_config_hdri "-DMAGICKCORE_HDRI_ENABLE=0") +endif (magick_config_hdri STREQUAL "") +if (magick_config_quantum STREQUAL "") + set (magick_config_quantum "-DMAGICKCORE_QUANTUM_DEPTH=16") +endif (magick_config_quantum STREQUAL "") +message (STATUS "Set magic_config_quantum: " ${magick_config_quantum}) +message (STATUS "Set magic_config_hdri: " ${magick_config_hdri}) +add_definitions( + ${magick_config_hdri} + ${magick_config_quantum} +) + + configure_file(src/libraries.h.in libraries.h @ONLY) set (
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor