Path to this page:
Subject: CVS commit: pkgsrc/multimedia/mencoder
From: Thomas Klausner
Date: 2024-02-17 20:40:01
Message id: 20240217194001.61FEAF9F2@cvs.NetBSD.org
Log Message:
mencoder: fix build
Apply multimedia/mplayer's change:
revision 1.113
date: 2024-01-27 03:11:04 +0100; author: riastradh; state: Exp; lines: +16 \
-1; commitid: YiogfS4wLLyaV1WE;
multimedia/mplayer: Fix cross-build.
This removes our local patch to pass CFLAGS to compile the the
build-time tool codec-cfg. These CFLAGS don't work for cross-builds,
but all we really need is to make libavutil/avutil.h. So instead of
patching the makefile, just pass BUILDLINK_CPPFLAGS through into the
HOST_CC invocation that compiles it, in native builds.
And in cross builds, sleazily pass the include path under the
localbase in the destdir, so that we don't have to pull in ffmpeg5 as
a tool dependency -- libavutil/*.h seems to work here, and may
actually be correct because it pulls in libavutil/avconfig.h and
codec-cfg might want that to describe the target system rather than
the build system.
Files: