Received: by mail.netbsd.org (Postfix, from userid 605) id 1594D84D47; Sat, 17 Feb 2024 19:40:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=netbsd.org; s=20240131; t=1708198803; bh=SzqwyW/LIocdiS+cpXauong5LeMGmIiWylgcU51nFjo=; h=Date:From:Subject:To:Reply-To:List-Id:List-Unsubscribe; b=r5lB6ckLYnKvF3ZuwB4PVEZlKqP5Ylbm3vnr3LeEGJVDa+QIXnd9yMH27oTE1Vxmp DhHBlzp933+U7Pnoh4IZJLKUDE1HNh3ny8n/7l+/XkwbjEkkOwjJ35WQo3RqLGYzsP Xo3bkysKwiCVqIAfHyHd6E+luCDA7DahXPebFsNY= Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 0453B84D28 for ; Sat, 17 Feb 2024 19:40:02 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Authentication-Results: mail.netbsd.org (amavisd-new); dkim=pass (1024-bit key) header.d=netbsd.org Received: from mail.netbsd.org ([127.0.0.1]) by localhost (mail.netbsd.org [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id 93cX48YGkhnE for ; Sat, 17 Feb 2024 19:40:01 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.NetBSD.org [IPv6:2001:470:a085:999:28c:faff:fe03:5984]) by mail.netbsd.org (Postfix) with ESMTP id 6A60284D08 for ; Sat, 17 Feb 2024 19:40:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=netbsd.org; s=20240131; t=1708198801; bh=SzqwyW/LIocdiS+cpXauong5LeMGmIiWylgcU51nFjo=; h=Date:From:Subject:To:Reply-To; b=HIRigTazN+AVt00LFQA3DZ2c+H/wHiPf8q9JxMA8AMRGNVzZOrzhwbBxerP4SNRhJ AEiFqRJWZnLXKHMHVCY89FNbXdt7nNOtgwDS+Iux6CplL3VGwj4AbSKNsMjw5dAUR0 R9+FcOsXjmq3IdoiWkX8jkEKwQh5sc1TzMQywYXU= Received: by cvs.NetBSD.org (Postfix, from userid 500) id 61FEAF9F2; Sat, 17 Feb 2024 19:40:01 +0000 (UTC) Content-Transfer-Encoding: 7bit Content-Type: multipart/mixed; boundary="_----------=_170819880183870" MIME-Version: 1.0 Date: Sat, 17 Feb 2024 19:40:01 +0000 From: "Thomas Klausner" Subject: CVS commit: pkgsrc/multimedia/mencoder To: pkgsrc-changes@NetBSD.org Reply-To: wiz@netbsd.org X-Mailer: log_accum Message-Id: <20240217194001.61FEAF9F2@cvs.NetBSD.org> Sender: pkgsrc-changes-owner@NetBSD.org List-Id: Precedence: bulk List-Unsubscribe: This is a multi-part message in MIME format. --_----------=_170819880183870 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Module Name: pkgsrc Committed By: wiz Date: Sat Feb 17 19:40:01 UTC 2024 Modified Files: pkgsrc/multimedia/mencoder: Makefile 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. To generate a diff of this commit: cvs rdiff -u -r1.78 -r1.79 pkgsrc/multimedia/mencoder/Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. --_----------=_170819880183870 Content-Disposition: inline Content-Length: 1356 Content-Transfer-Encoding: binary Content-Type: text/x-diff; charset=us-ascii Modified files: Index: pkgsrc/multimedia/mencoder/Makefile diff -u pkgsrc/multimedia/mencoder/Makefile:1.78 pkgsrc/multimedia/mencoder/Makefile:1.79 --- pkgsrc/multimedia/mencoder/Makefile:1.78 Mon Jan 22 13:17:03 2024 +++ pkgsrc/multimedia/mencoder/Makefile Sat Feb 17 19:40:01 2024 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.78 2024/01/22 13:17:03 ryoon Exp $ +# $NetBSD: Makefile,v 1.79 2024/02/17 19:40:01 wiz Exp $ PKGNAME= mencoder-${MPLAYER_VERSION} PKGREVISION= 3 @@ -9,6 +9,20 @@ USE_TOOLS+= pkg-config .include "../../multimedia/mplayer-share/Makefile.common" +.include "../../mk/bsd.prefs.mk" + +.if ${USE_CROSS_COMPILE:tl} == "yes" +CONFIGURE_ARGS+= --target=${MACHINE_ARCH:Q}-${OPSYS:Q} +# Reaching into the destdir with a -I flag to NATIVE_CC is kinda +# sleazy, but this will probably work and it saves the trouble of +# pulling in a gigantic tool dependency. +CONFIGURE_ARGS+= --host-cc=${NATIVE_CC:Q}\ -I${_CROSS_DESTDIR:Q}${PREFIX:Q}/include/ffmpeg5 +#TOOL_DEPENDS+= ffmpeg5>=0:../../multimedia/ffmpeg5 +#CONFIGURE_ARGS+= --host-cc=${NATIVE_CC:Q}\ -I${TOOLBASE:Q}/include/ffmpeg5 +.else +CONFIGURE_ARGS+= --host-cc=${CC:Q}\ ${BUILDLINK_CPPFLAGS:Q} +.endif + # Fix build under Mac OS X, please see here for details: # http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/2009-May/061515.html LDFLAGS.Darwin+= -framework Carbon --_----------=_170819880183870--