summaryrefslogtreecommitdiff
path: root/audio/cmus/Makefile
diff options
context:
space:
mode:
authorminskim <minskim>2006-07-10 00:56:25 +0000
committerminskim <minskim>2006-07-10 00:56:25 +0000
commitddebbd1d7bc663ed287315a46375321cdfa84584 (patch)
tree1503451274eb0da8b273aa3825b3baa80c7a77f8 /audio/cmus/Makefile
parentfaf29ae1b4a7838218b8f3a532bd08f08666902c (diff)
downloadpkgsrc-ddebbd1d7bc663ed287315a46375321cdfa84584.tar.gz
Fix PLIST on platforms without sys/audioio.h, where sun.so is not built.
Diffstat (limited to 'audio/cmus/Makefile')
-rw-r--r--audio/cmus/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/audio/cmus/Makefile b/audio/cmus/Makefile
index 6daa7b18e66..bd8a5eb2dea 100644
--- a/audio/cmus/Makefile
+++ b/audio/cmus/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1.1.1 2006/07/08 04:31:28 ben Exp $
+# $NetBSD: Makefile,v 1.2 2006/07/10 00:56:25 minskim Exp $
#
DISTNAME= cmus-2.0.3
@@ -22,6 +22,12 @@ CONFIGURE_ARGS+= CONFIG_AO=y
CONFIGURE_ARGS+= CONFIG_FLAC=y
CONFIGURE_ARGS+= mandir=${PREFIX}/man/
+.if exists(/usr/include/sys/audioio.h)
+PLIST_SUBST+= SUN=""
+.else
+PLIST_SUBST+= SUN="@comment "
+.endif
+
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "SunOS"
CONFIGURE_ARGS+= CONFIG_SUN=y