diff options
| author | Jason E. Hale <jhale@FreeBSD.org> | 2024-11-16 05:45:06 +0000 |
|---|---|---|
| committer | Jason E. Hale <jhale@FreeBSD.org> | 2024-11-16 08:40:31 +0000 |
| commit | 2f80f3ff040338b9ff8339eacd037ee7af9d04a9 (patch) | |
| tree | 9927676d5e9d29833f11d6fbf4e3fde25634b2ff | |
| parent | f551531a5740944419ac3668a3675003ee2bdc21 (diff) | |
graphics/kphotoalbum: Remove WEBENGINE option
With the addition of the MARBLE option in 687ac26b32a7, we can be a bit
more clever. Various Qt components are only linked to if the MARBLE
option is enabled and the WEBENGINE option in astro/marble is enabled.
This avoids potentially conflicting settings of the WEBENGINE option in
astro/marble and the former WEBENGINE option in this port.
Disable Marble detection the cannonical way to avoid CMake warnings.
| -rw-r--r-- | graphics/kphotoalbum/Makefile | 30 |
1 files changed, 17 insertions, 13 deletions
diff --git a/graphics/kphotoalbum/Makefile b/graphics/kphotoalbum/Makefile index 485029ebbe6c..b81cbe972629 100644 --- a/graphics/kphotoalbum/Makefile +++ b/graphics/kphotoalbum/Makefile @@ -1,6 +1,6 @@ PORTNAME= kphotoalbum DISTVERSION= 5.12.0 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= graphics kde MASTER_SITES= KDE/stable/${PORTNAME}/${PORTVERSION}/ DIST_SUBDIR= KDE @@ -20,22 +20,26 @@ USE_KDE= archive auth codecs completion config configwidgets coreaddons \ i18n iconthemes jobwidgets kio libkdcraw phonon purpose service solid \ sonnet textwidgets widgetsaddons windowsystem xmlgui \ ecm:build -USE_QT= concurrent core dbus declarative gui location network \ - printsupport sql webchannel widgets xml \ +USE_QT= concurrent core dbus gui network sql widgets xml \ buildtools:build qmake:build USE_XORG= x11 -SHEBANG_FILES= scripts/open-raw.pl scripts/kpa-backup.sh -OPTIONS_DEFINE= MARBLE WEBENGINE -OPTIONS_DEFAULT=MARBLE -OPTIONS_DEFAULT_amd64= WEBENGINE -OPTIONS_DEFAULT_i386= WEBENGINE +SHEBANG_FILES= scripts/kpa-backup.sh \ + scripts/open-raw.pl -MARBLE_DESC= Virtual globe and world atlas -MARBLE_USE= kde=marble -MARBLE_CMAKE_OFF= -DMarble_FOUND:BOOL=OFF +OPTIONS_DEFINE= MARBLE +OPTIONS_DEFAULT= MARBLE -WEBENGINE_DESC= Add dependency on qt5-webengine -WEBENGINE_USE= QT=webengine +MARBLE_DESC= Virtual globe and world atlas +MARBLE_USE= KDE=marble +MARBLE_CMAKE_BOOL_OFF= CMAKE_DISABLE_FIND_PACKAGE_Marble + +.include <bsd.port.options.mk> + +# These dependencies are only needed if the WEBENGINE option is enabled +# in astro/marble. +.if ${PORT_OPTIONS:MMARBLE} && exists(${LOCALBASE}/lib/marble/plugins/Photo.so) +USE_QT+= declarative location printsupport webchannel webengine +.endif .include <bsd.port.mk> |
