1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
8 SDESC[standard]= Opus playback library
9 HOMEPAGE= https://www.opus-codec.org/
13 SITES[main]= MOZILLA/opus
14 https://downloads.xiph.org/releases/opus/
15 DISTFILE[1]= opusfile-0.12.tar.gz:main
17 SPKGS[standard]= complete
22 OPTIONS_AVAILABLE= none
23 OPTIONS_STANDARD= none
25 BUILD_DEPENDS= opus:dev:standard
27 BUILDRUN_DEPENDS= libogg:primary:standard
29 EXRUN[dev]= opus:dev:standard
32 USES= autoreconf cpe gmake libtool pkgconfig ssl
34 LICENSE= BSD3CLAUSE:primary
35 LICENSE_FILE= BSD3CLAUSE:{{WRKSRC}}/COPYING
39 FPC_EQUIVALENT= audio/opusfile
43 INSTALL_TARGET= install-strip
44 INSTALL_REQ_TOOLCHAIN= yes
48 ${GREP} -l '@openssl@' ${WRKSRC}/opusurl.pc.in | \
49 ${XARGS} ${REINPLACE_CMD} -e 's| @openssl@||'
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/
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.
66 118d8601c12dd6a44f52423e68ca9083cc9f2bfe72da7a8c1acb22a80ae3550b 471354 opusfile-0.12.tar.gz
69 [FILE:119:manifests/plist.primary]
71 libopusfile.so.%%SOMAJOR%%
72 libopusfile.so.%%SOVERSION%%
73 libopusurl.so.%%SOMAJOR%%
74 libopusurl.so.%%SOVERSION%%
77 [FILE:129:manifests/plist.dev]
78 include/opus/opusfile.h
89 [FILE:2152:files/ftime.c]
91 * Copyright (c) 1994 Christopher G. Demetriou
92 * All rights reserved.
94 * Redistribution and use in source and binary forms, with or without
95 * modification, are permitted provided that the following conditions
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
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.
121 static char rcsid[] = "$FreeBSD: head/audio/opusfile/files/ftime.c 341456 2014-01-27 21:21:51Z makc $";
122 #endif /* not lint */
124 #include <sys/types.h>
125 #include <sys/time.h>
126 #include <sys/timeb.h>
129 ftime(struct timeb *tbp)
134 if (gettimeofday(&t, &tz) < 0)
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;
145 [FILE:554:freebsd/patch-configure.ac]
146 --- configure.ac.orig 2018-09-18 19:22:26 UTC
148 @@ -96,10 +96,12 @@ variable ACLOCAL="aclocal -I/path/to/pkg
149 AS_IF([test "$enable_http" != "no"], [
151 AC_DEFINE([OP_ENABLE_HTTP], [1], [Enable HTTP support])
152 - PKG_CHECK_MODULES([URL_DEPS], [openssl])
154 AM_CONDITIONAL(OP_ENABLE_HTTP, [test "$enable_http" != "no"])
156 +AC_CHECK_LIB(ssl, SSL_read,
157 + [AC_CHECK_HEADERS(openssl/ssl.h, LIBS="$LIBS -lssl -lcrypto",,)],,
160 PKG_CHECK_MODULES([DEPS], [ogg >= 1.3 opus >= 1.0.1])