1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
7 SDESC[standard]= Opus playback library
8 HOMEPAGE= https://www.opus-codec.org/
9 CONTACT= Leonid_Bobrov[mazocomp@disroot.org]
12 SITES[main]= https://download.cdn.mozilla.net/pub/opus/
13 https://downloads.xiph.org/releases/opus/
14 https://archive.mozilla.org/pub/opus/
15 DISTFILE[1]= opusfile-0.11.tar.gz:main
17 SPKGS[standard]= complete
21 OPTIONS_AVAILABLE= none
22 OPTIONS_STANDARD= none
24 BUILDRUN_DEPENDS= libogg:primary:standard
27 USES= autoreconf gmake libtool pkgconfig ssl
29 LICENSE= BSD3CLAUSE:primary
30 LICENSE_FILE= BSD3CLAUSE:{{WRKSRC}}/COPYING
33 FPC_EQUIVALENT= audio/opusfile
37 INSTALL_TARGET= install-strip
38 INSTALL_REQ_TOOLCHAIN= yes
42 ${GREP} -l '@openssl@' ${WRKSRC}/opusurl.pc.in | \
43 ${XARGS} ${REINPLACE_CMD} -e 's| @openssl@||'
46 ${GREP} -l 'AC_SEARCH_LIBS(ftime' ${WRKSRC}/configure.ac | \
47 ${XARGS} ${REINPLACE_CMD} -e '/ftime/d'
48 ${GREP} -L 'src/ftime.c' ${WRKSRC}/Makefile.am | \
49 ${XARGS} ${REINPLACE_CMD} -e '/dist_doc_DATA/s/COPYING//' \
50 -e '/libopusurl_la_SOURCES/s|= \(src/http\.c\)|= src/ftime.c \1|'
51 ${CP} ${FILESDIR}/ftime.c ${WRKSRC}/src/
53 [FILE:164:descriptions/desc.primary]
54 The opusfile library provides seeking, decode, and playback
55 of Opus streams in the Ogg container (.opus files) including
56 over http(s) on posix and windows systems.
60 74ce9b6cf4da103133e7b5c95df810ceb7195471e1162ed57af415fabf5603bf 467420 opusfile-0.11.tar.gz
63 [FILE:243:manifests/plist.primary]
64 include/opus/opusfile.h
68 libopusfile.so.%%SOMAJOR%%
69 libopusfile.so.%%SOVERSION%%
72 libopusurl.so.%%SOMAJOR%%
73 libopusurl.so.%%SOVERSION%%
79 [FILE:2152:files/ftime.c]
81 * Copyright (c) 1994 Christopher G. Demetriou
82 * All rights reserved.
84 * Redistribution and use in source and binary forms, with or without
85 * modification, are permitted provided that the following conditions
87 * 1. Redistributions of source code must retain the above copyright
88 * notice, this list of conditions and the following disclaimer.
89 * 2. Redistributions in binary form must reproduce the above copyright
90 * notice, this list of conditions and the following disclaimer in the
91 * documentation and/or other materials provided with the distribution.
92 * 3. All advertising materials mentioning features or use of this software
93 * must display the following acknowledgement:
94 * This product includes software developed by Christopher G. Demetriou.
95 * 4. The name of the author may not be used to endorse or promote products
96 * derived from this software without specific prior written permission
98 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
99 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
100 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
101 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
102 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
103 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
104 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
105 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
106 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
107 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
111 static char rcsid[] = "$FreeBSD: head/audio/opusfile/files/ftime.c 341456 2014-01-27 21:21:51Z makc $";
112 #endif /* not lint */
114 #include <sys/types.h>
115 #include <sys/time.h>
116 #include <sys/timeb.h>
119 ftime(struct timeb *tbp)
124 if (gettimeofday(&t, &tz) < 0)
126 tbp->millitm = t.tv_usec / 1000;
127 tbp->time = t.tv_sec;
128 tbp->timezone = tz.tz_minuteswest;
129 tbp->dstflag = tz.tz_dsttime;
135 [FILE:534:freebsd/patch-configure.ac]
136 --- configure.ac.orig 2016-01-01 01:42:01 UTC
138 @@ -81,10 +81,12 @@ AM_COND_IF(OP_WIN32,
139 AS_IF([test "$enable_http" != "no"], [
141 AC_DEFINE([OP_ENABLE_HTTP], [1], [Enable HTTP support])
142 - PKG_CHECK_MODULES([URL_DEPS], [openssl])
144 AM_CONDITIONAL(OP_ENABLE_HTTP, [test "$enable_http" != "no"])
146 +AC_CHECK_LIB(ssl, SSL_read,
147 + [AC_CHECK_HEADERS(openssl/ssl.h, LIBS="$LIBS -lssl -lcrypto",,)],,
150 PKG_CHECK_MODULES([DEPS], [ogg >= 1.3 opus >= 1.0.1])