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