1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
7 SDESC[standard]= Small audio and MIDI framework from OpenBSD
8 HOMEPAGE= http://www.sndio.org/
12 SITES[main]= http://www.sndio.org/
13 DISTFILE[1]= sndio-1.9.0.tar.gz:main
15 SPKGS[standard]= single
17 OPTIONS_AVAILABLE= none
18 OPTIONS_STANDARD= none
20 BROKEN[sunos]= Needs err.h which is not available on Sol10
22 BR_DEPS[linux]= libbsd:single:standard alsa-lib:single:standard
26 USERGROUP_SPKG= single
29 LICENSE_FILE= ISCL:{{WRKDIR}}/ISC_LICENSE
30 LICENSE_AWK= ISCL:"^\#ifndef"
31 LICENSE_SOURCE= ISCL:{{WRKSRC}}/libsndio/sndio.h
34 FPC_EQUIVALENT= audio/sndio
37 CONFIGURE_ARGS= --prefix={{PREFIX}}
38 --mandir={{MANPREFIX}}/man
43 RC_SUBR= sndiod:single
45 VAR_OPSYS[linux]= CONFIGURE_ARGS= --with-libbsd
48 # Make sure sndiod can be started inside jails as root
49 ${REINPLACE_CMD} 's|err(1, "setpriority")|warn("setpriority")|' \
50 ${WRKSRC}/sndiod/sndiod.c
53 ${REINPLACE_CMD} -e 's@\(FreeBSD\))@\1|DragonFly)@g' \
58 ${STAGEDIR}${PREFIX}/lib/libsndio.${LIBEXT} \
59 ${STAGEDIR}${PREFIX}/bin/sndioctl \
60 ${STAGEDIR}${PREFIX}/bin/sndiod \
61 ${STAGEDIR}${PREFIX}/bin/aucat \
62 ${STAGEDIR}${PREFIX}/bin/midicat
64 [FILE:449:descriptions/desc.single]
65 Sndio is a small audio and MIDI framework part of the OpenBSD project.
67 It provides an lightweight audio & MIDI server and a fully documented
68 user-space API to access either the server or directly the hardware in
69 a uniform way. Sndio is designed to work for desktop applications,
70 but pays special attention to synchronization mechanisms and
71 reliability required by music applications. Reliability through
72 simplicity are part of the project goals.
76 f30826fc9c07e369d3924d5fcedf6a0a53c0df4ae1f5ab50fe9cf280540f699a 157354 sndio-1.9.0.tar.gz
79 [FILE:823:manifests/plist.single]
88 libsndio.so.%%SOVERSION%%
89 lib/pkgconfig/sndio.pc
129 share/man/man7/sndio.7.gz
130 share/man/man8/sndiod.8.gz
133 [FILE:249:patches/patch-aucat_defs.h]
134 --- aucat/defs.h.orig 2022-07-16 09:38:24 UTC
141 +#define BIG_ENDIAN 4321
142 +#define LITTLE_ENDIAN 1234
143 +#define BYTE_ORDER LITTLE_ENDIAN
151 [FILE:1228:patches/patch-configure]
152 --- configure.orig 2022-07-16 09:38:24 UTC
154 @@ -64,9 +64,9 @@ case `uname` in
159 - so_link="libsndio.so libsndio.so.\${MAJ} libsndio.so.\${MAJ}.0"
160 - so_ldflags="-Wl,-soname=libsndio.so.\${MAJ}"
162 + so_link="libsndio.so"
163 + so_ldflags="-Wl,-soname=libsndio.so.\${MAJ}.\${MIN}"
164 defs='-D_GNU_SOURCE -DHAVE_SOCK_CLOEXEC -DHAVE_CLOCK_GETTIME'
167 @@ -74,6 +74,7 @@ case `uname` in
170 so_link="libsndio.so"
171 + so_ldflags="-Wl,-soname=libsndio.so.\${MAJ}.\${MIN}"
172 defs='-DHAVE_ARC4RANDOM -DHAVE_GETPEEREID -DHAVE_ISSETUGID \\\
173 -DHAVE_STRLCAT -DHAVE_STRLCPY \\\
174 -DHAVE_SOCK_CLOEXEC -DHAVE_CLOCK_GETTIME'
175 @@ -96,6 +97,17 @@ case `uname` in
176 -DHAVE_STRLCAT -DHAVE_STRLCPY -DHAVE_STRTONUM \\\
177 -DHAVE_SOCK_CLOEXEC -DHAVE_CLOCK_GETTIME'
180 + ldadd="-lrt -lsocket"
181 + sun=no # doesn't compile
184 + so_ldflags="-Wl,-soname,libsndio.so.\${MAJ}.\${MIN}"
185 + so_link="libsndio.so"
186 + defs='-DHAVE_ISSETUGID -DO_CLOEXEC=0 \\\
187 + -DHAVE_STRLCAT -DHAVE_STRLCPY \\\
188 + -DSOCK_CLOEXEC=0 -DHAVE_CLOCK_GETTIME'
192 so="libsndio.\${MAJ}.\${MIN}.dylib"
195 [FILE:1039:patches/patch-libsndio_aucat.c]
196 --- libsndio/aucat.c.orig 2022-07-16 09:38:24 UTC
199 #define DEV_RANDOM "/dev/urandom"
204 +static const char *getprogname (void) {
205 + static const char *progname;
207 + if (progname == NULL) {
208 + const char *e = getexecname();
210 + /* Have to make a copy since getexecname can return a readonly
211 + string, but basename expects to be able to modify its arg. */
212 + char *n = strdup(e);
214 + progname = basename(n);
223 random_bytes(unsigned char *buf, int len)
225 @@ -472,7 +492,11 @@ parsestr(const char *str, char *rstr, un
227 _aucat_open(struct aucat *hdl, const char *str, unsigned int mode)
230 + const char * __progname = getprogname();
232 extern char *__progname;
235 char host[NI_MAXHOST], opt[AMSG_OPTMAX];
239 [FILE:261:patches/patch-sndiod_defs.h]
240 --- sndiod/defs.h.orig 2022-07-16 09:38:24 UTC
247 +#define BIG_ENDIAN 4321
248 +#define LITTLE_ENDIAN 1234
249 +#define BYTE_ORDER LITTLE_ENDIAN
257 [FILE:465:files/sndiod.in]
260 # $FreeBSD: head/audio/sndio/files/sndiod.in 427071 2016-11-25 01:11:41Z cpm $
263 # REQUIRE: NETWORKING sysctl
274 : ${sndiod_dev="rsnd/$($SYSCTL -n hw.snd.default_unit)"}
275 : ${sndiod_enable="NO"}
276 : ${sndiod_flags="-f ${sndiod_dev} -c 0:7 -j off -s default -m mon -s monitor"}
278 command="%%PREFIX%%/bin/sndiod"