pkgsrc/lang/squeak-vm/patches/patch-ae
markd bd1c0619a3 Add a pulseaudio option and patch so that cmake doesn't try to build
pulseaudio plugin unless option selected.  Option off by default
so no change to default package build.
Fixes build if you happen to have pulseaudio package installed when
building.
2010-06-01 21:55:32 +00:00

14 lines
379 B
Text

$NetBSD: patch-ae,v 1.1 2010/06/01 21:55:32 markd Exp $
Make pulseaudio optional.
--- unix/vm-sound-pulse/config.cmake.orig 2009-09-14 21:09:24.000000000 +0000
+++ unix/vm-sound-pulse/config.cmake
@@ -1 +1,7 @@
PLUGIN_REQUIRE_LIBRARY (PULSE pulse-simple)
+
+CHECK_LIBRARY_EXISTS (pulse-simple pa_stream_new "" HAVE_PULSE)
+IF (NOT HAVE_PULSE)
+ PLUGIN_DISABLE ()
+ENDIF ()
+