Ravenports generated: 22 Oct 2023 16:36
[ravenports.git] / bucket_8F / opusfile
1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
2
3 NAMEBASE=               opusfile
4 VERSION=                0.12
5 REVISION=               1
6 KEYWORDS=               audio
7 VARIANTS=               standard
8 SDESC[standard]=        Opus playback library
9 HOMEPAGE=               https://www.opus-codec.org/
10 CONTACT=                nobody
11
12 DOWNLOAD_GROUPS=        main
13 SITES[main]=            MOZILLA/opus
14                         https://downloads.xiph.org/releases/opus/
15 DISTFILE[1]=            opusfile-0.12.tar.gz:main
16 DF_INDEX=               1
17 SPKGS[standard]=        complete
18                         primary
19                         dev
20                         docs
21
22 OPTIONS_AVAILABLE=      none
23 OPTIONS_STANDARD=       none
24
25 BUILD_DEPENDS=          opus:dev:standard
26                         libogg:dev:standard
27 BUILDRUN_DEPENDS=       libogg:primary:standard
28                         opus:primary:standard
29 EXRUN[dev]=             opus:dev:standard
30                         libogg:dev:standard
31
32 USES=                   autoreconf cpe gmake libtool pkgconfig ssl
33
34 LICENSE=                BSD3CLAUSE:primary
35 LICENSE_FILE=           BSD3CLAUSE:{{WRKSRC}}/COPYING
36 LICENSE_SCHEME=         solo
37
38 CPE_VENDOR=             xiph
39 FPC_EQUIVALENT=         audio/opusfile
40
41 MUST_CONFIGURE=         gnu
42
43 INSTALL_TARGET=         install-strip
44 INSTALL_REQ_TOOLCHAIN=  yes
45 SOVERSION=              0.4.5
46
47 pre-patch-freebsd:
48         ${GREP} -l '@openssl@' ${WRKSRC}/opusurl.pc.in | \
49                 ${XARGS} ${REINPLACE_CMD} -e 's| @openssl@||'
50
51 post-patch-freebsd:
52         ${GREP} -l 'AC_SEARCH_LIBS(ftime' ${WRKSRC}/configure.ac | \
53                 ${XARGS} ${REINPLACE_CMD} -e '/ftime/d'
54         ${GREP} -L 'src/ftime.c' ${WRKSRC}/Makefile.am | \
55                 ${XARGS} ${REINPLACE_CMD} -e '/dist_doc_DATA/s/COPYING//' \
56                 -e '/libopusurl_la_SOURCES/s|= \(src/http\.c\)|= src/ftime.c \1|'
57         ${CP} ${FILESDIR}/ftime.c ${WRKSRC}/src/
58
59 [FILE:164:descriptions/desc.primary]
60 The opusfile library provides seeking, decode, and playback
61 of Opus streams in the Ogg container (.opus files) including
62 over http(s) on posix and windows systems.
63
64
65 [FILE:99:distinfo]
66 118d8601c12dd6a44f52423e68ca9083cc9f2bfe72da7a8c1acb22a80ae3550b       471354 opusfile-0.12.tar.gz
67
68
69 [FILE:119:manifests/plist.primary]
70 lib/
71  libopusfile.so.%%SOMAJOR%%
72  libopusfile.so.%%SOVERSION%%
73  libopusurl.so.%%SOMAJOR%%
74  libopusurl.so.%%SOVERSION%%
75
76
77 [FILE:129:manifests/plist.dev]
78 include/opus/opusfile.h
79 lib/
80  libopusfile.a
81  libopusfile.so
82  libopusurl.a
83  libopusurl.so
84 lib/pkgconfig/
85  opusfile.pc
86  opusurl.pc
87
88
89 [FILE:2152:files/ftime.c]
90 /*
91  * Copyright (c) 1994 Christopher G. Demetriou
92  * All rights reserved.
93  *
94  * Redistribution and use in source and binary forms, with or without
95  * modification, are permitted provided that the following conditions
96  * are met:
97  * 1. Redistributions of source code must retain the above copyright
98  *    notice, this list of conditions and the following disclaimer.
99  * 2. Redistributions in binary form must reproduce the above copyright
100  *    notice, this list of conditions and the following disclaimer in the
101  *    documentation and/or other materials provided with the distribution.
102  * 3. All advertising materials mentioning features or use of this software
103  *    must display the following acknowledgement:
104  *      This product includes software developed by Christopher G. Demetriou.
105  * 4. The name of the author may not be used to endorse or promote products
106  *    derived from this software without specific prior written permission
107  *
108  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
109  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
110  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
111  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
112  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
113  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
114  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
115  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
116  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
117  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
118  */
119
120 #ifndef lint
121 static char rcsid[] = "$FreeBSD: head/audio/opusfile/files/ftime.c 341456 2014-01-27 21:21:51Z makc $";
122 #endif /* not lint */
123
124 #include <sys/types.h>
125 #include <sys/time.h>
126 #include <sys/timeb.h>
127
128 int
129 ftime(struct timeb *tbp)
130 {
131         struct timezone tz;
132         struct timeval t;
133
134         if (gettimeofday(&t, &tz) < 0)
135                 return (-1);
136         tbp->millitm = t.tv_usec / 1000;
137         tbp->time = t.tv_sec;
138         tbp->timezone = tz.tz_minuteswest;
139         tbp->dstflag = tz.tz_dsttime;
140
141         return (0);
142 }
143
144
145 [FILE:554:freebsd/patch-configure.ac]
146 --- configure.ac.orig   2018-09-18 19:22:26 UTC
147 +++ configure.ac
148 @@ -96,10 +96,12 @@ variable ACLOCAL="aclocal -I/path/to/pkg
149  AS_IF([test "$enable_http" != "no"], [
150     openssl="openssl"
151     AC_DEFINE([OP_ENABLE_HTTP], [1], [Enable HTTP support])
152 -   PKG_CHECK_MODULES([URL_DEPS], [openssl])
153  ])
154  AM_CONDITIONAL(OP_ENABLE_HTTP, [test "$enable_http" != "no"])
155  AC_SUBST([openssl])
156 +AC_CHECK_LIB(ssl, SSL_read,
157 +       [AC_CHECK_HEADERS(openssl/ssl.h, LIBS="$LIBS -lssl -lcrypto",,)],,
158 +       -lcrypto -lssl)
159  
160  PKG_CHECK_MODULES([DEPS], [ogg >= 1.3 opus >= 1.0.1])
161  
162