|
1 | | -# $NetBSD: Makefile.common,v 1.6 2024/10/21 12:16:51 nia Exp $ |
| 1 | +# $NetBSD: Makefile.common,v 1.15 2025/11/21 14:22:04 adam Exp $ |
2 | 2 | # used by multimedia/ffmpeg7/Makefile |
3 | 3 | # used by multimedia/ffplay7/Makefile |
4 | 4 |
|
5 | | -DISTNAME= ffmpeg-7.1 |
| 5 | +DISTNAME= ffmpeg-7.1.3 |
6 | 6 | CATEGORIES= multimedia |
7 | 7 | MASTER_SITES= https://www.ffmpeg.org/releases/ |
8 | 8 | EXTRACT_SUFX= .tar.xz |
@@ -34,8 +34,16 @@ CONFIGURE_ARGS+= --incdir=${PREFIX}/include/ffmpeg7 |
34 | 34 | CONFIGURE_ARGS+= --libdir=${PREFIX}/lib/ffmpeg7 |
35 | 35 | CONFIGURE_ARGS+= --shlibdir=${PREFIX}/lib/ffmpeg7 |
36 | 36 | LDFLAGS+= ${COMPILER_RPATH_FLAG}${PREFIX}/lib/ffmpeg7 |
| 37 | + |
| 38 | +.include "../../mk/compiler.mk" |
| 39 | + |
37 | 40 | # https://github.com/homebrew-ffmpeg/homebrew-ffmpeg/issues/140 |
| 41 | +.if ${CC_VERSION:Mclang-15.*} |
38 | 42 | LDFLAGS.Darwin+= -Wl,-ld_classic |
| 43 | +.endif |
| 44 | + |
| 45 | +# Reserve header space on macOS for later install_name_tool fixes |
| 46 | +LDFLAGS.Darwin+= -Wl,-headerpad_max_install_names |
39 | 47 |
|
40 | 48 | .if ${USE_CROSS_COMPILE:tl} == yes |
41 | 49 | CONFIGURE_ARGS+= --enable-cross-compile |
@@ -78,8 +86,6 @@ CONFIG_SHELL= ${TOOLS_PATH.bash} |
78 | 86 | # Let's not put garbage into /tmp |
79 | 87 | CONFIGURE_ENV+= TMPDIR=${WRKSRC}/tmp |
80 | 88 |
|
81 | | -.include "../../mk/compiler.mk" |
82 | | - |
83 | 89 | .if !empty(PKGSRC_COMPILER:Msunpro) |
84 | 90 | SUBST_CLASSES+= sunwspro |
85 | 91 | SUBST_MESSAGE.sunwspro= Fixing compiler options for SunStudio C compiler. |
|
0 commit comments