View | Details | Raw Unified | Return to bug 210124 | Differences between
and this patch

Collapse All | Expand All

(-)b/audio/sndio/Makefile (+34 lines)
Added Link Here
1
# Created by: Tobias Kortkamp <t@tobik.me>
2
# $FreeBSD$
3
4
PORTNAME=	sndio
5
PORTVERSION=	1.1.0
6
CATEGORIES=	audio
7
MASTER_SITES=	http://www.sndio.org/
8
9
MAINTAINER=	t@tobik.me
10
COMMENT=	Small audio and MIDI framework from the OpenBSD project
11
12
LICENSE=	ISCL
13
14
HAS_CONFIGURE=	yes
15
CONFIGURE_ARGS=	--prefix=${PREFIX} --mandir=${PREFIX}/man
16
17
USE_LDCONFIG=	yes
18
USE_RC_SUBR=	sndiod
19
20
USERS=	_sndio
21
GROUPS=	_sndio
22
23
# Parallel build leads to problems, but sndio is very quick to compile
24
# as is so not worth fixing
25
MAKE_JOBS_UNSAFE=	yes
26
27
post-install:
28
	@${STRIP_CMD} \
29
		${STAGEDIR}${PREFIX}/lib/libsndio.so.6.1 \
30
		${STAGEDIR}${PREFIX}/bin/sndiod \
31
		${STAGEDIR}${PREFIX}/bin/aucat \
32
		${STAGEDIR}${PREFIX}/bin/midicat
33
34
.include <bsd.port.mk>
(-)b/audio/sndio/distinfo (+3 lines)
Added Link Here
1
TIMESTAMP = 1465315037
2
SHA256 (sndio-1.1.0.tar.gz) = fcd7f845ff70f38c2898d737450b8aa3e1bb0afb9d147e8429ef22c0b2c2db57
3
SIZE (sndio-1.1.0.tar.gz) = 121018
(-)b/audio/sndio/files/patch-configure (+15 lines)
Added Link Here
1
--- configure.orig	2015-12-15 05:28:04 UTC
2
+++ configure
3
@@ -71,6 +71,12 @@ case `uname` in
4
 		defs='-DHAVE_ARC4RANDOM -DHAVE_ISSETUGID \\\
5
 		-DHAVE_STRLCAT -DHAVE_STRLCPY -DHAVE_STRTONUM'
6
 		;;
7
+	FreeBSD)
8
+		user=_sndio
9
+		so="$so libsndio.so"
10
+		defs='-DHAVE_ARC4RANDOM -DHAVE_ISSETUGID \\\
11
+		-DHAVE_STRLCAT -DHAVE_STRLCPY -DHAVE_STRTONUM'
12
+		;;
13
 esac
14
 
15
 # shell word separator (none)
(-)b/audio/sndio/files/sndiod.in (+32 lines)
Added Link Here
1
#!/bin/sh
2
#
3
# $FreeBSD$
4
#
5
# PROVIDE: sndiod
6
# REQUIRE: NETWORKING sysctl
7
# BEFORE:  DAEMON
8
# KEYWORD: shutdown
9
10
# By default sndiod will use the audio device from
11
# hw.snd.default_unit.  You can override this by setting sndiod_flags.
12
#
13
# To connect to a remote sndiod use e.g.
14
# sndiod_flags="-f snd@remotehost/0"
15
#
16
# To use /dev/dsp5
17
# sndiod_flags="-f rsnd/5"
18
19
. /etc/rc.subr
20
21
name=sndiod
22
rcvar=sndiod_enable
23
24
load_rc_config $name
25
26
_sndiod_devnum=$($SYSCTL hw.snd.default_unit)
27
: ${sndiod_enable="NO"}
28
: ${sndiod_flags="-f rsnd/$_sndiod_devnum"}
29
30
command="%%PREFIX%%/bin/sndiod"
31
32
run_rc_command "$1"
(-)b/audio/sndio/pkg-descr (+11 lines)
Added Link Here
1
Sndio is a small audio and MIDI framework part of the OpenBSD
2
project.
3
4
It provides an lightweight audio & MIDI server and a fully documented
5
user-space API to access either the server or directly the hardware in
6
a uniform way.  Sndio is designed to work for desktop applications,
7
but pays special attention to synchronization mechanisms and
8
reliability required by music applications.  Reliability through
9
simplicity are part of the project goals.
10
11
WWW: http://www.sndio.org/
(-)b/audio/sndio/pkg-message (+22 lines)
Added Link Here
1
sndio has no hardware support on FreeBSD currently, so this port is
2
only useful if you have a sndio server running on a Linux or OpenBSD
3
host.
4
5
If you want local clients to auto-play to your remote server, enable
6
sndiod with:
7
8
    sysrc sndiod_enable=YES sndiod_flags="-f snd@remotehost/0"
9
    service sndiod start
10
11
Alternatively set the AUDIODEVICE environment variable so clients know
12
where to stream to
13
14
    export AUDIODEVICE=snd@remotehost/0
15
16
There is no direct sndio support in the official FreeBSD ports tree
17
yet.  The fork at https://github.com/t6/freebsd-port-sndio contains
18
patches that enable sndio support in important ports.
19
20
audio/pulseaudio-module-sndio is a PulseAudio module that allows you
21
to play to your sndio server.  This is useful for ports that have
22
PulseAudio support but no direct sndio support.
(-)b/audio/sndio/pkg-plist (+35 lines)
Added Link Here
1
bin/aucat
2
bin/midicat
3
bin/sndiod
4
include/sndio.h
5
lib/libsndio.so
6
lib/libsndio.so.6.1
7
man/man1/aucat.1.gz
8
man/man1/midicat.1.gz
9
man/man3/mio_close.3.gz
10
man/man3/mio_eof.3.gz
11
man/man3/mio_nfds.3.gz
12
man/man3/mio_open.3.gz
13
man/man3/mio_pollfd.3.gz
14
man/man3/mio_read.3.gz
15
man/man3/mio_revents.3.gz
16
man/man3/mio_write.3.gz
17
man/man3/sio_close.3.gz
18
man/man3/sio_eof.3.gz
19
man/man3/sio_getcap.3.gz
20
man/man3/sio_getpar.3.gz
21
man/man3/sio_initpar.3.gz
22
man/man3/sio_nfds.3.gz
23
man/man3/sio_onmove.3.gz
24
man/man3/sio_onvol.3.gz
25
man/man3/sio_open.3.gz
26
man/man3/sio_pollfd.3.gz
27
man/man3/sio_read.3.gz
28
man/man3/sio_revents.3.gz
29
man/man3/sio_setpar.3.gz
30
man/man3/sio_setvol.3.gz
31
man/man3/sio_start.3.gz
32
man/man3/sio_stop.3.gz
33
man/man3/sio_write.3.gz
34
man/man7/sndio.7.gz
35
man/man8/sndiod.8.gz
(-)b/GIDs (+1 lines)
Lines 234-239 aox:*:666: Link Here
234
riak:*:667:
234
riak:*:667:
235
bnetd:*:700:
235
bnetd:*:700:
236
fastnetmon:*:701:
236
fastnetmon:*:701:
237
_sndio:*:702:
237
bopm:*:717:
238
bopm:*:717:
238
openxpki:*:777:
239
openxpki:*:777:
239
zetacoin:*:780:
240
zetacoin:*:780:
(-)b/UIDs (+1 lines)
Lines 242-247 riakcs:*:668:667::0:0:Riak CS user:/usr/local/lib/riak-cs:/bin/sh Link Here
242
stanchion:*:669:667::0:0:Stanchion user:/usr/local/lib/stanchion:/bin/sh
242
stanchion:*:669:667::0:0:Stanchion user:/usr/local/lib/stanchion:/bin/sh
243
bnetd:*:700:700::0:0:Bnetd user:/nonexistent:/usr/sbin/nologin
243
bnetd:*:700:700::0:0:Bnetd user:/nonexistent:/usr/sbin/nologin
244
fastnetmon:*:701:701::0:0:FastNetMon user:/nonexistent:/usr/sbin/nologin
244
fastnetmon:*:701:701::0:0:FastNetMon user:/nonexistent:/usr/sbin/nologin
245
_sndio:*:702:702::0:0:sndio privsep:/var/empty:/usr/sbin/nologin
245
bopm:*:717:717::0:0:Blitzed Open Proxy Monitor:/nonexistent:/bin/sh
246
bopm:*:717:717::0:0:Blitzed Open Proxy Monitor:/nonexistent:/bin/sh
246
_dnscrypt-wrapper:*:718:65534::0:0:dnscrypt-wrapper user:/var/empty:/usr/sbin/nologin
247
_dnscrypt-wrapper:*:718:65534::0:0:dnscrypt-wrapper user:/var/empty:/usr/sbin/nologin
247
openxpki:*:777:777::0:0:OpenXPKI Owner:/nonexistent:/usr/sbin/nologin
248
openxpki:*:777:777::0:0:OpenXPKI Owner:/nonexistent:/usr/sbin/nologin

Return to bug 210124