Files
ports/multimedia/libtheora/Makefile
T
Robert Clausecker f365fd9b0f multimedia/libtheora: fix build on armv7
- switch to gmake, which is needed for arm-specific pattern rules
 - depend on Perl, which is needed to run an assembly-mangling script
 - depend on GNU as, which is needed for pre-UAL style ARM menmonics
 - switch to gitlab tarball as the official tarball is missing some
   important files
 - turn static REINPLACE_CMD into patch files were possible
 - make sure "make check" actually runs test suite
 - add the usual elf_aux_info() polyfill
 - enable X86 assembly code (builds fine, passes test suite)

MFH:		2025Q4
Approved by:	mmel (multimedia)
Reported by:	mmel
2026-01-11 16:27:47 +01:00

40 lines
930 B
Makefile

PORTNAME= libtheora
DISTVERSIONPREFIX= v
DISTVERSION= 1.2.0
PORTREVISION= 1
CATEGORIES= multimedia
MAINTAINER= multimedia@FreeBSD.org
COMMENT= Theora video codec for the Ogg multimedia streaming system
WWW= https://www.theora.org/
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/COPYING
BUILD_DEPENDS_armv7= as:devel/binutils
BUILD_DEPENDS= ${BUILD_DEPENDS_${ARCH}}
LIB_DEPENDS= libogg.so:audio/libogg
USES_armv7= perl5 shebangfix
USES= autoreconf gmake libtool localbase pathfix ${USES_${ARCH}}
USE_GITLAB= yes
GL_SITE= https://gitlab.xiph.org
GL_ACCOUNT= xiph
GL_PROJECT= theora
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --disable-sdltest \
--disable-examples
INSTALL_TARGET= install-strip
TEST_TARGET= check
USE_LDCONFIG= yes
USE_PERL5= build
SHEBANG_FILES= lib/arm/arm2gnu.pl
# clang's own assembler doesn't like the armv7 assembly used here
CFLAGS_armv7= -fno-integrated-as
CLFAGS+= ${CFLAGS_${ARCH}}
.include <bsd.port.mk>