multimedia/ffmpeg4: fix USE_LANGUAGES
multimedia/ffmpeg4 does not need -std=gnu99, only ffplay4 does. Since mk/compiler.mk is protected by a multiple-inclusion guard, any later assignment to USE_LANGUAGES has no effect except being confusing. The additional languages show up in "bmake show-var" but at the point of evaluation, they had not been set yet. This can be detected by several pkgsrc tools: pkglint says: WARN: ../../multimedia/ffmpeg4/Makefile.common:14: Modifying USE_LANGUAGES after including ../../mk/compiler.mk has no effect. Adding a manual check to mk/compiler.mk results in: bmake[1]: "mk/compiler.mk" line 273: warning: For multimedia/ffmpeg4, only languages "c" are used, the others in "c99" were defined too late. Making the variable USE_LANGUAGES read-only after including mk/compiler.mk results in: bmake[1]: "multimedia/ffmpeg4/Makefile.common" line 14: Read-only USE_LANGUAGES cannot be set (The latter two checks are not yet in the official pkgsrc tree.)
This commit is contained in:
parent
a376838f3a
commit
71b4b7e8bc
2 changed files with 4 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile.common,v 1.18 2020/05/22 07:59:29 adam Exp $
|
||||
# $NetBSD: Makefile.common,v 1.19 2020/05/31 07:42:13 rillig Exp $
|
||||
# used by multimedia/ffmpeg4/Makefile
|
||||
# used by multimedia/ffplay4/Makefile
|
||||
|
||||
|
@ -11,7 +11,6 @@ LICENSE= gnu-lgpl-v2.1 AND gnu-gpl-v2 ${ADDITIONAL_LICENSE}
|
|||
|
||||
PATCHDIR= ${.CURDIR}/../../multimedia/ffmpeg4/patches
|
||||
|
||||
USE_LANGUAGES= c99
|
||||
USE_LIBTOOL= yes
|
||||
USE_TOOLS+= gmake pod2man perl pkg-config
|
||||
HAS_CONFIGURE= yes
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile,v 1.8 2020/05/22 07:59:29 adam Exp $
|
||||
# $NetBSD: Makefile,v 1.9 2020/05/31 07:42:13 rillig Exp $
|
||||
|
||||
PKGNAME= ${DISTNAME:S/ffmpeg/ffplay4/}
|
||||
MAINTAINER= pkgsrc-users@NetBSD.org
|
||||
|
@ -7,6 +7,8 @@ COMMENT= Simple SDL frontend for FFmpeg
|
|||
|
||||
DISTINFO_FILE= ${.CURDIR}/../ffmpeg4/distinfo
|
||||
|
||||
USE_LANGUAGES= c99
|
||||
|
||||
CONFIGURE_ARGS+= --disable-ffmpeg
|
||||
CONFIGURE_ARGS+= --disable-ffprobe
|
||||
CONFIGURE_ARGS+= --disable-encoders
|
||||
|
|
Loading…
Reference in a new issue