From 16f3e9ea422ae5d8f79fb9dca91ac6250793d33d Mon Sep 17 00:00:00 2001 From: rh Date: Fri, 16 Apr 2004 13:32:03 +0000 Subject: Make this compile on systems without OSS (or emulation thereof). --- x11/gnustep-gui/Makefile | 13 ++++++++++++- x11/gnustep-gui/PLIST | 4 ++-- 2 files changed, 14 insertions(+), 3 deletions(-) (limited to 'x11') diff --git a/x11/gnustep-gui/Makefile b/x11/gnustep-gui/Makefile index d50101cb758..fbf769c15d3 100644 --- a/x11/gnustep-gui/Makefile +++ b/x11/gnustep-gui/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.13 2004/04/10 23:44:28 rh Exp $ +# $NetBSD: Makefile,v 1.14 2004/04/16 13:32:03 rh Exp $ # DISTNAME= gnustep-gui-0.9.2 @@ -18,6 +18,17 @@ CONFIGURE_ARGS+= --exec-prefix=${PREFIX}/libexec/GNUstep .include "../../graphics/jpeg/buildlink3.mk" .include "../../graphics/png/buildlink3.mk" .include "../../graphics/tiff/buildlink3.mk" + .include "../../mk/ossaudio.buildlink3.mk" + +.if !empty(${HAVE_OSS:M[Nn][Oo]}) && !exists(/usr/include/soundcard.h) && \ + !exists(/usr/include/sys/soundcard.h) && \ + !exists(/usr/include/machine/soundcard.h) +CONFIGURE_ARGS+=--disable-gsnd +PLIST_SUBST+= GSND="@comment " +.else +PLIST_SUBST+= GSND= +.endif + .include "../../mk/pthread.buildlink3.mk" .include "../../mk/bsd.pkg.mk" diff --git a/x11/gnustep-gui/PLIST b/x11/gnustep-gui/PLIST index 68e7f1ff80d..1cb69c91599 100644 --- a/x11/gnustep-gui/PLIST +++ b/x11/gnustep-gui/PLIST @@ -1,4 +1,4 @@ -@comment $NetBSD: PLIST,v 1.6 2004/04/10 23:44:28 rh Exp $ +@comment $NetBSD: PLIST,v 1.7 2004/04/16 13:32:03 rh Exp $ share/GNUstep/System/Library/Bundles/TextConverters/RTFConverter.bundle/RTFConverter share/GNUstep/System/Library/Bundles/TextConverters/RTFConverter.bundle/Resources/Info-gnustep.plist share/GNUstep/System/Library/Bundles/TextConverters/RTFConverter.bundle/stamp.make @@ -643,7 +643,7 @@ share/GNUstep/System/Library/PostScript/PPD/Swedish.lproj/Linotronic_300.ppd share/GNUstep/System/Library/PostScript/Printers share/GNUstep/System/Library/Services/GSspell.service/GSspell share/GNUstep/System/Library/Services/GSspell.service/Resources/Info-gnustep.plist -share/GNUstep/System/Tools/gnustep_sndd +${GSND}share/GNUstep/System/Tools/gnustep_sndd share/GNUstep/System/Tools/gopen share/GNUstep/System/Tools/make_services share/GNUstep/System/Tools/set_show_service -- cgit v1.2.3