diff options
Diffstat (limited to 'ports/qt5-imageformats')
| -rw-r--r-- | ports/qt5-imageformats/CONTROL | 2 | ||||
| -rw-r--r-- | ports/qt5-imageformats/fix-include-math.patch | 12 | ||||
| -rw-r--r-- | ports/qt5-imageformats/portfile.cmake | 2 |
3 files changed, 14 insertions, 2 deletions
diff --git a/ports/qt5-imageformats/CONTROL b/ports/qt5-imageformats/CONTROL index 6cc1b86ea..8f247686c 100644 --- a/ports/qt5-imageformats/CONTROL +++ b/ports/qt5-imageformats/CONTROL @@ -1,5 +1,5 @@ Source: qt5-imageformats
Version: 5.15.0
-Port-Version: 1
+Port-Version: 2
Description: Qt5 Image Formats Module - Plugins for additional image formats: TIFF, MNG, TGA, WBMP
Build-Depends: qt5-base[core], tiff, libwebp, jasper
diff --git a/ports/qt5-imageformats/fix-include-math.patch b/ports/qt5-imageformats/fix-include-math.patch new file mode 100644 index 000000000..94ec86e4e --- /dev/null +++ b/ports/qt5-imageformats/fix-include-math.patch @@ -0,0 +1,12 @@ +diff --git a/src/plugins/imageformats/jp2/qjp2handler.cpp b/src/plugins/imageformats/jp2/qjp2handler.cpp +index e9a470c..556fd2c 100644 +--- a/src/plugins/imageformats/jp2/qjp2handler.cpp ++++ b/src/plugins/imageformats/jp2/qjp2handler.cpp +@@ -45,6 +45,7 @@ + #include "qcolor.h" + + #include <jasper/jasper.h> ++#include <math.h> + + QT_BEGIN_NAMESPACE + diff --git a/ports/qt5-imageformats/portfile.cmake b/ports/qt5-imageformats/portfile.cmake index abd88a60c..b7ef46903 100644 --- a/ports/qt5-imageformats/portfile.cmake +++ b/ports/qt5-imageformats/portfile.cmake @@ -51,4 +51,4 @@ set(OPT_DBG "TIFF_LIBS=${TIFF_DEBUG} ${LZMA_DEBUG} ${JPEG_DEBUG} ${ZLIB_DEBUG}" "JASPER_LIBS=${JASPER_DEBUG} ${FREEGLUT_DEBUG} ${JPEG_DEBUG} ${ZLIB_DEBUG}") list(APPEND CORE_OPTIONS "WEBP_INCDIR=${CURRENT_INSTALLED_DIR}/include") # Requires libwebp[all] -qt_submodule_installation(BUILD_OPTIONS ${CORE_OPTIONS} BUILD_OPTIONS_RELEASE ${OPT_REL} BUILD_OPTIONS_DEBUG ${OPT_DBG})
\ No newline at end of file +qt_submodule_installation(PATCHES fix-include-math.patch BUILD_OPTIONS ${CORE_OPTIONS} BUILD_OPTIONS_RELEASE ${OPT_REL} BUILD_OPTIONS_DEBUG ${OPT_DBG})
\ No newline at end of file |
