From 9aa147c23e8088e398cf7a07cd6ab47b14be3fca Mon Sep 17 00:00:00 2001 From: minskim Date: Mon, 10 Jul 2006 00:56:25 +0000 Subject: Fix PLIST on platforms without sys/audioio.h, where sun.so is not built. --- audio/cmus/Makefile | 8 +++++++- audio/cmus/PLIST | 4 ++-- 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 -- cgit v1.2.3