diff --git a/graphics/luminance-qt5/Makefile b/graphics/luminance-qt5/Makefile index b5071aa27eff..b7b6dcdcafa7 100644 --- a/graphics/luminance-qt5/Makefile +++ b/graphics/luminance-qt5/Makefile @@ -1,53 +1,65 @@ # Created by: Yinghong Liu PORTNAME= luminance-hdr -DISTVERSION= 2.5.1 -PORTREVISION= 16 +DISTVERSION= 2.6.1.1 CATEGORIES= graphics MASTER_SITES= SF/qtpfsgui/luminance/${DISTVERSION} -PKGNAMESUFFIX= -qt5 MAINTAINER= h2+fbsdports@fsfe.org COMMENT= Complete open source solution for HDR photography LICENSE= GPLv2 -DEPRECATED= Uses EOL Python 2.7 via www/qt5-webengine -EXPIRATION_DATE=2021-06-23 - -BUILD_DEPENDS= ${LOCALBASE}/include/fftw3.h:math/fftw3 -LIB_DEPENDS= libcfitsio.so:astro/cfitsio \ - libImath.so:math/Imath \ +BUILD_DEPENDS= ${LOCALBASE}/include/fftw3.h:math/fftw3 \ + ${LOCALBASE}/include/eigen3/Eigen/Sparse:math/eigen3 +LIB_DEPENDS= libImath.so:math/Imath \ libtiff.so:graphics/tiff \ libraw_r.so:graphics/libraw \ libfftw3f.so:math/fftw3-float \ libgsl.so:math/gsl \ libexiv2.so:graphics/exiv2 \ liblcms2.so:graphics/lcms2 \ libpng.so:graphics/png \ libOpenEXR.so:graphics/openexr \ libboost_date_time.so:devel/boost-libs CFLAGS+= -I${LOCALBASE}/include/Imath USES= cmake desktop-file-utils jpeg pkgconfig qt:5 tar:bzip2 -USE_QT= concurrent core declarative gui location network printsupport \ - sql svg webchannel webengine widgets xml \ +USE_QT= concurrent core declarative gui location network \ + printsupport sql svg widgets xml \ buildtools_build linguisttools_build qmake_build -CONFLICTS_INSTALL= luminance-hdr-[0-9]* +OPTIONS_DEFINE= CFITSIO DOCS HELPBROWSER +OPTIONS_DEFAULT= CFITSIO HELPBROWSER + +CFITSIO_LIB_DEPENDS= libcfitsio.so:astro/cfitsio + +HELPBROWSER_DESC= Build help browser (requires QtWebEngine) +HELPBROWSER_USE= QT=webchannel,webengine +HELPBROWSER_CMAKE_ON= -DWITH_HELPBROWSER:BOOL=ON -OPTIONS_DEFINE= DOCS +.include + +.if ${PORT_OPTIONS:MHELPBROWSER} +DEPRECATED= Uses EoL Python 2.7 via www/qt5-webengine +EXPIRATION_DATE= 2021-06-23 +.endif post-patch: # Do not install yet another copy of GPL (we use license framework instead) # and fix installation path for docs (but not for internal help files) @${REINPLACE_CMD} -e '/LICENSE/d ; \ - /#info files/s,share/luminance-hdr,${DOCSDIR_REL},' \ + /#info files/s,share/luminance-hdr/doc,${DOCSDIR_REL},' \ ${WRKSRC}/CMakeLists.txt # Point to the right location for program where to look for GPL text @${REINPLACE_CMD} -e 's,LICENSE,${LICENSE}, ; \ - s,share/doc/luminance-hdr,share/licenses/${PKGNAME},' \ + s,share/luminance-hdr/doc,share/licenses/${PKGNAME},' \ ${WRKSRC}/src/UI/UMessageBox.cpp +post-patch-HELPBROWSER-off: + @${REINPLACE_CMD} -e 's,name="documentationAction">,& \ + false,' \ + ${WRKSRC}/src/MainWindow/MainWindow.ui + .include diff --git a/graphics/luminance-qt5/distinfo b/graphics/luminance-qt5/distinfo index ffdaa156c05e..056110dd9b4e 100644 --- a/graphics/luminance-qt5/distinfo +++ b/graphics/luminance-qt5/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1553968553 -SHA256 (luminance-hdr-2.5.1.tar.bz2) = a8986e0afba434a2e9da7e8aed19cdb763fedc8de2655bdb496c4ee9d3f41696 -SIZE (luminance-hdr-2.5.1.tar.bz2) = 10238826 +TIMESTAMP = 1610361253 +SHA256 (luminance-hdr-2.6.1.1.tar.bz2) = 0c8b6bc162eeb2f88555880d128c2e37504362c48c4f3337f5fca7dbde5330a2 +SIZE (luminance-hdr-2.6.1.1.tar.bz2) = 11569153 diff --git a/graphics/luminance-qt5/files/patch-CMakeLists.txt b/graphics/luminance-qt5/files/patch-CMakeLists.txt new file mode 100644 index 000000000000..a9fa150e07f3 --- /dev/null +++ b/graphics/luminance-qt5/files/patch-CMakeLists.txt @@ -0,0 +1,19 @@ +--- CMakeLists.txt.orig 2021-01-11 09:41:28 UTC ++++ CMakeLists.txt +@@ -64,6 +64,7 @@ find_package(Qt5Core REQUIRED) + find_package(Qt5Concurrent REQUIRED) + find_package(Qt5Widgets REQUIRED) + find_package(Qt5Gui REQUIRED) ++if (WITH_HELPBROWSER) + # QtWebEngine is preferred web engine because QtWebKit is deprecated since Qt 5.5: + # https://wiki.qt.io/New-Features-in-Qt-5.5#Deprecated_Functionality. Unfortunately, + # some Qt distributions still provide QtWebKit instead of QtWebEngine. So first we +@@ -75,6 +76,8 @@ else() + find_package(Qt5WebKit REQUIRED) + find_package(Qt5WebKitWidgets REQUIRED) + add_definitions(-DUSE_DEPRECATED_QTWEBKIT) ++endif() ++ add_definitions(-DWITH_HELPBROWSER) + endif() + find_package(Qt5Xml REQUIRED) + find_package(Qt5Sql REQUIRED) diff --git a/graphics/luminance-qt5/files/patch-gentoo_7b52c8 b/graphics/luminance-qt5/files/patch-gentoo_7b52c8 deleted file mode 100644 index c9b583d58f7a..000000000000 --- a/graphics/luminance-qt5/files/patch-gentoo_7b52c8 +++ /dev/null @@ -1,26 +0,0 @@ -From e733c24baf0c87e0b3c45351ff916c5f3a652826 Mon Sep 17 00:00:00 2001 -From: Benitoite -Date: Sun, 16 Dec 2018 22:18:37 -0800 -Subject: [PATCH] Define EXIV2_TEST_VERSION by including exiv2.hpp - -AppleClang 10 did not allow compilation without exiv2/exiv2.hpp or exiv2/version.hpp -Also, version.hpp says use exiv2.hpp - -* 2018-12-29 asturm@gentoo.org: Backported to 2.5.1 ---- - src/TransplantExif/TransplantExifDialog.cpp | 1 + - 1 file changed, 1 insertion(+) - -diff --git src/TransplantExif/TransplantExifDialog.cpp src/TransplantExif/TransplantExifDialog.cpp -index c38a51e4..1fac2e0f 100644 ---- src/TransplantExif/TransplantExifDialog.cpp -+++ src/TransplantExif/TransplantExifDialog.cpp -@@ -26,6 +26,7 @@ - #include - #include - #include -+#include - - #include "Common/global.h" - #include "Common/config.h" - diff --git a/graphics/luminance-qt5/files/patch-src_CMakeLists.txt b/graphics/luminance-qt5/files/patch-src_CMakeLists.txt new file mode 100644 index 000000000000..3ffaa008e31f --- /dev/null +++ b/graphics/luminance-qt5/files/patch-src_CMakeLists.txt @@ -0,0 +1,12 @@ +--- src/CMakeLists.txt.orig 2021-01-11 09:41:28 UTC ++++ src/CMakeLists.txt +@@ -22,7 +22,9 @@ ADD_SUBDIRECTORY(Exif) + ADD_SUBDIRECTORY(Fileformat) + ADD_SUBDIRECTORY(Alignment) + ADD_SUBDIRECTORY(HdrWizard) ++IF(WITH_HELPBROWSER) + ADD_SUBDIRECTORY(HelpBrowser) ++ENDIF() + ADD_SUBDIRECTORY(Preferences) + ADD_SUBDIRECTORY(Projection) + ADD_SUBDIRECTORY(Resize) diff --git a/graphics/luminance-qt5/files/patch-src_Exif_ExifOperations.cpp b/graphics/luminance-qt5/files/patch-src_Exif_ExifOperations.cpp deleted file mode 100644 index 77d199a6259d..000000000000 --- a/graphics/luminance-qt5/files/patch-src_Exif_ExifOperations.cpp +++ /dev/null @@ -1,11 +0,0 @@ ---- src/Exif/ExifOperations.cpp.orig 2019-07-07 08:28:28 UTC -+++ src/Exif/ExifOperations.cpp -@@ -34,7 +34,7 @@ - - #include - --#include -+#include - #include - - #include "ExifOperations.h" diff --git a/graphics/luminance-qt5/files/patch-src_MainWindow_MainWindow.cpp b/graphics/luminance-qt5/files/patch-src_MainWindow_MainWindow.cpp new file mode 100644 index 000000000000..bb8b6ccd2194 --- /dev/null +++ b/graphics/luminance-qt5/files/patch-src_MainWindow_MainWindow.cpp @@ -0,0 +1,50 @@ +--- src/MainWindow/MainWindow.cpp.orig 2021-01-11 09:41:28 UTC ++++ src/MainWindow/MainWindow.cpp +@@ -99,7 +99,9 @@ + #include + #include + #include ++#ifdef WITH_HELPBROWSER + #include ++#endif + #include + #include + #include +@@ -209,7 +211,9 @@ int MainWindow::sm_counter = 0; + QMap MainWindow::sm_mainWindowMap = + QMap(); + QScopedPointer MainWindow::sm_updateChecker; ++#ifdef WITH_HELPBROWSER + HelpBrowser *MainWindow::sm_helpBrowser = nullptr; ++#endif + + MainWindow::MainWindow(QWidget *parent) + : QMainWindow(parent), +@@ -1060,6 +1064,7 @@ void MainWindow::on_normalSizeAct_triggered() { + } + // Zoom = Viewers (END) + ++#ifdef WITH_HELPBROWSER + void MainWindow::on_documentationAction_triggered() { + if (sm_helpBrowser == nullptr) { + sm_helpBrowser = +@@ -1080,6 +1085,7 @@ void MainWindow::on_documentationAction_triggered() { + void MainWindow::helpBrowserClosed() { + sm_helpBrowser = nullptr; + } ++#endif + + void MainWindow::enterWhatsThis() { QWhatsThis::enterWhatsThisMode(); } + +@@ -1451,9 +1457,11 @@ void MainWindow::closeEvent(QCloseEvent *event) { + } + sm_NumMainWindows--; + if (sm_NumMainWindows == 0) { ++#ifdef WITH_HELPBROWSER + if (sm_helpBrowser) { + sm_helpBrowser->close(); + } ++#endif + } + + if (sm_NumMainWindows == 0) { diff --git a/graphics/luminance-qt5/files/patch-src_MainWindow_MainWindow.h b/graphics/luminance-qt5/files/patch-src_MainWindow_MainWindow.h new file mode 100644 index 000000000000..3628fb7d6b4d --- /dev/null +++ b/graphics/luminance-qt5/files/patch-src_MainWindow_MainWindow.h @@ -0,0 +1,22 @@ +--- src/MainWindow/MainWindow.h.orig 2021-01-11 09:41:28 UTC ++++ src/MainWindow/MainWindow.h +@@ -146,7 +146,9 @@ class MainWindow : public QMainWindow { + void on_normalSizeAct_triggered(); + void updateMagnificationButtons(GenericViewer *); + ++#ifdef WITH_HELPBROWSER + void on_documentationAction_triggered(); ++#endif + void enterWhatsThis(); + + void on_OptionsAction_triggered(); +@@ -180,7 +182,9 @@ class MainWindow : public QMainWindow { + void enableCrop(bool); + void disableCrop(); + ++#ifdef WITH_HELPBROWSER + void helpBrowserClosed(); ++#endif + void on_actionDonate_triggered(); + + void onUpdateAvailable(); diff --git a/graphics/luminance-qt5/files/patch-src_UI_CMakeLists.txt b/graphics/luminance-qt5/files/patch-src_UI_CMakeLists.txt new file mode 100644 index 000000000000..54e8a0bd29c1 --- /dev/null +++ b/graphics/luminance-qt5/files/patch-src_UI_CMakeLists.txt @@ -0,0 +1,19 @@ +--- src/UI/CMakeLists.txt.orig 2021-01-11 09:41:28 UTC ++++ src/UI/CMakeLists.txt +@@ -53,11 +53,14 @@ ADD_LIBRARY(ui STATIC ${FILES_H} ${FILES_CPP} ${FILES_ + IF(MINGW) + TARGET_LINK_LIBRARIES(ui Qt5::Core Qt5::Concurrent Qt5::Gui Qt5::Widgets Qt5::WebKitWidgets Qt5::Sql) + ELSE() ++ TARGET_LINK_LIBRARIES(ui Qt5::Core Qt5::Concurrent Qt5::Gui Qt5::Widgets Qt5::Sql) ++ IF(WITH_HELPBROWSER) + IF(Qt5WebEngineCore_FOUND) +- TARGET_LINK_LIBRARIES(ui Qt5::Core Qt5::Concurrent Qt5::Gui Qt5::Widgets Qt5::WebEngineWidgets Qt5::Sql) ++ TARGET_LINK_LIBRARIES(ui Qt5::WebEngineWidgets) + ELSE() +- TARGET_LINK_LIBRARIES(ui Qt5::Core Qt5::Concurrent Qt5::Gui Qt5::Widgets Qt5::WebKitWidgets Qt5::Sql) ++ TARGET_LINK_LIBRARIES(ui Qt5::WebKitWidgets) + ENDIF() ++ ENDIF() + ENDIF() + SET(FILES_TO_TRANSLATE ${FILES_TO_TRANSLATE} ${FILES_CPP} ${FILES_H} ${FILES_UI} PARENT_SCOPE) + SET(LUMINANCE_MODULES_GUI ${LUMINANCE_MODULES_GUI} ui PARENT_SCOPE) diff --git a/graphics/luminance-qt5/pkg-plist b/graphics/luminance-qt5/pkg-plist index 566fbb217a00..6af8c5902241 100644 --- a/graphics/luminance-qt5/pkg-plist +++ b/graphics/luminance-qt5/pkg-plist @@ -1,131 +1,131 @@ bin/luminance-hdr bin/luminance-hdr-cli -share/appdata/luminance-hdr.appdata.xml -share/applications/luminance-hdr.desktop +share/appdata/net.sourceforge.qtpfsgui.LuminanceHDR.appdata.xml +share/applications/net.sourceforge.qtpfsgui.LuminanceHDR.desktop %%PORTDOCS%%%%DOCSDIR%%/AUTHORS %%PORTDOCS%%%%DOCSDIR%%/Changelog %%PORTDOCS%%%%DOCSDIR%%/README.md share/icons/hicolor/48x48/apps/luminance-hdr.png %%DATADIR%%/hdrhtml/hdrhtml_c_b2.csv %%DATADIR%%/hdrhtml/hdrhtml_c_b3.csv %%DATADIR%%/hdrhtml/hdrhtml_c_b4.csv %%DATADIR%%/hdrhtml/hdrhtml_c_b5.csv %%DATADIR%%/hdrhtml/hdrhtml_default_templ/hdrhtml_image_templ.html %%DATADIR%%/hdrhtml/hdrhtml_default_templ/hdrhtml_page_templ.html %%DATADIR%%/hdrhtml/hdrhtml_hdrlabs_templ/hdrhtml_assets/hdr_viewer.css %%DATADIR%%/hdrhtml/hdrhtml_hdrlabs_templ/hdrhtml_assets/hdr_viewer.js %%DATADIR%%/hdrhtml/hdrhtml_hdrlabs_templ/hdrhtml_assets/information-red.png %%DATADIR%%/hdrhtml/hdrhtml_hdrlabs_templ/hdrhtml_assets/information.png %%DATADIR%%/hdrhtml/hdrhtml_hdrlabs_templ/hdrhtml_assets/loading-spinner.gif %%DATADIR%%/hdrhtml/hdrhtml_hdrlabs_templ/hdrhtml_assets/mootools-1.2.4.js %%DATADIR%%/hdrhtml/hdrhtml_hdrlabs_templ/hdrhtml_assets/mouse2touch.js %%DATADIR%%/hdrhtml/hdrhtml_hdrlabs_templ/hdrhtml_assets/slider-black.png %%DATADIR%%/hdrhtml/hdrhtml_hdrlabs_templ/hdrhtml_assets/slider-red.png %%DATADIR%%/hdrhtml/hdrhtml_hdrlabs_templ/hdrhtml_assets/slider-white.png %%DATADIR%%/hdrhtml/hdrhtml_hdrlabs_templ/hdrhtml_image_templ.html %%DATADIR%%/hdrhtml/hdrhtml_hdrlabs_templ/hdrhtml_image_templ_slider-above.html %%DATADIR%%/hdrhtml/hdrhtml_hdrlabs_templ/hdrhtml_page_templ.html %%DATADIR%%/hdrhtml/hdrhtml_hdrlabs_templ/hdrhtml_page_templ_short.html %%DATADIR%%/hdrhtml/hdrhtml_t_b2.csv %%DATADIR%%/hdrhtml/hdrhtml_t_b3.csv %%DATADIR%%/hdrhtml/hdrhtml_t_b4.csv %%DATADIR%%/hdrhtml/hdrhtml_t_b5.csv %%DATADIR%%/help/en/README %%DATADIR%%/help/en/additional.html %%DATADIR%%/help/en/basics.html %%DATADIR%%/help/en/color_management.html %%DATADIR%%/help/en/contributing.html %%DATADIR%%/help/en/contributing_donating.html %%DATADIR%%/help/en/contributing_programming.html %%DATADIR%%/help/en/contributing_testing.html %%DATADIR%%/help/en/contributing_translating.html %%DATADIR%%/help/en/copying_exif.html %%DATADIR%%/help/en/creating_hdr.html %%DATADIR%%/help/en/creating_hdr_batch.html %%DATADIR%%/help/en/creating_hdr_cli.html %%DATADIR%%/help/en/creating_hdr_interactive.html %%DATADIR%%/help/en/dcraw.html %%DATADIR%%/help/en/editing_hdr.html %%DATADIR%%/help/en/editing_tools.html %%DATADIR%%/help/en/external.png %%DATADIR%%/help/en/faq.html %%DATADIR%%/help/en/features.html %%DATADIR%%/help/en/hints.html %%DATADIR%%/help/en/images/batch-hdr.png %%DATADIR%%/help/en/images/batch-tmo.png %%DATADIR%%/help/en/images/color_management.png %%DATADIR%%/help/en/images/copy-exif.png %%DATADIR%%/help/en/images/cropping_frame.png %%DATADIR%%/help/en/images/edit_menu.png %%DATADIR%%/help/en/images/editingtools-1.png %%DATADIR%%/help/en/images/editingtools-2.png %%DATADIR%%/help/en/images/editingtools-3.png %%DATADIR%%/help/en/images/editingtools-4.png %%DATADIR%%/help/en/images/editingtools-5.png %%DATADIR%%/help/en/images/editingtools-6.png %%DATADIR%%/help/en/images/hdrwizard.png %%DATADIR%%/help/en/images/mainwin.png %%DATADIR%%/help/en/images/not-translated-menu-item.png %%DATADIR%%/help/en/images/preferences-menu.png %%DATADIR%%/help/en/images/preferences.png %%DATADIR%%/help/en/images/prefs-cms.png %%DATADIR%%/help/en/images/prefs-ext.png %%DATADIR%%/help/en/images/prefs-fast-export.png %%DATADIR%%/help/en/images/prefs-hdr.png %%DATADIR%%/help/en/images/prefs-raw-color.png %%DATADIR%%/help/en/images/prefs-raw-corrections.png %%DATADIR%%/help/en/images/prefs-raw-general.png %%DATADIR%%/help/en/images/prefs-raw.png %%DATADIR%%/help/en/images/prefs-tm.png %%DATADIR%%/help/en/images/prefs-ui.png %%DATADIR%%/help/en/images/projectiveTransformationDialog.png %%DATADIR%%/help/en/images/resize.png %%DATADIR%%/help/en/images/tonemappingpanel.png %%DATADIR%%/help/en/images/translated-menu-item.png %%DATADIR%%/help/en/index.html %%DATADIR%%/help/en/manual.html %%DATADIR%%/help/en/menu.xml %%DATADIR%%/help/en/news.html %%DATADIR%%/help/en/prefs.html %%DATADIR%%/help/en/prefs_cms.html %%DATADIR%%/help/en/prefs_fast_export.html %%DATADIR%%/help/en/prefs_hdr.html %%DATADIR%%/help/en/prefs_rawconversion.html %%DATADIR%%/help/en/prefs_tonemapping.html %%DATADIR%%/help/en/prefs_tools.html %%DATADIR%%/help/en/prefs_ui.html %%DATADIR%%/help/en/projective_transformation.html %%DATADIR%%/help/en/style.css %%DATADIR%%/help/en/tmap_ref.html %%DATADIR%%/help/en/tmap_ref_ashikhmin.html %%DATADIR%%/help/en/tmap_ref_drago.html %%DATADIR%%/help/en/tmap_ref_durand.html %%DATADIR%%/help/en/tmap_ref_fattal.html %%DATADIR%%/help/en/tmap_ref_ferradans.html %%DATADIR%%/help/en/tmap_ref_mai.html %%DATADIR%%/help/en/tmap_ref_mantiuk06.html %%DATADIR%%/help/en/tmap_ref_mantiuk08.html %%DATADIR%%/help/en/tmap_ref_pattanaik.html %%DATADIR%%/help/en/tmap_ref_reinhard02.html %%DATADIR%%/help/en/tmap_ref_reinhard05.html %%DATADIR%%/help/en/tonemapping.html %%DATADIR%%/help/en/tonemapping_batch.html %%DATADIR%%/help/en/tonemapping_cli.html %%DATADIR%%/help/en/tonemapping_interactive.html %%DATADIR%%/help/en/workflow.html %%DATADIR%%/i18n/lang_cs.qm %%DATADIR%%/i18n/lang_da.qm %%DATADIR%%/i18n/lang_de.qm %%DATADIR%%/i18n/lang_es.qm %%DATADIR%%/i18n/lang_fi.qm %%DATADIR%%/i18n/lang_fr.qm %%DATADIR%%/i18n/lang_hu.qm %%DATADIR%%/i18n/lang_id.qm %%DATADIR%%/i18n/lang_it.qm %%DATADIR%%/i18n/lang_nl.qm %%DATADIR%%/i18n/lang_pl.qm %%DATADIR%%/i18n/lang_pt_BR.qm %%DATADIR%%/i18n/lang_ro.qm %%DATADIR%%/i18n/lang_ru.qm %%DATADIR%%/i18n/lang_tr.qm %%DATADIR%%/i18n/lang_zh.qm