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]= ftp://ftp.alsa-project.org/pub/lib/
14 DISTFILE[1]= alsa-lib-1.2.2.tar.bz2:main
16 SPKGS[standard]= single
18 OPTIONS_AVAILABLE= LINUX
19 OPTIONS_STANDARD= LINUX
22 BUILDRUN_DEPENDS= autoselect-python:single:standard
24 USES= cpe libtool:keepla python
26 LICENSE= LGPL21+:single
27 LICENSE_TERMS= single:{{WRKSRC}}/TERMS
28 LICENSE_FILE= LGPL21+:{{WRKSRC}}/COPYING
29 LICENSE_AWK= TERMS:"^\#include"
30 LICENSE_SOURCE= TERMS:{{WRKSRC}}/src/input.c
34 CPE_VENDOR= alsa-project
35 FPC_EQUIVALENT= audio/alsa-lib
38 CONFIGURE_ARGS= --with-pkgconfdir="{{PREFIX}}/lib/pkgconfig"
40 INSTALL_TARGET= install-strip
41 INSTALL_REQ_TOOLCHAIN= yes
44 VAR_OPSYS[freebsd]= CONFIGURE_ARGS= ac_cv_header_endian_h=no
45 VAR_OPSYS[dragonfly]= CONFIGURE_ARGS= ac_cv_header_endian_h=no
47 [LINUX].DESCRIPTION= Indicates built for Linux
50 ${REINPLACE_CMD} 's|/etc|${PREFIX}&|g' ${WRKSRC}/src/conf/alsa.conf
53 ${REINPLACE_CMD} -e '/_GNU_SOURCE/d' ${WRKSRC}/configure
54 ${MKDIR} ${WRKSRC}/include/linux
55 ${CP} ${FILESDIR}/byteswap.h ${WRKSRC}/include/
56 ${CP} ${FILESDIR}/endian.h ${WRKSRC}/include/
57 ${CP} ${FILESDIR}/malloc.h ${WRKSRC}/include/
58 ${CP} ${FILESDIR}/ioctl.h ${WRKSRC}/include/linux/
59 ${CP} ${FILESDIR}/types.h ${WRKSRC}/include/linux/
60 ${REINPLACE_CMD} -E -e 's/__s([[:digit:]]+)/int\1_t/g' \
61 -e 's/__kernel_long_t/long/g' \
62 ${WRKSRC}/include/sound/uapi/asound.h
64 [FILE:574:descriptions/desc.single]
65 The Advanced Linux Sound Architecture (ALSA) provides audio and MIDI
66 functionality to the Linux operating system. ALSA has the following
69 * Efficient support for all types of audio interfaces, from consumer
70 sound cards to professional multichannel audio interfaces.
71 * Fully modularized sound drivers.
72 * SMP and thread-safe design.
73 * User space library (alsa-lib) to simplify application programming
74 and provide higher level functionality.
75 * Support for the older Open Sound System (OSS) API, providing binary
76 compatibility for most OSS programs.
80 d8e853d8805574777bbe40937812ad1419c9ea7210e176f0def3e6ed255ab3ec 1030747 alsa-lib-1.2.2.tar.bz2
83 [FILE:2043:manifests/plist.single]
126 include/alsa/sound/uapi/
135 include/sys/asoundlib.h
139 libasound.so.%%SOMAJOR%%
140 libasound.so.%%SOVERSION%%
143 libatopology.so.%%SOMAJOR%%
144 libatopology.so.%%SOVERSION%%
148 share/aclocal/alsa.m4
230 [FILE:270:patches/patch-include_pcm.h]
231 --- include/pcm.h.orig 2020-02-19 09:35:39 UTC
238 +#define ESTRPIPE EPIPE
241 +#define EBADFD EBADF
249 [FILE:760:patches/patch-src_async.c]
250 $NetBSD: patch-bk,v 1.1 2008/12/25 13:18:00 hasso Exp $
252 --- src/async.c.orig 2020-02-19 09:35:39 UTC
254 @@ -54,6 +54,15 @@ static LIST_HEAD(snd_async_handlers);
256 static void snd_async_handler(int signo ATTRIBUTE_UNUSED, siginfo_t *siginfo, void *context ATTRIBUTE_UNUSED)
258 +#if defined(__DragonFly__) || defined(__FreeBSD__)
260 + struct list_head *i;
261 + list_for_each(i, &snd_async_handlers) {
262 + snd_async_handler_t *h = list_entry(i, snd_async_handler_t, glist);
269 //assert(siginfo->si_code == SI_SIGIO);
270 @@ -66,6 +75,7 @@ static void snd_async_handler(int signo
271 if (h->fd == fd && h->callback)
280 [FILE:528:patches/patch-src_pcm_pcm__direct.c]
281 --- src/pcm/pcm_direct.c.orig 2020-02-19 09:35:39 UTC
282 +++ src/pcm/pcm_direct.c
287 +#if !defined(__DragonFly__) && !defined(__OpenBSD__) \
288 + && !(defined(__FreeBSD__) && __FreeBSD__ < 12)
290 int val; /* Value for SETVAL */
291 struct semid_ds *buf; /* Buffer for IPC_STAT, IPC_SET */
292 unsigned short *array; /* Array for GETALL, SETALL */
294 struct seminfo *__buf; /* Buffer for IPC_INFO (Linux specific) */
303 [FILE:381:patches/patch-test_midifile.c]
304 --- test/midifile.c.orig 2020-02-19 09:35:39 UTC
314 /*void exit(), free();*/
315 @@ -328,7 +328,7 @@ readtrack () /* read a track chunk */
319 - Mf_toberead = MAXINT;
320 + Mf_toberead = INT_MAX;
326 [FILE:281:files/byteswap.h]
331 #define bswap_16(x) swap16(x)
332 #define bswap_32(x) swap32(x)
333 #define bswap_64(x) swap64(x)
335 #define bswap_16(x) bswap16(x)
336 #define bswap_32(x) bswap32(x)
337 #define bswap_64(x) bswap64(x)
339 #endif /* _BYTESWAP_H */
342 [FILE:84:files/endian.h]
345 #include <linux/types.h>
346 #endif /* _ENDIAN_H */
349 [FILE:98:files/ioctl.h]
350 #ifndef _LINUX_IOCTL_H
351 #define _LINUX_IOCTL_H
352 #include <sys/ioccom.h>
353 #endif /* _LINUX_IOCTL_H */
356 [FILE:79:files/malloc.h]
360 #endif /* _MALLOC_H */
363 [FILE:225:files/types.h]
364 #ifndef _LINUX_TYPES_H
365 #define _LINUX_TYPES_H
367 #include <sys/types.h>
370 #define __u8 u_int8_t
372 typedef pid_t __kernel_pid_t;
373 typedef off_t __kernel_off_t;
375 typedef uint64_t __u64;
376 #endif /* _LINUX_TYPES_H */