summaryrefslogtreecommitdiff
path: root/audio/cmus
diff options
context:
space:
mode:
authorminskim <minskim@pkgsrc.org>2006-07-10 00:56:25 +0000
committerminskim <minskim@pkgsrc.org>2006-07-10 00:56:25 +0000
commitd9cfb344f3d57aa56a2c79e6605050d49c468d69 (patch)
tree1503451274eb0da8b273aa3825b3baa80c7a77f8 /audio/cmus
parent74e96ceceacda7cfaa3d63fc394af716702bde1e (diff)
downloadpkgsrc-d9cfb344f3d57aa56a2c79e6605050d49c468d69.tar.gz
Fix PLIST on platforms without sys/audioio.h, where sun.so is not built.
Diffstat (limited to 'audio/cmus')
-rw-r--r--audio/cmus/Makefile8
-rw-r--r--audio/cmus/PLIST4
2 files changed, 9 insertions, 3 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
diff --git a/audio/cmus/PLIST b/audio/cmus/PLIST
index 7e4a88dc670..3611f871d62 100644
--- a/audio/cmus/PLIST
+++ b/audio/cmus/PLIST
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.1.1.1 2006/07/08 04:31:28 ben Exp $
+@comment $NetBSD: PLIST,v 1.2 2006/07/10 00:56:25 minskim Exp $
bin/cmus
bin/cmus-remote
lib/cmus/ip/flac.so
@@ -7,7 +7,7 @@ lib/cmus/ip/vorbis.so
lib/cmus/ip/wav.so
lib/cmus/op/ao.so
lib/cmus/op/oss.so
-lib/cmus/op/sun.so
+${SUN}lib/cmus/op/sun.so
man/man1/cmus-remote.1
man/man1/cmus.1
share/cmus/cyan.theme