Create Ravenports release 20210427.1
[ravenports.git] / bucket_F7 / alsa-lib
1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
2
3 NAMEBASE=               alsa-lib
4 VERSION=                1.2.4
5 REVISION=               1
6 KEYWORDS=               audio
7 VARIANTS=               standard
8 SDESC[standard]=        Advanced Linux Sound Architecture (ALSA)
9 HOMEPAGE=               https://www.alsa-project.org/main/index.php/Main_Page
10 CONTACT=                Leonid_Bobrov[goleo@disroot.org]
11
12 DOWNLOAD_GROUPS=        main
13 SITES[main]=            GITHUB/alsa-project:alsa-lib:v1.2.4
14 DISTFILE[1]=            generated:main
15 DF_INDEX=               1
16 SPKGS[standard]=        single
17
18 OPTIONS_AVAILABLE=      LINUX
19 OPTIONS_STANDARD=       LINUX
20 OPT_ON[linux]=          LINUX
21
22 USES=                   autoreconf cpe libtool:keepla python:build
23
24 LICENSE=                LGPL21+:single
25 LICENSE_TERMS=          single:{{WRKSRC}}/TERMS
26 LICENSE_FILE=           LGPL21+:{{WRKSRC}}/COPYING
27 LICENSE_AWK=            TERMS:"^\#include"
28 LICENSE_SOURCE=         TERMS:{{WRKSRC}}/src/input.c
29 LICENSE_SCHEME=         solo
30
31 CPE_PRODUCT=            alsa
32 CPE_VENDOR=             alsa-project
33 FPC_EQUIVALENT=         audio/alsa-lib
34
35 MUST_CONFIGURE=         gnu
36 CONFIGURE_ARGS=         --with-pkgconfdir="{{PREFIX}}/lib/pkgconfig"
37
38 INSTALL_TARGET=         install-strip
39 INSTALL_REQ_TOOLCHAIN=  yes
40 SOVERSION=              2.0.0
41
42 VAR_OPSYS[freebsd]=     CONFIGURE_ARGS= ac_cv_header_endian_h=no
43 VAR_OPSYS[dragonfly]=   CONFIGURE_ARGS= ac_cv_header_endian_h=no
44
45 [LINUX].DESCRIPTION=                    Indicates built for Linux
46
47 post-patch:
48         ${REINPLACE_CMD} 's|/etc|${PREFIX}&|g' ${WRKSRC}/src/conf/alsa.conf
49
50 post-patch-LINUX-OFF:
51         ${MKDIR} ${WRKSRC}/include/linux
52         ${CP} ${FILESDIR}/byteswap.h ${WRKSRC}/include/
53         ${CP} ${FILESDIR}/endian.h ${WRKSRC}/include/
54         ${CP} ${FILESDIR}/malloc.h ${WRKSRC}/include/
55         ${CP} ${FILESDIR}/ioctl.h ${WRKSRC}/include/linux/
56         ${CP} ${FILESDIR}/types.h ${WRKSRC}/include/linux/
57         ${REINPLACE_CMD} -E -e 's/__s([[:digit:]]+)/int\1_t/g' \
58                 -e 's/__kernel_long_t/long/g' \
59                 ${WRKSRC}/include/sound/uapi/asound.h
60
61 [FILE:574:descriptions/desc.single]
62 The Advanced Linux Sound Architecture (ALSA) provides audio and MIDI
63 functionality to the Linux operating system. ALSA has the following
64 significant features:
65
66 * Efficient support for all types of audio interfaces, from consumer
67   sound cards to professional multichannel audio interfaces.
68 * Fully modularized sound drivers.
69 * SMP and thread-safe design.
70 * User space library (alsa-lib) to simplify application programming
71   and provide higher level functionality.
72 * Support for the older Open Sound System (OSS) API, providing binary
73   compatibility for most OSS programs.
74
75
76 [FILE:113:distinfo]
77 0c6ab052d7ea980a01d0208da5e5e10849bd16c4c9961bbd5d2665083b74a6c0       793478 alsa-project-alsa-lib-1.2.4.tar.gz
78
79
80 [FILE:2043:manifests/plist.single]
81 bin/aserver
82 include/asoundlib.h
83 include/alsa/
84  asoundef.h
85  asoundlib.h
86  conf.h
87  control.h
88  control_external.h
89  error.h
90  global.h
91  hwdep.h
92  input.h
93  mixer.h
94  mixer_abst.h
95  output.h
96  pcm.h
97  pcm_external.h
98  pcm_extplug.h
99  pcm_ioplug.h
100  pcm_old.h
101  pcm_plugin.h
102  pcm_rate.h
103  rawmidi.h
104  seq.h
105  seq_event.h
106  seq_midi_event.h
107  seqmid.h
108  timer.h
109  topology.h
110  use-case.h
111  version.h
112 include/alsa/sound/
113 include/alsa/sound/
114  asoc.h
115  asound_fm.h
116  emu10k1.h
117  hdsp.h
118  hdspm.h
119  sb16_csp.h
120  sscape_ioctl.h
121  tlv.h
122  type_compat.h
123 include/alsa/sound/uapi/
124  asoc.h
125  asound_fm.h
126  emu10k1.h
127  hdsp.h
128  hdspm.h
129  sb16_csp.h
130  sscape_ioctl.h
131  tlv.h
132 include/sys/asoundlib.h
133 lib/
134  libasound.la
135  libasound.so
136  libasound.so.%%SOMAJOR%%
137  libasound.so.%%SOVERSION%%
138  libatopology.la
139  libatopology.so
140  libatopology.so.%%SOMAJOR%%
141  libatopology.so.%%SOVERSION%%
142 lib/pkgconfig/
143  alsa-topology.pc
144  alsa.pc
145 share/aclocal/alsa.m4
146 share/alsa/alsa.conf
147 share/alsa/cards/
148  AACI.conf
149  ATIIXP-MODEM.conf
150  ATIIXP-SPDMA.conf
151  ATIIXP.conf
152  AU8810.conf
153  AU8820.conf
154  AU8830.conf
155  Audigy.conf
156  Audigy2.conf
157  Aureon51.conf
158  Aureon71.conf
159  CA0106.conf
160  CMI8338-SWIEC.conf
161  CMI8338.conf
162  CMI8738-MC6.conf
163  CMI8738-MC8.conf
164  CMI8788.conf
165  CS46xx.conf
166  EMU10K1.conf
167  EMU10K1X.conf
168  ENS1370.conf
169  ENS1371.conf
170  ES1968.conf
171  Echo_Echo3G.conf
172  FM801.conf
173  FWSpeakers.conf
174  FireWave.conf
175  GUS.conf
176  HDA-Intel.conf
177  HdmiLpeAudio.conf
178  ICE1712.conf
179  ICE1724.conf
180  ICH-MODEM.conf
181  ICH.conf
182  ICH4.conf
183  Loopback.conf
184  Maestro3.conf
185  NFORCE.conf
186  PC-Speaker.conf
187  PMac.conf
188  PMacToonie.conf
189  PS3.conf
190  RME9636.conf
191  RME9652.conf
192  SB-XFi.conf
193  SI7018.conf
194  TRID4DWAVENX.conf
195  USB-Audio.conf
196  VIA686A.conf
197  VIA8233.conf
198  VIA8233A.conf
199  VIA8237.conf
200  VX222.conf
201  VXPocket.conf
202  VXPocket440.conf
203  YMF744.conf
204  aliases.conf
205  pistachio-card.conf
206  vc4-hdmi.conf
207 share/alsa/pcm/
208  center_lfe.conf
209  default.conf
210  dmix.conf
211  dpl.conf
212  dsnoop.conf
213  front.conf
214  hdmi.conf
215  iec958.conf
216  modem.conf
217  rear.conf
218  side.conf
219  surround21.conf
220  surround40.conf
221  surround41.conf
222  surround50.conf
223  surround51.conf
224  surround71.conf
225
226
227 [FILE:270:patches/patch-include_pcm.h]
228 --- include/pcm.h.orig  2020-06-29 10:51:08 UTC
229 +++ include/pcm.h
230 @@ -29,6 +29,13 @@
231  #ifndef __ALSA_PCM_H
232  #define __ALSA_PCM_H
233  
234 +#ifndef ESTRPIPE
235 +#define ESTRPIPE EPIPE
236 +#endif
237 +#ifndef EBADFD
238 +#define EBADFD EBADF
239 +#endif
240 +
241  #ifdef __cplusplus
242  extern "C" {
243  #endif
244
245
246 [FILE:760:patches/patch-src_async.c]
247 $NetBSD: patch-bk,v 1.1 2008/12/25 13:18:00 hasso Exp $
248
249 --- src/async.c.orig    2020-06-29 10:51:08 UTC
250 +++ src/async.c
251 @@ -54,6 +54,15 @@ static LIST_HEAD(snd_async_handlers);
252  
253  static void snd_async_handler(int signo ATTRIBUTE_UNUSED, siginfo_t *siginfo, void *context ATTRIBUTE_UNUSED)
254  {
255 +#if defined(__DragonFly__) || defined(__FreeBSD__)
256 +       /* XXX XXX XXX */
257 +       struct list_head *i;
258 +       list_for_each(i, &snd_async_handlers) {
259 +               snd_async_handler_t *h = list_entry(i, snd_async_handler_t, glist);
260 +               if (h->callback)
261 +                       h->callback(h);
262 +       }
263 +#else
264         int fd;
265         struct list_head *i;
266         //assert(siginfo->si_code == SI_SIGIO);
267 @@ -66,6 +75,7 @@ static void snd_async_handler(int signo
268                 if (h->fd == fd && h->callback)
269                         h->callback(h);
270         }
271 +#endif
272  }
273  
274  /**
275
276
277 [FILE:529:patches/patch-src_conf.c]
278 --- src/conf.c.orig     2020-10-19 09:45:13 UTC
279 +++ src/conf.c
280 @@ -3836,7 +3836,7 @@ static int config_file_load(snd_config_t
281         if (!S_ISDIR(st.st_mode))
282                 return config_file_open(root, fn);
283  #ifndef DOC_HIDDEN
284 -#if defined(_GNU_SOURCE) && !defined(__NetBSD__) && !defined(__FreeBSD__) && !defined(__sun) && !defined(ANDROID)
285 +#if defined(_GNU_SOURCE) && !defined(__NetBSD__) && !defined(__FreeBSD__) && !defined(__sun) && !defined(ANDROID) &&!defined(__DragonFly__)
286  #define SORTFUNC       versionsort
287  #else
288  #define SORTFUNC       alphasort
289
290
291 [FILE:402:patches/patch-src_dlmisc.c]
292 --- src/dlmisc.c.orig   2020-10-19 09:45:13 UTC
293 +++ src/dlmisc.c
294 @@ -42,11 +42,9 @@
295  #ifndef PIC
296  struct snd_dlsym_link *snd_dlsym_start = NULL;
297  #endif
298 -#ifdef DL_ORIGIN_AVAILABLE
299  static int snd_plugin_dir_set = 0;
300  static char *snd_plugin_dir = NULL;
301  #endif
302 -#endif
303  
304  #if defined(DL_ORIGIN_AVAILABLE) && defined(HAVE_LIBPTHREAD)
305  static pthread_mutex_t snd_dlpath_mutex = PTHREAD_MUTEX_INITIALIZER;
306
307
308 [FILE:528:patches/patch-src_pcm_pcm__direct.c]
309 --- src/pcm/pcm_direct.c.orig   2020-06-29 10:51:08 UTC
310 +++ src/pcm/pcm_direct.c
311 @@ -44,12 +44,17 @@
312   *
313   */
314   
315 +#if !defined(__DragonFly__) && !defined(__OpenBSD__) \
316 +  && !(defined(__FreeBSD__) && __FreeBSD__ < 12)
317  union semun {
318         int              val;    /* Value for SETVAL */
319         struct semid_ds *buf;    /* Buffer for IPC_STAT, IPC_SET */
320         unsigned short  *array;  /* Array for GETALL, SETALL */
321 +#ifdef __linux__
322         struct seminfo  *__buf;  /* Buffer for IPC_INFO (Linux specific) */
323 +#endif
324  };
325 +#endif
326   
327  /*
328   * FIXME:
329
330
331 [FILE:536:patches/patch-src_ucm_parser.c]
332 --- src/ucm/parser.c.orig       2020-10-19 09:45:13 UTC
333 +++ src/ucm/parser.c
334 @@ -2299,7 +2299,7 @@ int uc_mgr_scan_master_configs(const cha
335                 snprintf(filename, sizeof(filename), "%s/ucm2",
336                          snd_config_topdir());
337  
338 -#if defined(_GNU_SOURCE) && !defined(__NetBSD__) && !defined(__FreeBSD__) && !defined(__sun) && !defined(ANDROID)
339 +#if defined(_GNU_SOURCE) && !defined(__NetBSD__) && !defined(__FreeBSD__) && !defined(__sun) && !defined(ANDROID) && !defined(__DragonFly__)
340  #define SORTFUNC       versionsort
341  #else
342  #define SORTFUNC       alphasort
343
344
345 [FILE:381:patches/patch-test_midifile.c]
346 --- test/midifile.c.orig        2020-06-29 10:51:08 UTC
347 +++ test/midifile.c
348 @@ -71,7 +71,7 @@
349  #endif
350  
351  #include <stdio.h>
352 -#include <values.h>
353 +#include <limits.h>
354  
355  #include <string.h>
356  /*void exit(), free();*/
357 @@ -328,7 +328,7 @@ readtrack ()                        /* read a track chunk */
358  
359    if (Mf_interactive)
360      {
361 -      Mf_toberead = MAXINT;
362 +      Mf_toberead = INT_MAX;
363      }
364    else
365      {
366
367
368 [FILE:281:files/byteswap.h]
369 #ifndef _BYTESWAP_H
370 #define _BYTESWAP_H
371
372 #ifdef __OpenBSD__
373 #define bswap_16(x)     swap16(x)
374 #define bswap_32(x)     swap32(x)
375 #define bswap_64(x)     swap64(x)
376 #else
377 #define bswap_16(x)     bswap16(x)
378 #define bswap_32(x)     bswap32(x)
379 #define bswap_64(x)     bswap64(x)
380 #endif
381 #endif /* _BYTESWAP_H */
382
383
384 [FILE:84:files/endian.h]
385 #ifndef _ENDIAN_H
386 #define _ENDIAN_H
387 #include <linux/types.h>
388 #endif /* _ENDIAN_H */
389
390
391 [FILE:98:files/ioctl.h]
392 #ifndef _LINUX_IOCTL_H
393 #define _LINUX_IOCTL_H
394 #include <sys/ioccom.h>
395 #endif /* _LINUX_IOCTL_H */
396
397
398 [FILE:79:files/malloc.h]
399 #ifndef _MALLOC_H
400 #define _MALLOC_H
401 #include <stdlib.h>
402 #endif /* _MALLOC_H */
403
404
405 [FILE:225:files/types.h]
406 #ifndef _LINUX_TYPES_H
407 #define _LINUX_TYPES_H
408
409 #include <sys/types.h>
410
411 #define __bitwise
412 #define __u8 u_int8_t
413
414 typedef pid_t __kernel_pid_t;
415 typedef off_t __kernel_off_t;
416
417 typedef uint64_t __u64;
418 #endif /* _LINUX_TYPES_H */
419