1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
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]
13 SITES[main]= GITHUB/alsa-project:alsa-lib:v1.2.4
14 DISTFILE[1]= generated:main
16 SPKGS[standard]= single
18 OPTIONS_AVAILABLE= LINUX
19 OPTIONS_STANDARD= LINUX
22 USES= autoreconf cpe libtool:keepla python:build
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
32 CPE_VENDOR= alsa-project
33 FPC_EQUIVALENT= audio/alsa-lib
36 CONFIGURE_ARGS= --with-pkgconfdir="{{PREFIX}}/lib/pkgconfig"
38 INSTALL_TARGET= install-strip
39 INSTALL_REQ_TOOLCHAIN= yes
42 VAR_OPSYS[freebsd]= CONFIGURE_ARGS= ac_cv_header_endian_h=no
43 VAR_OPSYS[dragonfly]= CONFIGURE_ARGS= ac_cv_header_endian_h=no
45 [LINUX].DESCRIPTION= Indicates built for Linux
48 ${REINPLACE_CMD} 's|/etc|${PREFIX}&|g' ${WRKSRC}/src/conf/alsa.conf
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
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
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.
77 0c6ab052d7ea980a01d0208da5e5e10849bd16c4c9961bbd5d2665083b74a6c0 793478 alsa-project-alsa-lib-1.2.4.tar.gz
80 [FILE:2043:manifests/plist.single]
123 include/alsa/sound/uapi/
132 include/sys/asoundlib.h
136 libasound.so.%%SOMAJOR%%
137 libasound.so.%%SOVERSION%%
140 libatopology.so.%%SOMAJOR%%
141 libatopology.so.%%SOVERSION%%
145 share/aclocal/alsa.m4
227 [FILE:270:patches/patch-include_pcm.h]
228 --- include/pcm.h.orig 2020-06-29 10:51:08 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 2020-06-29 10:51:08 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:529:patches/patch-src_conf.c]
278 --- src/conf.c.orig 2020-10-19 09:45:13 UTC
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);
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
288 #define SORTFUNC alphasort
291 [FILE:402:patches/patch-src_dlmisc.c]
292 --- src/dlmisc.c.orig 2020-10-19 09:45:13 UTC
296 struct snd_dlsym_link *snd_dlsym_start = NULL;
298 -#ifdef DL_ORIGIN_AVAILABLE
299 static int snd_plugin_dir_set = 0;
300 static char *snd_plugin_dir = NULL;
304 #if defined(DL_ORIGIN_AVAILABLE) && defined(HAVE_LIBPTHREAD)
305 static pthread_mutex_t snd_dlpath_mutex = PTHREAD_MUTEX_INITIALIZER;
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
315 +#if !defined(__DragonFly__) && !defined(__OpenBSD__) \
316 + && !(defined(__FreeBSD__) && __FreeBSD__ < 12)
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 */
322 struct seminfo *__buf; /* Buffer for IPC_INFO (Linux specific) */
331 [FILE:536:patches/patch-src_ucm_parser.c]
332 --- src/ucm/parser.c.orig 2020-10-19 09:45:13 UTC
334 @@ -2299,7 +2299,7 @@ int uc_mgr_scan_master_configs(const cha
335 snprintf(filename, sizeof(filename), "%s/ucm2",
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 versionsort
342 #define SORTFUNC alphasort
345 [FILE:381:patches/patch-test_midifile.c]
346 --- test/midifile.c.orig 2020-06-29 10:51:08 UTC
356 /*void exit(), free();*/
357 @@ -328,7 +328,7 @@ readtrack () /* read a track chunk */
361 - Mf_toberead = MAXINT;
362 + Mf_toberead = INT_MAX;
368 [FILE:281:files/byteswap.h]
373 #define bswap_16(x) swap16(x)
374 #define bswap_32(x) swap32(x)
375 #define bswap_64(x) swap64(x)
377 #define bswap_16(x) bswap16(x)
378 #define bswap_32(x) bswap32(x)
379 #define bswap_64(x) bswap64(x)
381 #endif /* _BYTESWAP_H */
384 [FILE:84:files/endian.h]
387 #include <linux/types.h>
388 #endif /* _ENDIAN_H */
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 */
398 [FILE:79:files/malloc.h]
402 #endif /* _MALLOC_H */
405 [FILE:225:files/types.h]
406 #ifndef _LINUX_TYPES_H
407 #define _LINUX_TYPES_H
409 #include <sys/types.h>
412 #define __u8 u_int8_t
414 typedef pid_t __kernel_pid_t;
415 typedef off_t __kernel_off_t;
417 typedef uint64_t __u64;
418 #endif /* _LINUX_TYPES_H */