Ravenports generated: 09 May 2022 22:55
[ravenports.git] / bucket_F7 / alsa-lib
1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
2
3 NAMEBASE=               alsa-lib
4 VERSION=                1.2.6.1
5 KEYWORDS=               audio
6 VARIANTS=               standard
7 SDESC[standard]=        Advanced Linux Sound Architecture (ALSA)
8 HOMEPAGE=               https://www.alsa-project.org/main/index.php/Main_Page
9 CONTACT=                Leonid_Bobrov[goleo@disroot.org]
10
11 DOWNLOAD_GROUPS=        main
12 SITES[main]=            GITHUB/alsa-project:alsa-lib:v1.2.6.1
13 DISTFILE[1]=            generated:main
14 DF_INDEX=               1
15 SPKGS[standard]=        single
16
17 OPTIONS_AVAILABLE=      LINUX
18 OPTIONS_STANDARD=       LINUX
19 OPT_ON[linux]=          LINUX
20
21 USES=                   autoreconf cpe libtool:keepla python:build
22
23 LICENSE=                LGPL21+:single
24 LICENSE_TERMS=          single:{{WRKSRC}}/TERMS
25 LICENSE_FILE=           LGPL21+:{{WRKSRC}}/COPYING
26 LICENSE_AWK=            TERMS:"^\#include"
27 LICENSE_SOURCE=         TERMS:{{WRKSRC}}/src/input.c
28 LICENSE_SCHEME=         solo
29
30 CPE_PRODUCT=            alsa
31 CPE_VENDOR=             alsa-project
32 FPC_EQUIVALENT=         audio/alsa-lib
33
34 MUST_CONFIGURE=         gnu
35 CONFIGURE_ARGS=         --with-pkgconfdir="{{PREFIX}}/lib/pkgconfig"
36
37 INSTALL_TARGET=         install-strip
38 INSTALL_REQ_TOOLCHAIN=  yes
39 SOVERSION=              2.0.0
40
41 VAR_OPSYS[freebsd]=     CONFIGURE_ARGS= ac_cv_header_endian_h=no
42 VAR_OPSYS[dragonfly]=   CONFIGURE_ARGS= ac_cv_header_endian_h=no
43
44 [LINUX].DESCRIPTION=                    Indicates built for Linux
45
46 post-patch:
47         ${REINPLACE_CMD} 's|/etc|${PREFIX}&|g' ${WRKSRC}/src/conf/alsa.conf
48
49 post-patch-LINUX-OFF:
50         ${MKDIR} ${WRKSRC}/include/linux
51         ${CP} ${FILESDIR}/byteswap.h ${WRKSRC}/include/
52         ${CP} ${FILESDIR}/endian.h ${WRKSRC}/include/
53         ${CP} ${FILESDIR}/malloc.h ${WRKSRC}/include/
54         ${CP} ${FILESDIR}/ioctl.h ${WRKSRC}/include/linux/
55         ${CP} ${FILESDIR}/types.h ${WRKSRC}/include/linux/
56         ${REINPLACE_CMD} -E -e 's/__s([[:digit:]]+)/int\1_t/g' \
57                 -e 's/__kernel_long_t/long/g' \
58                 ${WRKSRC}/include/sound/uapi/asound.h
59
60 [FILE:574:descriptions/desc.single]
61 The Advanced Linux Sound Architecture (ALSA) provides audio and MIDI
62 functionality to the Linux operating system. ALSA has the following
63 significant features:
64
65 * Efficient support for all types of audio interfaces, from consumer
66   sound cards to professional multichannel audio interfaces.
67 * Fully modularized sound drivers.
68 * SMP and thread-safe design.
69 * User space library (alsa-lib) to simplify application programming
70   and provide higher level functionality.
71 * Support for the older Open Sound System (OSS) API, providing binary
72   compatibility for most OSS programs.
73
74
75 [FILE:115:distinfo]
76 d9df0020b1eb07470d9b9afa6d4d5c3cc864c7d611e54e80f8f42fcde7b3ac26       827817 alsa-project-alsa-lib-1.2.6.1.tar.gz
77
78
79 [FILE:2069:manifests/plist.single]
80 bin/aserver
81 include/asoundlib.h
82 include/alsa/
83  asoundef.h
84  asoundlib.h
85  conf.h
86  control.h
87  control_external.h
88  control_plugin.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  asoc.h
114  asound_fm.h
115  emu10k1.h
116  hdsp.h
117  hdspm.h
118  sb16_csp.h
119  sscape_ioctl.h
120  tlv.h
121  type_compat.h
122 include/alsa/sound/uapi/
123  asoc.h
124  asound_fm.h
125  emu10k1.h
126  hdsp.h
127  hdspm.h
128  sb16_csp.h
129  sscape_ioctl.h
130  tlv.h
131 include/sys/asoundlib.h
132 lib/
133  libasound.la
134  libasound.so
135  libasound.so.%%SOMAJOR%%
136  libasound.so.%%SOVERSION%%
137  libatopology.la
138  libatopology.so
139  libatopology.so.%%SOMAJOR%%
140  libatopology.so.%%SOVERSION%%
141 lib/pkgconfig/
142  alsa-topology.pc
143  alsa.pc
144 share/aclocal/alsa.m4
145 share/alsa/alsa.conf
146 share/alsa/cards/
147  AACI.conf
148  ATIIXP-MODEM.conf
149  ATIIXP-SPDMA.conf
150  ATIIXP.conf
151  AU8810.conf
152  AU8820.conf
153  AU8830.conf
154  Audigy.conf
155  Audigy2.conf
156  Aureon51.conf
157  Aureon71.conf
158  CA0106.conf
159  CMI8338-SWIEC.conf
160  CMI8338.conf
161  CMI8738-MC6.conf
162  CMI8738-MC8.conf
163  CMI8788.conf
164  CS46xx.conf
165  EMU10K1.conf
166  EMU10K1X.conf
167  ENS1370.conf
168  ENS1371.conf
169  ES1968.conf
170  Echo_Echo3G.conf
171  FM801.conf
172  FWSpeakers.conf
173  FireWave.conf
174  GUS.conf
175  HDA-Intel.conf
176  HdmiLpeAudio.conf
177  ICE1712.conf
178  ICE1724.conf
179  ICH-MODEM.conf
180  ICH.conf
181  ICH4.conf
182  Loopback.conf
183  Maestro3.conf
184  NFORCE.conf
185  PC-Speaker.conf
186  PMac.conf
187  PMacToonie.conf
188  PS3.conf
189  RME9636.conf
190  RME9652.conf
191  SB-XFi.conf
192  SI7018.conf
193  TRID4DWAVENX.conf
194  USB-Audio.conf
195  VIA686A.conf
196  VIA8233.conf
197  VIA8233A.conf
198  VIA8237.conf
199  VX222.conf
200  VXPocket.conf
201  VXPocket440.conf
202  YMF744.conf
203  aliases.conf
204  pistachio-card.conf
205  vc4-hdmi.conf
206 share/alsa/ctl/default.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  2021-12-09 13:17:59 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    2021-12-09 13:17:59 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     2021-12-09 13:17:59 UTC
279 +++ src/conf.c
280 @@ -4113,7 +4113,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:528:patches/patch-src_pcm_pcm__direct.c]
292 --- src/pcm/pcm_direct.c.orig   2021-12-09 13:17:59 UTC
293 +++ src/pcm/pcm_direct.c
294 @@ -44,12 +44,17 @@
295   *
296   */
297   
298 +#if !defined(__DragonFly__) && !defined(__OpenBSD__) \
299 +  && !(defined(__FreeBSD__) && __FreeBSD__ < 12)
300  union semun {
301         int              val;    /* Value for SETVAL */
302         struct semid_ds *buf;    /* Buffer for IPC_STAT, IPC_SET */
303         unsigned short  *array;  /* Array for GETALL, SETALL */
304 +#ifdef __linux__
305         struct seminfo  *__buf;  /* Buffer for IPC_INFO (Linux specific) */
306 +#endif
307  };
308 +#endif
309   
310  /*
311   * FIXME:
312
313
314 [FILE:548:patches/patch-src_ucm_parser.c]
315 --- src/ucm/parser.c.orig       2021-12-09 13:17:59 UTC
316 +++ src/ucm/parser.c
317 @@ -2479,7 +2479,7 @@ int uc_mgr_scan_master_configs(const cha
318                 snprintf(filename, sizeof(filename), "%s/ucm2/conf.virt.d",
319                          snd_config_topdir());
320  
321 -#if defined(_GNU_SOURCE) && !defined(__NetBSD__) && !defined(__FreeBSD__) && !defined(__sun) && !defined(ANDROID)
322 +#if defined(_GNU_SOURCE) && !defined(__NetBSD__) && !defined(__FreeBSD__) && !defined(__sun) && !defined(ANDROID) && !defined(__DragonFly__)
323  #define SORTFUNC       versionsort
324  #else
325  #define SORTFUNC       alphasort
326
327
328 [FILE:357:patches/patch-src_ucm_ucm__exec.c]
329 --- src/ucm/ucm_exec.c.orig     2021-12-09 13:17:59 UTC
330 +++ src/ucm/ucm_exec.c
331 @@ -32,6 +32,12 @@
332  #include <sys/wait.h>
333  #include <limits.h>
334  #include <dirent.h>
335 +#include <unistd.h>
336 +#include <signal.h>
337 +
338 +#if defined(__FreeBSD__) || defined(__DragonFly__)
339 +char *environ[] = { 0 };
340 +#endif 
341  
342  static pthread_mutex_t fork_lock = PTHREAD_MUTEX_INITIALIZER;
343  
344
345
346 [FILE:381:patches/patch-test_midifile.c]
347 --- test/midifile.c.orig        2021-12-09 13:17:59 UTC
348 +++ test/midifile.c
349 @@ -71,7 +71,7 @@
350  #endif
351  
352  #include <stdio.h>
353 -#include <values.h>
354 +#include <limits.h>
355  
356  #include <string.h>
357  /*void exit(), free();*/
358 @@ -328,7 +328,7 @@ readtrack ()                        /* read a track chunk */
359  
360    if (Mf_interactive)
361      {
362 -      Mf_toberead = MAXINT;
363 +      Mf_toberead = INT_MAX;
364      }
365    else
366      {
367
368
369 [FILE:281:files/byteswap.h]
370 #ifndef _BYTESWAP_H
371 #define _BYTESWAP_H
372
373 #ifdef __OpenBSD__
374 #define bswap_16(x)     swap16(x)
375 #define bswap_32(x)     swap32(x)
376 #define bswap_64(x)     swap64(x)
377 #else
378 #define bswap_16(x)     bswap16(x)
379 #define bswap_32(x)     bswap32(x)
380 #define bswap_64(x)     bswap64(x)
381 #endif
382 #endif /* _BYTESWAP_H */
383
384
385 [FILE:84:files/endian.h]
386 #ifndef _ENDIAN_H
387 #define _ENDIAN_H
388 #include <linux/types.h>
389 #endif /* _ENDIAN_H */
390
391
392 [FILE:98:files/ioctl.h]
393 #ifndef _LINUX_IOCTL_H
394 #define _LINUX_IOCTL_H
395 #include <sys/ioccom.h>
396 #endif /* _LINUX_IOCTL_H */
397
398
399 [FILE:79:files/malloc.h]
400 #ifndef _MALLOC_H
401 #define _MALLOC_H
402 #include <stdlib.h>
403 #endif /* _MALLOC_H */
404
405
406 [FILE:225:files/types.h]
407 #ifndef _LINUX_TYPES_H
408 #define _LINUX_TYPES_H
409
410 #include <sys/types.h>
411
412 #define __bitwise
413 #define __u8 u_int8_t
414
415 typedef pid_t __kernel_pid_t;
416 typedef off_t __kernel_off_t;
417
418 typedef uint64_t __u64;
419 #endif /* _LINUX_TYPES_H */
420