pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/audio/xwave audio/xwave: skip SUBST block if it would ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/04df501e4ea1
branches:  trunk
changeset: 428420:04df501e4ea1
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Mon Apr 27 18:12:43 2020 +0000

description:
audio/xwave: skip SUBST block if it would be a no-op

diffstat:

 audio/xwave/Makefile |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (24 lines):

diff -r 96903f8c1ca9 -r 04df501e4ea1 audio/xwave/Makefile
--- a/audio/xwave/Makefile      Mon Apr 27 18:06:05 2020 +0000
+++ b/audio/xwave/Makefile      Mon Apr 27 18:12:43 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.28 2016/04/20 12:10:35 nros Exp $
+# $NetBSD: Makefile,v 1.29 2020/04/27 18:12:43 rillig Exp $
 #
 
 DISTNAME=              xwave2
@@ -16,10 +16,14 @@
 
 MAKE_JOBS_SAFE=                no
 
+.include "../../mk/bsd.prefs.mk"
+
+.if ${DEVOSSAUDIO} != /dev/audio
 SUBST_CLASSES+=                devaudio
 SUBST_STAGE.devaudio=  pre-configure
 SUBST_FILES.devaudio=  src/XWave
 SUBST_SED.devaudio=    -e 's,/dev/audio,${DEVOSSAUDIO},g'
+.endif
 
 do-install:
        ${INSTALL_PROGRAM} ${WRKSRC}/src/xwave ${DESTDIR}${PREFIX}/bin



Home | Main Index | Thread Index | Old Index