@@ -150,6 +150,32 @@ ELSE(LMMS_BUILD_WIN32)
150150 SET (STATUS_WINMM "<not supported on this platform>" )
151151ENDIF (LMMS_BUILD_WIN32 )
152152
153+ IF (LMMS_BUILD_OPENBSD)
154+ # “don't link deprecated ossaudio on OpenBSD”
155+ # https://cvsweb.openbsd.org/checkout/ports/audio/lmms/patches/patch-CMakeLists_txt?rev=1.3
156+ SET (WANT_OSS OFF )
157+ SET (STATUS_OSS "<not supported on this platform>" )
158+ # LMMS finds SDL and compiles fine with it enabled, but it doesn't
159+ # appear as an option when choosing an audio backend in settings for
160+ # some reason. This might be fixable, but the OpenBSD ports
161+ # maintainers have also explicitly disabled SDL since 2010-10-28.
162+ # https://cvsweb.openbsd.org/checkout/ports/audio/lmms/Makefile?rev=1.1
163+ SET (WANT_SDL OFF )
164+ SET (STATUS_SDL "<not supported on this platform>" )
165+ # “explicitly disable pulseaudio in these ports so they won't pick
166+ # it up when it becomes available.”
167+ # https://cvsweb.openbsd.org/checkout/ports/audio/lmms/Makefile?rev=1.5
168+ SET (WANT_PULSEAUDIO OFF )
169+ SET (STATUS_PULSEAUDIO "<not supported on this platform>" )
170+ # OpenBSD does not and never will have WINE, which is necessary for
171+ # Windows VST support.
172+ # TODO: Is Linux VST support on OpenBSD possible?
173+ SET (WANT_VST OFF )
174+ SET (STATUS_VST "<not supported on this platform>" )
175+ SET (STATUS_VST_32 "<not supported on this platform>" )
176+ SET (STATUS_VST_64 "<not supported on this platform>" )
177+ ENDIF ()
178+
153179SET (CMAKE_CXX_STANDARD_REQUIRED ON )
154180
155181CHECK_INCLUDE_FILES (pthread.h LMMS_HAVE_PTHREAD_H )
@@ -165,8 +191,6 @@ CHECK_INCLUDE_FILES(sys/soundcard.h LMMS_HAVE_SYS_SOUNDCARD_H)
165191CHECK_INCLUDE_FILES (soundcard.h LMMS_HAVE_SOUNDCARD_H )
166192CHECK_INCLUDE_FILES (fcntl.h LMMS_HAVE_FCNTL_H )
167193CHECK_INCLUDE_FILES (sys/ioctl.h LMMS_HAVE_SYS_IOCTL_H )
168- CHECK_INCLUDE_FILES (ctype.h LMMS_HAVE_CTYPE_H )
169- CHECK_INCLUDE_FILES (string .h LMMS_HAVE_STRING_H )
170194CHECK_INCLUDE_FILES (process.h LMMS_HAVE_PROCESS_H )
171195CHECK_INCLUDE_FILES (locale.h LMMS_HAVE_LOCALE_H )
172196
0 commit comments