Ravenports generated: 15 Mar 2019 09:48
[ravenports.git] / bucket_0D / sndio
1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
2
3 NAMEBASE=               sndio
4 VERSION=                1.5.0
5 KEYWORDS=               audio
6 VARIANTS=               standard
7 SDESC[standard]=        Small audio and MIDI framework from OpenBSD
8 HOMEPAGE=               http://www.sndio.org/
9 CONTACT=                nobody
10
11 DOWNLOAD_GROUPS=        main
12 SITES[main]=            http://www.sndio.org/
13 DISTFILE[1]=            sndio-1.5.0.tar.gz:main
14 DF_INDEX=               1
15 SPKGS[standard]=        single
16
17 OPTIONS_AVAILABLE=      none
18 OPTIONS_STANDARD=       none
19
20 BROKEN[linux]=          Requires ALSA headers and libraries first
21
22 USERS=                  _sndio
23 GROUPS=                 _sndio
24 USERGROUP_SPKG=         single
25
26 LICENSE=                ISCL:single
27 LICENSE_FILE=           ISCL:{{WRKDIR}}/ISC_LICENSE
28 LICENSE_AWK=            ISCL:"^\#ifndef"
29 LICENSE_SOURCE=         ISCL:{{WRKSRC}}/libsndio/sndio.h
30 LICENSE_SCHEME=         solo
31
32 FPC_EQUIVALENT=         audio/sndio
33
34 MUST_CONFIGURE=         yes
35 CONFIGURE_ARGS=         --prefix={{PREFIX}}
36                         --mandir={{MANPREFIX}}/man
37
38 SINGLE_JOB=             yes
39
40 RC_SUBR=                sndiod:single
41
42 post-patch:
43         # Make sure sndiod can be started inside jails as root
44         ${REINPLACE_CMD} 's|err(1, "setpriority")|warn("setpriority")|' \
45                 ${WRKSRC}/sndiod/sndiod.c
46
47 post-patch-dragonfly:
48         ${REINPLACE_CMD} -e 's@\(FreeBSD\))@\1|DragonFly)@g' \
49                 ${WRKSRC}/configure
50
51 post-install:
52         ${STRIP_CMD} \
53                 ${STAGEDIR}${PREFIX}/lib/libsndio.${LIBEXT} \
54                 ${STAGEDIR}${PREFIX}/bin/sndiod \
55                 ${STAGEDIR}${PREFIX}/bin/aucat \
56                 ${STAGEDIR}${PREFIX}/bin/midicat
57
58 [FILE:449:descriptions/desc.single]
59 Sndio is a small audio and MIDI framework part of the OpenBSD project.
60
61 It provides an lightweight audio & MIDI server and a fully documented
62 user-space API to access either the server or directly the hardware in
63 a uniform way.  Sndio is designed to work for desktop applications,
64 but pays special attention to synchronization mechanisms and
65 reliability required by music applications.  Reliability through
66 simplicity are part of the project goals.
67
68
69 [FILE:97:distinfo]
70 12c70044749ad9cb7eaeb26c936816aa6b314fe4be71ef479d12272e4c5ad253       125661 sndio-1.5.0.tar.gz
71
72
73 [FILE:593:manifests/plist.single]
74 bin/
75  aucat
76  midicat
77  sndiod
78 include/sndio.h
79 lib/
80  libsndio.so
81  libsndio.so.6.1
82 share/man/man1/
83  aucat.1.gz
84  midicat.1.gz
85 share/man/man3/
86  mio_close.3.gz
87  mio_eof.3.gz
88  mio_nfds.3.gz
89  mio_open.3.gz
90  mio_pollfd.3.gz
91  mio_read.3.gz
92  mio_revents.3.gz
93  mio_write.3.gz
94  sio_close.3.gz
95  sio_eof.3.gz
96  sio_getcap.3.gz
97  sio_getpar.3.gz
98  sio_initpar.3.gz
99  sio_nfds.3.gz
100  sio_onmove.3.gz
101  sio_onvol.3.gz
102  sio_open.3.gz
103  sio_pollfd.3.gz
104  sio_read.3.gz
105  sio_revents.3.gz
106  sio_setpar.3.gz
107  sio_setvol.3.gz
108  sio_start.3.gz
109  sio_stop.3.gz
110  sio_write.3.gz
111 share/man/man7/sndio.7.gz
112 share/man/man8/sndiod.8.gz
113
114
115 [FILE:222:patches/patch-libsndio_Makefile.in]
116 --- libsndio/Makefile.in.orig   2018-01-13 12:32:33 UTC
117 +++ libsndio/Makefile.in
118 @@ -42,8 +42,8 @@ MAN7 = sndio.7
119  #
120  # libraries to build and install
121  #
122 -MAJ = 7
123 -MIN = 0
124 +MAJ = 6
125 +MIN = 1
126  SO = @so@
127  SO_LINK = @so_link@
128  
129
130
131 [FILE:465:files/sndiod.in]
132 #!/bin/sh
133 #
134 # $FreeBSD: head/audio/sndio/files/sndiod.in 427071 2016-11-25 01:11:41Z cpm $
135 #
136 # PROVIDE: sndiod
137 # REQUIRE: NETWORKING sysctl
138 # BEFORE:  DAEMON
139 # KEYWORD: shutdown
140
141 . /etc/rc.subr
142
143 name=sndiod
144 rcvar=sndiod_enable
145
146 load_rc_config $name
147
148 : ${sndiod_dev="rsnd/$($SYSCTL -n hw.snd.default_unit)"}
149 : ${sndiod_enable="NO"}
150 : ${sndiod_flags="-f ${sndiod_dev} -c 0:7 -j off -s default -m mon -s monitor"}
151
152 command="%%PREFIX%%/bin/sndiod"
153
154 run_rc_command "$1"
155