ports/audio/fluidsynth/files/patch-src_CMakeLists.txt
Thomas Zander d08a087ea4 Add SNDIO support and non-default OPTION
PR:		212838
Submitted by:	t@tobik.me
2016-12-17 13:41:32 +00:00

30 lines
962 B
Text

--- src/CMakeLists.txt.orig 2012-08-16 04:01:13 UTC
+++ src/CMakeLists.txt
@@ -47,6 +47,11 @@ if ( PULSE_SUPPORT )
include_directories ( ${PULSE_INCLUDEDIR} ${PULSE_INCLUDE_DIRS} )
endif ( PULSE_SUPPORT )
+if ( SNDIO_SUPPORT )
+ set ( fluid_sndio_SOURCES drivers/fluid_sndio.c )
+ set ( SNDIO_LIBRARIES sndio )
+endif ( SNDIO_SUPPORT )
+
if ( ALSA_SUPPORT )
set ( fluid_alsa_SOURCES drivers/fluid_alsa.c )
include_directories ( ${ALSA_INCLUDEDIR} ${ALSA_INCLUDE_DIRS} )
@@ -244,6 +249,7 @@ add_library ( libfluidsynth
${fluid_oss_SOURCES}
${fluid_portaudio_SOURCES}
${fluid_pulse_SOURCES}
+ ${fluid_sndio_SOURCES}
${fluid_windows_SOURCES}
${libfluidsynth_SOURCES}
${public_HEADERS}
@@ -286,6 +292,7 @@ target_link_libraries ( libfluidsynth
${JACK_LIBRARIES}
${ALSA_LIBRARIES}
${PULSE_LIBRARIES}
+ ${SNDIO_LIBRARIES}
${PORTAUDIO_LIBRARIES}
${LIBSNDFILE_LIBRARIES}
${DBUS_LIBRARIES}