freebsd-ports/multimedia/libtheora/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

37 lines
986 B
Makefile

# Created by: Koop Mast <kwm@rainbow-runner.nl>
PORTNAME= libtheora
PORTVERSION= 1.1.1
PORTREVISION= 7
CATEGORIES= multimedia
MASTER_SITES= https://downloads.xiph.org/releases/theora/ \
https://ftp.osuosl.org/pub/xiph/releases/theora/
MAINTAINER= multimedia@FreeBSD.org
COMMENT= Theora video codec for the Ogg multimedia streaming system
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libogg.so:audio/libogg \
libvorbis.so:audio/libvorbis
USES= libtool localbase pathfix tar:bzip2
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --disable-sdltest \
--disable-examples
INSTALL_TARGET= install-strip
TEST_TARGET= check
USE_LDCONFIG= yes
.include <bsd.port.options.mk>
post-patch:
@${REINPLACE_CMD} -e 's|doc||g' ${WRKSRC}/Makefile.in
@${REINPLACE_CMD} -e 's, x86_64), x86_64|amd64),; \
/ac_lib/ s,compat,,' ${WRKSRC}/configure
.if ${ARCH}=="amd64"
@${REINPLACE_CMD} -e 's|#define OC_X86_ASM|#undef OC_X86_ASM|' ${WRKSRC}/configure
.endif
.include <bsd.port.mk>