1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
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]
12 SITES[main]= GITHUB/alsa-project:alsa-lib:v1.2.7.1
13 DISTFILE[1]= generated:main
15 SPKGS[standard]= single
17 OPTIONS_AVAILABLE= LINUX
18 OPTIONS_STANDARD= LINUX
21 USES= autoreconf cpe libtool:keepla python:build
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
31 CPE_VENDOR= alsa-project
32 FPC_EQUIVALENT= audio/alsa-lib
35 CONFIGURE_ARGS= --with-pkgconfdir="{{PREFIX}}/lib/pkgconfig"
37 INSTALL_TARGET= install-strip
38 INSTALL_REQ_TOOLCHAIN= yes
41 VAR_OPSYS[freebsd]= CONFIGURE_ARGS= ac_cv_header_endian_h=no
42 VAR_OPSYS[dragonfly]= CONFIGURE_ARGS= ac_cv_header_endian_h=no
44 [LINUX].DESCRIPTION= Indicates built for Linux
47 ${REINPLACE_CMD} 's|/etc|${PREFIX}&|g' ${WRKSRC}/src/conf/alsa.conf
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
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
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.
76 0d8c1d989f555e0746d97ec8ff17f7bc3c86ab396eee9cff419713d804a61f0a 834020 alsa-project-alsa-lib-1.2.7.1.tar.gz
79 [FILE:2069:manifests/plist.single]
122 include/alsa/sound/uapi/
131 include/sys/asoundlib.h
135 libasound.so.%%SOMAJOR%%
136 libasound.so.%%SOVERSION%%
139 libatopology.so.%%SOMAJOR%%
140 libatopology.so.%%SOVERSION%%
144 share/aclocal/alsa.m4
206 share/alsa/ctl/default.conf
227 [FILE:270:patches/patch-include_pcm.h]
228 --- include/pcm.h.orig 2022-06-17 09:42:05 UTC
235 +#define ESTRPIPE EPIPE
238 +#define EBADFD EBADF
246 [FILE:760:patches/patch-src_async.c]
247 $NetBSD: patch-bk,v 1.1 2008/12/25 13:18:00 hasso Exp $
249 --- src/async.c.orig 2022-06-17 09:42:05 UTC
251 @@ -54,6 +54,15 @@ static LIST_HEAD(snd_async_handlers);
253 static void snd_async_handler(int signo ATTRIBUTE_UNUSED, siginfo_t *siginfo, void *context ATTRIBUTE_UNUSED)
255 +#if defined(__DragonFly__) || defined(__FreeBSD__)
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);
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)
277 [FILE:534:patches/patch-src_conf.c]
278 --- src/conf.c.orig 2022-06-17 09:42:05 UTC
280 @@ -4115,7 +4115,7 @@ static int config_file_load(snd_config_t
281 if (!S_ISDIR(st.st_mode))
282 return config_file_open(root, fn);
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 versionsort64
288 #define SORTFUNC alphasort64
291 [FILE:528:patches/patch-src_pcm_pcm__direct.c]
292 --- src/pcm/pcm_direct.c.orig 2022-06-17 09:42:05 UTC
293 +++ src/pcm/pcm_direct.c
298 +#if !defined(__DragonFly__) && !defined(__OpenBSD__) \
299 + && !(defined(__FreeBSD__) && __FreeBSD__ < 12)
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 */
305 struct seminfo *__buf; /* Buffer for IPC_INFO (Linux specific) */
314 [FILE:331:patches/patch-src_ucm_main.c]
315 --- src/ucm/main.c.orig 2022-06-17 09:42:05 UTC
317 @@ -176,7 +176,11 @@ static int read_tlv_file(unsigned int **
321 +#if defined(__FreeBSD__) || defined(__DragonFly__)
322 + if (fstat(fd, &st) == -1) {
324 if (fstat64(fd, &st) == -1) {
331 [FILE:552:patches/patch-src_ucm_parser.c]
332 --- src/ucm/parser.c.orig 2022-06-17 09:42:05 UTC
334 @@ -2907,7 +2907,7 @@ int uc_mgr_scan_master_configs(const cha
335 snprintf(filename, sizeof(filename), "%s/ucm2/conf.virt.d",
336 snd_config_topdir());
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 versionsort64
342 #define SORTFUNC alphasort64
345 [FILE:357:patches/patch-src_ucm_ucm__exec.c]
346 --- src/ucm/ucm_exec.c.orig 2022-06-17 09:42:05 UTC
347 +++ src/ucm/ucm_exec.c
349 #include <sys/wait.h>
355 +#if defined(__FreeBSD__) || defined(__DragonFly__)
356 +char *environ[] = { 0 };
359 static pthread_mutex_t fork_lock = PTHREAD_MUTEX_INITIALIZER;
363 [FILE:381:patches/patch-test_midifile.c]
364 --- test/midifile.c.orig 2022-06-17 09:42:05 UTC
374 /*void exit(), free();*/
375 @@ -328,7 +328,7 @@ readtrack () /* read a track chunk */
379 - Mf_toberead = MAXINT;
380 + Mf_toberead = INT_MAX;
386 [FILE:281:files/byteswap.h]
391 #define bswap_16(x) swap16(x)
392 #define bswap_32(x) swap32(x)
393 #define bswap_64(x) swap64(x)
395 #define bswap_16(x) bswap16(x)
396 #define bswap_32(x) bswap32(x)
397 #define bswap_64(x) bswap64(x)
399 #endif /* _BYTESWAP_H */
402 [FILE:84:files/endian.h]
405 #include <linux/types.h>
406 #endif /* _ENDIAN_H */
409 [FILE:98:files/ioctl.h]
410 #ifndef _LINUX_IOCTL_H
411 #define _LINUX_IOCTL_H
412 #include <sys/ioccom.h>
413 #endif /* _LINUX_IOCTL_H */
416 [FILE:79:files/malloc.h]
420 #endif /* _MALLOC_H */
423 [FILE:225:files/types.h]
424 #ifndef _LINUX_TYPES_H
425 #define _LINUX_TYPES_H
427 #include <sys/types.h>
430 #define __u8 u_int8_t
432 typedef pid_t __kernel_pid_t;
433 typedef off_t __kernel_off_t;
435 typedef uint64_t __u64;
436 #endif /* _LINUX_TYPES_H */