ffmpeg: remove ancient NetBSD hacks that will bite us in the futurediff -r1.63 -r1.64 pkgsrc/multimedia/ffmpeg2/Makefile.common
(nia)
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | # $NetBSD: Makefile.common,v 1.63 2022/05/23 13:48:53 adam Exp $ | 1 | # $NetBSD: Makefile.common,v 1.64 2022/05/24 09:50:45 nia Exp $ | |
2 | # used by multimedia/ffmpeg2/Makefile | 2 | # used by multimedia/ffmpeg2/Makefile | |
3 | # used by multimedia/ffplay2/Makefile | 3 | # used by multimedia/ffplay2/Makefile | |
4 | 4 | |||
5 | DISTNAME= ffmpeg-2.8.20 | 5 | DISTNAME= ffmpeg-2.8.20 | |
6 | CATEGORIES= multimedia | 6 | CATEGORIES= multimedia | |
7 | MASTER_SITES= http://www.ffmpeg.org/releases/ | 7 | MASTER_SITES= http://www.ffmpeg.org/releases/ | |
8 | EXTRACT_SUFX= .tar.xz | 8 | EXTRACT_SUFX= .tar.xz | |
9 | 9 | |||
10 | LICENSE= gnu-lgpl-v2.1 AND gnu-gpl-v2 | 10 | LICENSE= gnu-lgpl-v2.1 AND gnu-gpl-v2 | |
11 | 11 | |||
12 | PATCHDIR= ${.CURDIR}/../../multimedia/ffmpeg2/patches | 12 | PATCHDIR= ${.CURDIR}/../../multimedia/ffmpeg2/patches | |
13 | 13 | |||
14 | USE_LANGUAGES= c99 | 14 | USE_LANGUAGES= c99 | |
@@ -38,31 +38,26 @@ PLIST_VARS+= opencl | @@ -38,31 +38,26 @@ PLIST_VARS+= opencl | |||
38 | 38 | |||
39 | .if !empty(MACHINE_PLATFORM:MDarwin-1[2-9].*-*) | 39 | .if !empty(MACHINE_PLATFORM:MDarwin-1[2-9].*-*) | |
40 | CONFIGURE_ARGS+= --enable-opencl | 40 | CONFIGURE_ARGS+= --enable-opencl | |
41 | PLIST.opencl= yes | 41 | PLIST.opencl= yes | |
42 | .endif | 42 | .endif | |
43 | 43 | |||
44 | .if ${OPSYS} == "SunOS" | 44 | .if ${OPSYS} == "SunOS" | |
45 | USE_TOOLS+= bash:build | 45 | USE_TOOLS+= bash:build | |
46 | CONFIG_SHELL= ${TOOLS_PATH.bash} | 46 | CONFIG_SHELL= ${TOOLS_PATH.bash} | |
47 | .endif | 47 | .endif | |
48 | 48 | |||
49 | CONFIGURE_ARGS+= --enable-runtime-cpudetect | 49 | CONFIGURE_ARGS+= --enable-runtime-cpudetect | |
50 | 50 | |||
51 | # No posix_memalign() in NetBSD 4.0 and earlier | |||
52 | .if !empty(MACHINE_PLATFORM:MNetBSD-[1-4].*-*) | |||
53 | CONFIGURE_ARGS+= --enable-memalign-hack | |||
54 | .endif | |||
55 | ||||
56 | # Let's not put garbage into /tmp | 51 | # Let's not put garbage into /tmp | |
57 | CONFIGURE_ENV+= TMPDIR=${WRKSRC}/tmp | 52 | CONFIGURE_ENV+= TMPDIR=${WRKSRC}/tmp | |
58 | 53 | |||
59 | .include "../../mk/compiler.mk" | 54 | .include "../../mk/compiler.mk" | |
60 | 55 | |||
61 | .if !empty(PKGSRC_COMPILER:Msunpro) | 56 | .if !empty(PKGSRC_COMPILER:Msunpro) | |
62 | SUBST_CLASSES+= sunwspro | 57 | SUBST_CLASSES+= sunwspro | |
63 | SUBST_MESSAGE.sunwspro= Fixing compiler options for SunStudio C compiler. | 58 | SUBST_MESSAGE.sunwspro= Fixing compiler options for SunStudio C compiler. | |
64 | SUBST_STAGE.sunwspro= post-configure | 59 | SUBST_STAGE.sunwspro= post-configure | |
65 | SUBST_FILES.sunwspro= config.mak | 60 | SUBST_FILES.sunwspro= config.mak | |
66 | SUBST_SED.sunwspro= -e "s/-O /-KPIC -DPIC /" | 61 | SUBST_SED.sunwspro= -e "s/-O /-KPIC -DPIC /" | |
67 | SUBST_SED.sunwspro+= -e "s/-O3/-xO2/g" | 62 | SUBST_SED.sunwspro+= -e "s/-O3/-xO2/g" | |
68 | SUBST_SED.sunwspro+= -e "s/-std=c99/-xc99=all/" | 63 | SUBST_SED.sunwspro+= -e "s/-std=c99/-xc99=all/" |
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | # $NetBSD: Makefile.common,v 1.39 2022/05/23 13:50:19 adam Exp $ | 1 | # $NetBSD: Makefile.common,v 1.40 2022/05/24 09:50:45 nia Exp $ | |
2 | # used by multimedia/ffmpeg3/Makefile | 2 | # used by multimedia/ffmpeg3/Makefile | |
3 | # used by multimedia/ffplay3/Makefile | 3 | # used by multimedia/ffplay3/Makefile | |
4 | 4 | |||
5 | DISTNAME= ffmpeg-3.4.11 | 5 | DISTNAME= ffmpeg-3.4.11 | |
6 | CATEGORIES= multimedia | 6 | CATEGORIES= multimedia | |
7 | MASTER_SITES= http://www.ffmpeg.org/releases/ | 7 | MASTER_SITES= http://www.ffmpeg.org/releases/ | |
8 | EXTRACT_SUFX= .tar.xz | 8 | EXTRACT_SUFX= .tar.xz | |
9 | 9 | |||
10 | LICENSE= gnu-lgpl-v2.1 AND gnu-gpl-v2 | 10 | LICENSE= gnu-lgpl-v2.1 AND gnu-gpl-v2 | |
11 | 11 | |||
12 | PATCHDIR= ${.CURDIR}/../../multimedia/ffmpeg3/patches | 12 | PATCHDIR= ${.CURDIR}/../../multimedia/ffmpeg3/patches | |
13 | 13 | |||
14 | USE_LANGUAGES= c99 | 14 | USE_LANGUAGES= c99 | |
@@ -38,31 +38,26 @@ PLIST_VARS+= opencl | @@ -38,31 +38,26 @@ PLIST_VARS+= opencl | |||
38 | 38 | |||
39 | .if !empty(MACHINE_PLATFORM:MDarwin-1[2-9].*-*) | 39 | .if !empty(MACHINE_PLATFORM:MDarwin-1[2-9].*-*) | |
40 | CONFIGURE_ARGS+= --enable-opencl | 40 | CONFIGURE_ARGS+= --enable-opencl | |
41 | PLIST.opencl= yes | 41 | PLIST.opencl= yes | |
42 | .endif | 42 | .endif | |
43 | 43 | |||
44 | .if ${OPSYS} == "SunOS" | 44 | .if ${OPSYS} == "SunOS" | |
45 | USE_TOOLS+= bash:build | 45 | USE_TOOLS+= bash:build | |
46 | CONFIG_SHELL= ${TOOLS_PATH.bash} | 46 | CONFIG_SHELL= ${TOOLS_PATH.bash} | |
47 | .endif | 47 | .endif | |
48 | 48 | |||
49 | CONFIGURE_ARGS+= --enable-runtime-cpudetect | 49 | CONFIGURE_ARGS+= --enable-runtime-cpudetect | |
50 | 50 | |||
51 | # No posix_memalign() in NetBSD 4.0 and earlier | |||
52 | .if !empty(MACHINE_PLATFORM:MNetBSD-[1-4].*-*) | |||
53 | CONFIGURE_ARGS+= --enable-memalign-hack | |||
54 | .endif | |||
55 | ||||
56 | # Let's not put garbage into /tmp | 51 | # Let's not put garbage into /tmp | |
57 | CONFIGURE_ENV+= TMPDIR=${WRKSRC}/tmp | 52 | CONFIGURE_ENV+= TMPDIR=${WRKSRC}/tmp | |
58 | 53 | |||
59 | .include "../../mk/compiler.mk" | 54 | .include "../../mk/compiler.mk" | |
60 | 55 | |||
61 | .if !empty(PKGSRC_COMPILER:Msunpro) | 56 | .if !empty(PKGSRC_COMPILER:Msunpro) | |
62 | SUBST_CLASSES+= sunwspro | 57 | SUBST_CLASSES+= sunwspro | |
63 | SUBST_MESSAGE.sunwspro= Fixing compiler options for SunStudio C compiler. | 58 | SUBST_MESSAGE.sunwspro= Fixing compiler options for SunStudio C compiler. | |
64 | SUBST_STAGE.sunwspro= post-configure | 59 | SUBST_STAGE.sunwspro= post-configure | |
65 | SUBST_FILES.sunwspro= config.mak | 60 | SUBST_FILES.sunwspro= config.mak | |
66 | SUBST_SED.sunwspro= -e "s/-O /-KPIC -DPIC /" | 61 | SUBST_SED.sunwspro= -e "s/-O /-KPIC -DPIC /" | |
67 | SUBST_SED.sunwspro+= -e "s/-O3/-xO2/g" | 62 | SUBST_SED.sunwspro+= -e "s/-O3/-xO2/g" | |
68 | SUBST_SED.sunwspro+= -e "s/-std=c99/-xc99=all/" | 63 | SUBST_SED.sunwspro+= -e "s/-std=c99/-xc99=all/" |
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | # $NetBSD: Makefile.common,v 1.28 2022/05/23 00:35:02 dholland Exp $ | 1 | # $NetBSD: Makefile.common,v 1.29 2022/05/24 09:50:46 nia Exp $ | |
2 | # used by multimedia/ffmpeg4/Makefile | 2 | # used by multimedia/ffmpeg4/Makefile | |
3 | # used by multimedia/ffplay4/Makefile | 3 | # used by multimedia/ffplay4/Makefile | |
4 | 4 | |||
5 | DISTNAME= ffmpeg-4.4.2 | 5 | DISTNAME= ffmpeg-4.4.2 | |
6 | CATEGORIES= multimedia | 6 | CATEGORIES= multimedia | |
7 | MASTER_SITES= http://www.ffmpeg.org/releases/ | 7 | MASTER_SITES= http://www.ffmpeg.org/releases/ | |
8 | EXTRACT_SUFX= .tar.xz | 8 | EXTRACT_SUFX= .tar.xz | |
9 | 9 | |||
10 | LICENSE= gnu-lgpl-v2.1 AND gnu-gpl-v2 ${ADDITIONAL_LICENSE} | 10 | LICENSE= gnu-lgpl-v2.1 AND gnu-gpl-v2 ${ADDITIONAL_LICENSE} | |
11 | 11 | |||
12 | PATCHDIR= ${.CURDIR}/../../multimedia/ffmpeg4/patches | 12 | PATCHDIR= ${.CURDIR}/../../multimedia/ffmpeg4/patches | |
13 | 13 | |||
14 | USE_LIBTOOL= yes | 14 | USE_LIBTOOL= yes | |
@@ -36,31 +36,26 @@ LDFLAGS+= ${COMPILER_RPATH_FLAG}${PREFI | @@ -36,31 +36,26 @@ LDFLAGS+= ${COMPILER_RPATH_FLAG}${PREFI | |||
36 | LDFLAGS.SunOS+= -lrt | 36 | LDFLAGS.SunOS+= -lrt | |
37 | 37 | |||
38 | .if !empty(MACHINE_PLATFORM:MDarwin-1[2-9].*-*) || !empty(MACHINE_PLATFORM:MDarwin-2*) | 38 | .if !empty(MACHINE_PLATFORM:MDarwin-1[2-9].*-*) || !empty(MACHINE_PLATFORM:MDarwin-2*) | |
39 | CONFIGURE_ARGS+= --enable-opencl | 39 | CONFIGURE_ARGS+= --enable-opencl | |
40 | .endif | 40 | .endif | |
41 | 41 | |||
42 | .if ${OPSYS} == "SunOS" | 42 | .if ${OPSYS} == "SunOS" | |
43 | USE_TOOLS+= bash:build | 43 | USE_TOOLS+= bash:build | |
44 | CONFIG_SHELL= ${TOOLS_PATH.bash} | 44 | CONFIG_SHELL= ${TOOLS_PATH.bash} | |
45 | .endif | 45 | .endif | |
46 | 46 | |||
47 | CONFIGURE_ARGS+= --enable-runtime-cpudetect | 47 | CONFIGURE_ARGS+= --enable-runtime-cpudetect | |
48 | 48 | |||
49 | # No posix_memalign() in NetBSD 4.0 and earlier | |||
50 | .if !empty(MACHINE_PLATFORM:MNetBSD-[1-4].*-*) | |||
51 | CONFIGURE_ARGS+= --enable-memalign-hack | |||
52 | .endif | |||
53 | ||||
54 | # Let's not put garbage into /tmp | 49 | # Let's not put garbage into /tmp | |
55 | CONFIGURE_ENV+= TMPDIR=${WRKSRC}/tmp | 50 | CONFIGURE_ENV+= TMPDIR=${WRKSRC}/tmp | |
56 | 51 | |||
57 | .include "../../mk/compiler.mk" | 52 | .include "../../mk/compiler.mk" | |
58 | 53 | |||
59 | .if !empty(PKGSRC_COMPILER:Msunpro) | 54 | .if !empty(PKGSRC_COMPILER:Msunpro) | |
60 | SUBST_CLASSES+= sunwspro | 55 | SUBST_CLASSES+= sunwspro | |
61 | SUBST_MESSAGE.sunwspro= Fixing compiler options for SunStudio C compiler. | 56 | SUBST_MESSAGE.sunwspro= Fixing compiler options for SunStudio C compiler. | |
62 | SUBST_STAGE.sunwspro= post-configure | 57 | SUBST_STAGE.sunwspro= post-configure | |
63 | SUBST_FILES.sunwspro= config.mak | 58 | SUBST_FILES.sunwspro= config.mak | |
64 | SUBST_SED.sunwspro= -e "s/-O /-KPIC -DPIC /" | 59 | SUBST_SED.sunwspro= -e "s/-O /-KPIC -DPIC /" | |
65 | SUBST_SED.sunwspro+= -e "s/-O3/-xO2/g" | 60 | SUBST_SED.sunwspro+= -e "s/-O3/-xO2/g" | |
66 | SUBST_SED.sunwspro+= -e "s/-std=c99/-xc99=all/" | 61 | SUBST_SED.sunwspro+= -e "s/-std=c99/-xc99=all/" |