Ravenports generated: 15 Jan 2020 17:51
[ravenports.git] / bucket_8F / opusfile
1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
2
3 NAMEBASE=               opusfile
4 VERSION=                0.11
5 KEYWORDS=               audio
6 VARIANTS=               standard
7 SDESC[standard]=        Opus playback library
8 HOMEPAGE=               https://www.opus-codec.org/
9 CONTACT=                Leonid_Bobrov[goleo@disroot.org]
10
11 DOWNLOAD_GROUPS=        main
12 SITES[main]=            MOZILLA/opus
13                         https://downloads.xiph.org/releases/opus/
14 DISTFILE[1]=            opusfile-0.11.tar.gz:main
15 DF_INDEX=               1
16 SPKGS[standard]=        complete
17                         primary
18                         docs
19
20 OPTIONS_AVAILABLE=      none
21 OPTIONS_STANDARD=       none
22
23 BUILDRUN_DEPENDS=       libogg:primary:standard
24                         opus:single:standard
25
26 USES=                   autoreconf gmake libtool pkgconfig ssl
27
28 LICENSE=                BSD3CLAUSE:primary
29 LICENSE_FILE=           BSD3CLAUSE:{{WRKSRC}}/COPYING
30 LICENSE_SCHEME=         solo
31
32 FPC_EQUIVALENT=         audio/opusfile
33
34 MUST_CONFIGURE=         gnu
35
36 INSTALL_TARGET=         install-strip
37 INSTALL_REQ_TOOLCHAIN=  yes
38 SOVERSION=              0.4.4
39
40 pre-patch-freebsd:
41         ${GREP} -l '@openssl@' ${WRKSRC}/opusurl.pc.in | \
42                 ${XARGS} ${REINPLACE_CMD} -e 's| @openssl@||'
43
44 post-patch-freebsd:
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/
51
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.
56
57
58 [FILE:99:distinfo]
59 74ce9b6cf4da103133e7b5c95df810ceb7195471e1162ed57af415fabf5603bf       467420 opusfile-0.11.tar.gz
60
61
62 [FILE:243:manifests/plist.primary]
63 include/opus/opusfile.h
64 lib/
65  libopusfile.a
66  libopusfile.so
67  libopusfile.so.%%SOMAJOR%%
68  libopusfile.so.%%SOVERSION%%
69  libopusurl.a
70  libopusurl.so
71  libopusurl.so.%%SOMAJOR%%
72  libopusurl.so.%%SOVERSION%%
73 lib/pkgconfig/
74  opusfile.pc
75  opusurl.pc
76
77
78 [FILE:2152:files/ftime.c]
79 /*
80  * Copyright (c) 1994 Christopher G. Demetriou
81  * All rights reserved.
82  *
83  * Redistribution and use in source and binary forms, with or without
84  * modification, are permitted provided that the following conditions
85  * are met:
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
96  *
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.
107  */
108
109 #ifndef lint
110 static char rcsid[] = "$FreeBSD: head/audio/opusfile/files/ftime.c 341456 2014-01-27 21:21:51Z makc $";
111 #endif /* not lint */
112
113 #include <sys/types.h>
114 #include <sys/time.h>
115 #include <sys/timeb.h>
116
117 int
118 ftime(struct timeb *tbp)
119 {
120         struct timezone tz;
121         struct timeval t;
122
123         if (gettimeofday(&t, &tz) < 0)
124                 return (-1);
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;
129
130         return (0);
131 }
132
133
134 [FILE:534:freebsd/patch-configure.ac]
135 --- configure.ac.orig   2016-01-01 01:42:01 UTC
136 +++ configure.ac
137 @@ -81,10 +81,12 @@ AM_COND_IF(OP_WIN32,
138  AS_IF([test "$enable_http" != "no"], [
139     openssl="openssl"
140     AC_DEFINE([OP_ENABLE_HTTP], [1], [Enable HTTP support])
141 -   PKG_CHECK_MODULES([URL_DEPS], [openssl])
142  ])
143  AM_CONDITIONAL(OP_ENABLE_HTTP, [test "$enable_http" != "no"])
144  AC_SUBST([openssl])
145 +AC_CHECK_LIB(ssl, SSL_read,
146 +       [AC_CHECK_HEADERS(openssl/ssl.h, LIBS="$LIBS -lssl -lcrypto",,)],,
147 +       -lcrypto -lssl)
148  
149  PKG_CHECK_MODULES([DEPS], [ogg >= 1.3 opus >= 1.0.1])
150  
151