summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2020-04-27 18:12:43 +0000
committerrillig <rillig@pkgsrc.org>2020-04-27 18:12:43 +0000
commit5a0c4978d2fac4bb87d597bd57e2027bb8b4f612 (patch)
tree48043ddcffb3ecb09b6052fcd1245ab817209017
parent571c6d25781f783cfc130712f9a581dfb7784a72 (diff)
downloadpkgsrc-5a0c4978d2fac4bb87d597bd57e2027bb8b4f612.tar.gz
audio/xwave: skip SUBST block if it would be a no-op
-rw-r--r--audio/xwave/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/audio/xwave/Makefile b/audio/xwave/Makefile
index 008728161d4..f6e01f7acfb 100644
--- a/audio/xwave/Makefile
+++ b/audio/xwave/Makefile
@@ -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 @@ INSTALLATION_DIRS= bin lib/X11/app-defaults
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