# Buildsheet autogenerated by ravenadm tool -- Do not edit. NAMEBASE= opusfile VERSION= 0.12 REVISION= 1 KEYWORDS= audio VARIANTS= standard SDESC[standard]= Opus playback library HOMEPAGE= https://www.opus-codec.org/ CONTACT= nobody DOWNLOAD_GROUPS= main SITES[main]= MOZILLA/opus https://downloads.xiph.org/releases/opus/ DISTFILE[1]= opusfile-0.12.tar.gz:main DF_INDEX= 1 SPKGS[standard]= complete primary dev docs OPTIONS_AVAILABLE= none OPTIONS_STANDARD= none BUILD_DEPENDS= opus:dev:standard libogg:dev:standard BUILDRUN_DEPENDS= libogg:primary:standard opus:primary:standard EXRUN[dev]= opus:dev:standard libogg:dev:standard USES= autoreconf cpe gmake libtool pkgconfig ssl LICENSE= BSD3CLAUSE:primary LICENSE_FILE= BSD3CLAUSE:{{WRKSRC}}/COPYING LICENSE_SCHEME= solo CPE_VENDOR= xiph FPC_EQUIVALENT= audio/opusfile MUST_CONFIGURE= gnu INSTALL_TARGET= install-strip INSTALL_REQ_TOOLCHAIN= yes SOVERSION= 0.4.5 pre-patch-freebsd: ${GREP} -l '@openssl@' ${WRKSRC}/opusurl.pc.in | \ ${XARGS} ${REINPLACE_CMD} -e 's| @openssl@||' post-patch-freebsd: ${GREP} -l 'AC_SEARCH_LIBS(ftime' ${WRKSRC}/configure.ac | \ ${XARGS} ${REINPLACE_CMD} -e '/ftime/d' ${GREP} -L 'src/ftime.c' ${WRKSRC}/Makefile.am | \ ${XARGS} ${REINPLACE_CMD} -e '/dist_doc_DATA/s/COPYING//' \ -e '/libopusurl_la_SOURCES/s|= \(src/http\.c\)|= src/ftime.c \1|' ${CP} ${FILESDIR}/ftime.c ${WRKSRC}/src/ [FILE:164:descriptions/desc.primary] The opusfile library provides seeking, decode, and playback of Opus streams in the Ogg container (.opus files) including over http(s) on posix and windows systems. [FILE:99:distinfo] 118d8601c12dd6a44f52423e68ca9083cc9f2bfe72da7a8c1acb22a80ae3550b 471354 opusfile-0.12.tar.gz [FILE:119:manifests/plist.primary] lib/ libopusfile.so.%%SOMAJOR%% libopusfile.so.%%SOVERSION%% libopusurl.so.%%SOMAJOR%% libopusurl.so.%%SOVERSION%% [FILE:129:manifests/plist.dev] include/opus/opusfile.h lib/ libopusfile.a libopusfile.so libopusurl.a libopusurl.so lib/pkgconfig/ opusfile.pc opusurl.pc [FILE:2152:files/ftime.c] /* * Copyright (c) 1994 Christopher G. Demetriou * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * 3. All advertising materials mentioning features or use of this software * must display the following acknowledgement: * This product includes software developed by Christopher G. Demetriou. * 4. The name of the author may not be used to endorse or promote products * derived from this software without specific prior written permission * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #ifndef lint static char rcsid[] = "$FreeBSD: head/audio/opusfile/files/ftime.c 341456 2014-01-27 21:21:51Z makc $"; #endif /* not lint */ #include #include #include int ftime(struct timeb *tbp) { struct timezone tz; struct timeval t; if (gettimeofday(&t, &tz) < 0) return (-1); tbp->millitm = t.tv_usec / 1000; tbp->time = t.tv_sec; tbp->timezone = tz.tz_minuteswest; tbp->dstflag = tz.tz_dsttime; return (0); } [FILE:554:freebsd/patch-configure.ac] --- configure.ac.orig 2018-09-18 19:22:26 UTC +++ configure.ac @@ -96,10 +96,12 @@ variable ACLOCAL="aclocal -I/path/to/pkg AS_IF([test "$enable_http" != "no"], [ openssl="openssl" AC_DEFINE([OP_ENABLE_HTTP], [1], [Enable HTTP support]) - PKG_CHECK_MODULES([URL_DEPS], [openssl]) ]) AM_CONDITIONAL(OP_ENABLE_HTTP, [test "$enable_http" != "no"]) AC_SUBST([openssl]) +AC_CHECK_LIB(ssl, SSL_read, + [AC_CHECK_HEADERS(openssl/ssl.h, LIBS="$LIBS -lssl -lcrypto",,)],, + -lcrypto -lssl) PKG_CHECK_MODULES([DEPS], [ogg >= 1.3 opus >= 1.0.1])