1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-18 03:46:03 +00:00
freebsd-ports/audio/opusfile/Makefile
Christian Weisgerber dcf17d14a7 */*: Add a backup master site to all Xiph.org ports
The downloads.xiph.org master site requires TLS1.3, which is not
supported by FreeBSD 11's OpenSSL and fetch(1).  Add ftp.osuosl.org
as a backup to all Xiph.org ports.

PR:		256515
Reported by:	Daniel Engberg
2021-06-10 15:48:47 +02:00

50 lines
1.2 KiB
Makefile

PORTNAME= opusfile
PORTVERSION= 0.12
CATEGORIES= audio
MASTER_SITES= https://downloads.xiph.org/releases/opus/ \
https://ftp.osuosl.org/pub/xiph/releases/opus/
MAINTAINER= liangtai.s16@gmail.com
COMMENT= Opus playback library
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libogg.so:audio/libogg \
libopus.so:audio/opus
USES= autoreconf libtool pathfix pkgconfig ssl
USE_LDCONFIG= yes
GNU_CONFIGURE= yes
MAKE_JOBS_UNSAFE= yes
PATHFIX_MAKEFILEIN= Makefile.am
PORTDOCS= AUTHORS README.md
OPTIONS_DEFINE= DOXYGEN DOCS
OPTIONS_DEFAULT= # empty
DOXYGEN_CONFIGURE_ENABLE= doc
DOXYGEN_BUILD_DEPENDS= doxygen:devel/doxygen
CONFIGURE_ARGS+= --disable-examples
INSTALL_TARGET= install-strip
.include <bsd.port.pre.mk>
.if ${SSL_DEFAULT} == base
EXTRA_PATCHES+= ${FILESDIR}/extra-patch-configure.ac
pre-patch:
@${GREP} -l '@openssl@' ${WRKSRC}/opusurl.pc.in | \
${XARGS} ${REINPLACE_CMD} -e 's| @openssl@||'
.endif
post-install-DOXYGEN-on:
@${RM} ${WRKDIR}/PLIST.doc ; \
${FIND} ${STAGEDIR}${DOCSDIR}/html -type f | \
${SED} 's|${STAGEDIR}${PREFIX}/||' \
>> ${WRKDIR}/PLIST.doc ; \
(cd ${WRKDIR} ; ${SED} -i -e '/PLIST.doc/ r PLIST.doc' ${TMPPLIST})
.include <bsd.port.post.mk>