Fri Apr 26 15:42:53 2024 UTC (31d)
libopus: try fixing build on arm

The build there seems to run a perl script, so replace the perl
interpreter and tool-depend on perl.


(wiz)
diff -r1.19 -r1.20 pkgsrc/audio/libopus/Makefile

cvs diff -r1.19 -r1.20 pkgsrc/audio/libopus/Makefile (expand / switch to context diff)
--- pkgsrc/audio/libopus/Makefile 2024/04/13 05:31:29 1.19
+++ pkgsrc/audio/libopus/Makefile 2024/04/26 15:42:53 1.20
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.19 2024/04/13 05:31:29 adam Exp $
+# $NetBSD: Makefile,v 1.20 2024/04/26 15:42:53 wiz Exp $
 
 DISTNAME=	opus-1.5.2
 PKGNAME=	lib${DISTNAME}
@@ -10,6 +10,8 @@
 COMMENT=	Totally open, royalty-free, highly versatile audio codec library
 LICENSE=	modified-bsd
 
+TOOL_DEPENDS+=	perl-[0-9]*:../../lang/perl5
+
 SUPERSEDES=	opus<=1.0.2
 
 USE_LIBTOOL=	yes
@@ -18,6 +20,8 @@
 TEST_TARGET=	check
 
 PKGCONFIG_OVERRIDE+=	opus.pc.in
+
+REPLACE_PERL+=	celt/arm/arm2gnu.pl
 
 .include "options.mk"