aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason W. Bacon <jwb@FreeBSD.org>2023-01-23 00:45:35 +0000
committerJason W. Bacon <jwb@FreeBSD.org>2023-01-23 00:45:35 +0000
commit8aa2ac6602a97060841784147a4a906ea8c0bf11 (patch)
tree6e979f0c51d36ef9c2c74d71cbee5a75e69d43c4
parent19cb6aef3495a7441530606f846d1af00a5469d4 (diff)
downloadports-8aa2ac6602a97060841784147a4a906ea8c0bf11.tar.gz
ports-8aa2ac6602a97060841784147a4a906ea8c0bf11.zip
x11/lumina-core: Disable CPU-saturating "Warp" screensaver
Lumina currently has no configuration interface for the screensaver, so users cannot prevent Warp from starting and using all available CPU time. This is a temporary hack to make Lumina more CPU-friendly until the screensaver options are configurable.
-rw-r--r--x11/lumina-core/Makefile9
-rw-r--r--x11/lumina-core/pkg-plist2
2 files changed, 7 insertions, 4 deletions
diff --git a/x11/lumina-core/Makefile b/x11/lumina-core/Makefile
index d16977c5828d..3a292f70ca8c 100644
--- a/x11/lumina-core/Makefile
+++ b/x11/lumina-core/Makefile
@@ -1,7 +1,7 @@
PORTNAME= lumina-core
DISTVERSIONPREFIX= v
DISTVERSION= 1.6.2
-PORTREVISION= 4
+PORTREVISION= 5
CATEGORIES= x11
MAINTAINER= ports@FreeBSD.org
@@ -24,7 +24,7 @@ LIB_DEPENDS+= libxcb-ewmh.so:x11/xcb-util-wm \
libxcb-util.so:x11/xcb-util \
libXcursor.so:x11/libXcursor
-USES= compiler:c++11-lang gl qmake qt:5 xorg
+USES= compiler:c++11-lang desktop-file-utils gl qmake qt:5 xorg
USE_GL= gl
USE_XORG= x11 xdamage xcb
USE_LDCONFIG= yes
@@ -55,6 +55,11 @@ CONFIGURE_ENV+= DESTDIR=${STAGEDIR}
CONFLICTS_INSTALL= lumina-1.2.*
+post-extract:
+ @${RM} ${WRKSRC}/lumina-desktop*/extrafiles/screensavers/Warp*
+ @${RM} ${WRKSRC}/lumina-desktop*/extrafiles/screensavers/*/Warp*
+
post-install:
${FIND} ${STAGEDIR}${PREFIX}/share -name "ecp.*" -delete
+
.include <bsd.port.mk>
diff --git a/x11/lumina-core/pkg-plist b/x11/lumina-core/pkg-plist
index 3f84230df157..ad643feaaf66 100644
--- a/x11/lumina-core/pkg-plist
+++ b/x11/lumina-core/pkg-plist
@@ -1928,13 +1928,11 @@ share/lumina-desktop/screensavers/Grav.json
share/lumina-desktop/screensavers/Matrix.json
share/lumina-desktop/screensavers/README.md
share/lumina-desktop/screensavers/Video.json
-share/lumina-desktop/screensavers/Warp.json
%%NLS%%share/lumina-desktop/screensavers/qml_scripts/Fireflies.qml
%%NLS%%share/lumina-desktop/screensavers/qml_scripts/Firefly.qml
%%NLS%%share/lumina-desktop/screensavers/qml_scripts/Grav.qml
%%NLS%%share/lumina-desktop/screensavers/qml_scripts/Matrix.qml
%%NLS%%share/lumina-desktop/screensavers/qml_scripts/Video.qml
-%%NLS%%share/lumina-desktop/screensavers/qml_scripts/Warp.qml
share/lumina-desktop/theme.cfg
share/lumina-desktop/themes/DarkGlass.qss.template
share/lumina-desktop/themes/Glass.qss.template