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