head	1.1;
access;
symbols;
locks; strict;
comment	@# @;


1.1
date	2026.08.12.03.43.35;	author ryoon;	state Exp;
branches;
next	;
commitid	2m59YBR1kiEvBiRG;


desc
@@


1.1
log
@multimedia/ffmpeg9: import ffmpeg9-9.0

FFmpeg is a complete, cross-platform solution to record, convert
and stream audio and video.  It includes libavcodec - the leading
audio/video codec library.

This package contains major version 9.
@
text
@# $NetBSD: Makefile,v 1.13 2026/07/13 04:36:19 wiz Exp $

PKGNAME=	${DISTNAME:S/ffmpeg/ffmpeg9/}
MAINTAINER=	pkgsrc-users@@NetBSD.org
HOMEPAGE=	https://ffmpeg.org/
COMMENT=	Decoding, encoding and streaming software (v9.x)

CONFIGURE_ARGS+=	--enable-avfilter
CONFIGURE_ARGS+=	--disable-ffplay

INSTALLATION_DIRS=	lib/ffmpeg9 share/doc/ffmpeg9

.include "../../mk/bsd.prefs.mk"

.if ${_USE_RPATH:tl} != "no"
CONFIGURE_ARGS+=	--enable-rpath
.endif

PRINT_PLIST_AWK+=	/html/ { $$0 = "$${PLIST.doc}" $$0 }
PRINT_PLIST_AWK+=	/css/ { $$0 = "$${PLIST.doc}" $$0 }

TEST_TARGET=	check

post-install:
	${INSTALL_DATA} ${WRKSRC}/doc/*.txt \
		${DESTDIR}${PREFIX}/share/doc/ffmpeg9

.include "options.mk"

# disable asm on i386 to avoid text relocations
.if ${MACHINE_ARCH} == "i386"
CONFIGURE_ARGS+=	--disable-asm
.endif

# configure script uses uname -m to detect arch, as opposed to uname -p in
# GNU/configure. Unable to detect NetBSD/macppc hosts correctly.
CONFIGURE_ARGS+=	--arch=${MACHINE_ARCH}

.include "../../multimedia/ffmpeg9/Makefile.common"
.include "../../mk/bsd.pkg.mk"
@
