pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/x11/xlockmore



Module Name:    pkgsrc
Committed By:   wiz
Date:           Thu Jan 30 07:45:09 UTC 2025

Modified Files:
        pkgsrc/x11/xlockmore: Makefile.common

Log Message:
xlockmore: wrap SUBST* statement so it only takes effect when useful

Addresses PR 59039 by Stefan Schaeckeler.


To generate a diff of this commit:
cvs rdiff -u -r1.92 -r1.93 pkgsrc/x11/xlockmore/Makefile.common

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/x11/xlockmore/Makefile.common
diff -u pkgsrc/x11/xlockmore/Makefile.common:1.92 pkgsrc/x11/xlockmore/Makefile.common:1.93
--- pkgsrc/x11/xlockmore/Makefile.common:1.92   Wed Oct  9 16:22:31 2024
+++ pkgsrc/x11/xlockmore/Makefile.common        Thu Jan 30 07:45:09 2025
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.92 2024/10/09 16:22:31 micha Exp $
+# $NetBSD: Makefile.common,v 1.93 2025/01/30 07:45:09 wiz Exp $
 #
 # used by x11/xlockmore/Makefile
 # used by x11/xlockmore-lite/Makefile
@@ -129,6 +129,7 @@ SUBST_FILES.adef=   xlock/XLock.ad
 SUBST_SED.adef=                -e 's|/usr/lib/|${PREFIX}/lib/|g'
 SUBST_SED.adef+=       -e 's|/usr/local/share/|${PREFIX}/share/|g'
 
+.if defined(XLOCK_DEFAULT_MODE) && !empty(XLOCK_DEFAULT_MODE) && ${XLOCK_DEFAULT_MODE} != "random"
 # Set the default xlock mode/screensaver.
 # XLOCK_DEFAULT_MODE can be defined by the user in mk.conf
 SUBST_CLASSES+=                mode
@@ -136,6 +137,7 @@ SUBST_STAGE.mode=   pre-configure
 SUBST_MESSAGE.mode=    Preparing default mode in xlock/XLock.ad file ...
 SUBST_FILES.mode=      xlock/XLock.ad
 SUBST_SED.mode=                -e 's|^\(XLock.mode:[   ]*\).*|\1${XLOCK_DEFAULT_MODE}|'
+.endif
 
 # Configure INSTALL.pkgsrc (formerly displayed as MESSAGE)
 SUBST_CLASSES+=                install



Home | Main Index | Thread Index | Old Index