ports/devel/allegro/files/patch-include_allegro_platform_alunix.h
Tobias Kortkamp 03f1c01e0f - Add sndio support [1]
- Remove ALSA from default options
- Switch to options helpers
- Move audio output options to their own option group
- Make OSS support an explicit option, so that it can be turned off
- Remove OGG option and make it mandatory: audio/libogg is already a
  dependency via audio/libvorbis
- Make the port simpler by not building the examples and not
  installing the example games (if necessary installing them can be done
  later in a separate port)
- Add LICENSE
- Fix WWW
- Allegro never directly links with libpng or libGLU; make them a build
  dependency only
- Reset maintainer

PR:		215838
Obtained from:	OpenBSD [1]
Approved by:	mat (mentor), maintainer timeout (5 months)
Differential Revision:	https://reviews.freebsd.org/D11039
2017-06-09 13:30:19 +00:00

25 lines
1,003 B
C

$OpenBSD: patch-include_allegro_platform_alunix_h,v 1.1 2010/04/26 02:56:30 jakemsr Exp $
--- include/allegro/platform/alunix.h.orig 2007-06-16 01:52:28 UTC
+++ include/allegro/platform/alunix.h
@@ -69,6 +69,8 @@ AL_VAR(TIMER_DRIVER, timerdrv_unix_sigal
#define DIGI_ALSA AL_ID('A','L','S','A')
#define MIDI_ALSA AL_ID('A','M','I','D')
#define DIGI_JACK AL_ID('J','A','C','K')
+#define DIGI_SNDIO AL_ID('S','I','O','D')
+#define MIDI_SNDIO AL_ID('M','I','O','M')
#ifdef ALLEGRO_WITH_OSSDIGI
@@ -85,6 +87,12 @@ AL_VAR(MIDI_DRIVER, midi_oss);
#ifndef ALLEGRO_WITH_MODULES
+#ifdef ALLEGRO_WITH_SNDIODIGI
+AL_VAR(DIGI_DRIVER, digi_sndio);
+#define DIGI_DRIVER_SNDIO \
+ { DIGI_SNDIO, &digi_sndio, TRUE },
+#endif /* ALLEGRO_WITH_SNDIODIGI */
+
#ifdef ALLEGRO_WITH_ESDDIGI
AL_VAR(DIGI_DRIVER, digi_esd);
#define DIGI_DRIVER_ESD \