View | Details | Raw Unified | Return to bug 282188 | Differences between
and this patch

Collapse All | Expand All

(-)b/multimedia/ffmpeg3/Makefile (+84 lines)
Added Link Here
1
PORTNAME=	ffmpeg
2
PORTVERSION=	3.0.2
3
CATEGORIES=	multimedia audio net
4
MASTER_SITES=	https://ffmpeg.org/releases/
5
PKGNAMESUFFIX=	3
6
7
PATCH_SITES=	https://github.com/hrydgard/ppsspp-ffmpeg/commit/
8
PATCHFILES=	9c4f84d9d9ad147f4a44cff582829647a0c65420.patch:-p1
9
10
MAINTAINER=	kreinholz@gmail.com
11
COMMENT=	Realtime audio/video encoder/converter and streaming server (legacy 3.* series)
12
WWW=		https://ffmpeg.org/
13
14
LICENSE=	GPLv2+ LGPL21+
15
LICENSE_COMB=	multi
16
17
ONLY_FOR_ARCHS=	aarch64 amd64
18
19
USES=		compiler:c11 cpe gmake localbase:ldflags perl5 pkgconfig \
20
		shebangfix tar:xz
21
USE_PERL5=	build
22
SHEBANG_FILES=	doc/texi2pod.pl
23
USE_LDCONFIG=	yes
24
25
.ifdef PKGNAMESUFFIX
26
PORTSCOUT=	limit:^3\.
27
PREFIX=		${LOCALBASE}/${PKGBASE} # avoid conflict with the default
28
.endif
29
30
HAS_CONFIGURE=	yes
31
CONFIGURE_LOG=	ffbuild/config.log
32
33
LDFLAGS_aarch64=-Wl,-z,notext
34
LDFLAGS+=       -Wl,--undefined-version
35
36
INSTALL_TARGET=	install-libs install-headers
37
38
NOPRECIOUSMAKEVARS=	yes
39
MAKE_ENV+=	V=1
40
41
.if defined(WITH_DEBUG)
42
CONFIGURE_ARGS=	--disable-stripping
43
.else
44
CONFIGURE_ARGS=	--disable-debug
45
.endif
46
47
CONFIGURE_ARGS+=--prefix="${PREFIX}" \
48
		--pkgconfigdir="${PREFIX}/libdata/pkgconfig" \
49
		--disable-static \
50
		--enable-shared \
51
		--enable-pic \
52
		--enable-gpl \
53
		--disable-avresample \
54
		--cc="${CC}" \
55
		--cxx="${CXX}" \
56
		--disable-avdevice \
57
		--disable-filters \
58
		--disable-programs \
59
		--disable-network \
60
		--disable-avfilter \
61
		--disable-postproc \
62
		--disable-doc \
63
		--disable-ffplay \
64
		--disable-ffprobe \
65
		--disable-ffserver \
66
		--disable-sdl \
67
		--disable-asm \
68
		--disable-iconv \
69
		--disable-vaapi
70
71
OPTIONS_DEFINE=		LTO OPTIMIZED_CFLAGS RTCPU
72
OPTIONS_DEFAULT=	LTO OPTIMIZED_CFLAGS
73
OPTIONS_DEFAULT_amd64=	RTCPU
74
OPTIONS_EXCLUDE_aarch64=RTCPU
75
76
RTCPU_DESC=		Detect CPU capabilities at runtime
77
78
LTO_CONFIGURE_ENABLE=	lto
79
80
OPTIMIZED_CFLAGS_CONFIGURE_ENABLE=	optimizations
81
82
RTCPU_CONFIGURE_ENABLE=	runtime-cpudetect
83
84
.include <bsd.port.mk>
(-)b/multimedia/ffmpeg3/distinfo (+5 lines)
Added Link Here
1
TIMESTAMP = 1730140299
2
SHA256 (ffmpeg-3.0.2.tar.xz) = 82943cc7b0c4d14b612404de0dd7b24cd8ca3511d51e4fd3ae36b2d71bb95223
3
SIZE (ffmpeg-3.0.2.tar.xz) = 7461808
4
SHA256 (9c4f84d9d9ad147f4a44cff582829647a0c65420.patch) = 120263d3b5a97e98ed9968d3a69da1e6e0770b870f4d0e5cb30e64a8036bdf60
5
SIZE (9c4f84d9d9ad147f4a44cff582829647a0c65420.patch) = 1135
(-)b/multimedia/ffmpeg3/files/patch-configure (+17 lines)
Added Link Here
1
--- configure.orig	2024-05-15 16:58:49 UTC
2
+++ configure
3
@@ -3024,13 +3024,7 @@ host_os=$target_os_default
4
 target_os_default=$(tolower $(uname -s))
5
 host_os=$target_os_default
6
 
7
-# machine
8
-if test "$target_os_default" = aix; then
9
-    arch_default=$(uname -p)
10
-    strip_default="strip -X32_64"
11
-else
12
-    arch_default=$(uname -m)
13
-fi
14
+arch_default=$(uname -p)
15
 cpu="generic"
16
 intrinsics="none"
17
 
(-)b/multimedia/ffmpeg3/files/patch-libavformat_rtsp.c (+44 lines)
Added Link Here
1
--- libavformat/rtsp.c.orig	2024-05-15 16:46:06 UTC
2
+++ libavformat/rtsp.c
3
@@ -1607,7 +1607,12 @@ int ff_rtsp_make_setup_request(AVFormatContext *s, con
4
             }
5
             if (ttl > 0)
6
                 snprintf(optbuf, sizeof(optbuf), "?ttl=%d", ttl);
7
-            getnameinfo((struct sockaddr*) &addr, sizeof(addr),
8
+            getnameinfo((struct sockaddr*) &addr,
9
+#if HAVE_STRUCT_SOCKADDR_SA_LEN
10
+			((struct sockaddr*) &addr)->sa_len,
11
+#else
12
+			sizeof(addr),
13
+#endif
14
                         namebuf, sizeof(namebuf), NULL, 0, NI_NUMERICHOST);
15
             ff_url_join(url, sizeof(url), "rtp", NULL, namebuf,
16
                         port, "%s", optbuf);
17
@@ -1815,8 +1820,13 @@ redirect:
18
         goto fail;
19
     }
20
     if (!getpeername(tcp_fd, (struct sockaddr*) &peer, &peer_len)) {
21
-        getnameinfo((struct sockaddr*) &peer, peer_len, host, sizeof(host),
22
-                    NULL, 0, NI_NUMERICHOST);
23
+        getnameinfo((struct sockaddr*) &peer,
24
+#if HAVE_STRUCT_SOCKADDR_SA_LEN
25
+		    ((struct sockaddr*) &peer)->sa_len,
26
+#else
27
+		    peer_len,
28
+#endif
29
+                    host, sizeof(host), NULL, 0, NI_NUMERICHOST);
30
     }
31
 
32
     /* request options supported by the server; this also detects server
33
@@ -2295,7 +2305,11 @@ static int sdp_read_header(AVFormatContext *s)
34
             AVDictionary *opts = map_to_opts(rt);
35
 
36
             err = getnameinfo((struct sockaddr*) &rtsp_st->sdp_ip,
37
+#if HAVE_STRUCT_SOCKADDR_SA_LEN
38
+			      ((struct sockaddr*) &rtsp_st->sdp_ip)->sa_len,
39
+#else
40
                               sizeof(rtsp_st->sdp_ip),
41
+#endif
42
                               namebuf, sizeof(namebuf), NULL, 0, NI_NUMERICHOST);
43
             if (err) {
44
                 av_log(s, AV_LOG_ERROR, "getnameinfo: %s\n", gai_strerror(err));
(-)b/multimedia/ffmpeg3/files/patch-libavutil_common.h (+13 lines)
Added Link Here
1
--- libavutil/common.h.orig	2024-05-15 16:55:52 UTC
2
+++ libavutil/common.h
3
@@ -50,6 +50,10 @@
4
 #   define AV_NE(be, le) (le)
5
 #endif
6
 
7
+#ifndef		UINT64_C
8
+#define		UINT64_C(c)	(c ## UL)
9
+#endif
10
+
11
 //rounded division & shift
12
 #define RSHIFT(a,b) ((a) > 0 ? ((a) + ((1<<(b))>>1))>>(b) : ((a) + ((1<<(b))>>1)-1)>>(b))
13
 /* assume b>0 */
(-)b/multimedia/ffmpeg3/override.mk (+8 lines)
Added Link Here
1
FF_SUFFIX=	3
2
3
BUILD_DEPENDS:=	${BUILD_DEPENDS:S/ffmpeg/&${FF_SUFFIX}/g}
4
LIB_DEPENDS:=	${LIB_DEPENDS:S/ffmpeg$/&${FF_SUFFIX}/}
5
6
USES+=		localbase # -isystem
7
CONFIGURE_ENV+=	PKG_CONFIG_PATH="${LOCALBASE}/ffmpeg${FF_SUFFIX}/libdata/pkgconfig"
8
MAKE_ENV+=	PKG_CONFIG_PATH="${LOCALBASE}/ffmpeg${FF_SUFFIX}/libdata/pkgconfig"
(-)b/multimedia/ffmpeg3/pkg-descr (+3 lines)
Added Link Here
1
FFmpeg is a complete, cross-platform solution to record, convert and stream
2
audio and video. It includes libavcodec - the leading audio/video codec
3
library. This is a custom build of FFmpeg-3.0.2, a legacy version released in 2016, intended for use with PPSSPP.
(-)b/multimedia/ffmpeg3/pkg-plist (+110 lines)
Added Link Here
1
include/libavcodec/avcodec.h
2
include/libavcodec/avdct.h
3
include/libavcodec/avfft.h
4
include/libavcodec/d3d11va.h
5
include/libavcodec/dirac.h
6
include/libavcodec/dv_profile.h
7
include/libavcodec/dxva2.h
8
include/libavcodec/qsv.h
9
include/libavcodec/vaapi.h
10
include/libavcodec/vda.h
11
include/libavcodec/vdpau.h
12
include/libavcodec/version.h
13
include/libavcodec/videotoolbox.h
14
include/libavcodec/vorbis_parser.h
15
include/libavcodec/xvmc.h
16
include/libavformat/avformat.h
17
include/libavformat/avio.h
18
include/libavformat/version.h
19
include/libavutil/adler32.h
20
include/libavutil/aes.h
21
include/libavutil/aes_ctr.h
22
include/libavutil/attributes.h
23
include/libavutil/audio_fifo.h
24
include/libavutil/avassert.h
25
include/libavutil/avconfig.h
26
include/libavutil/avstring.h
27
include/libavutil/avutil.h
28
include/libavutil/base64.h
29
include/libavutil/blowfish.h
30
include/libavutil/bprint.h
31
include/libavutil/bswap.h
32
include/libavutil/buffer.h
33
include/libavutil/camellia.h
34
include/libavutil/cast5.h
35
include/libavutil/channel_layout.h
36
include/libavutil/common.h
37
include/libavutil/cpu.h
38
include/libavutil/crc.h
39
include/libavutil/des.h
40
include/libavutil/dict.h
41
include/libavutil/display.h
42
include/libavutil/downmix_info.h
43
include/libavutil/error.h
44
include/libavutil/eval.h
45
include/libavutil/ffversion.h
46
include/libavutil/fifo.h
47
include/libavutil/file.h
48
include/libavutil/frame.h
49
include/libavutil/hash.h
50
include/libavutil/hmac.h
51
include/libavutil/imgutils.h
52
include/libavutil/intfloat.h
53
include/libavutil/intreadwrite.h
54
include/libavutil/lfg.h
55
include/libavutil/log.h
56
include/libavutil/lzo.h
57
include/libavutil/macros.h
58
include/libavutil/mastering_display_metadata.h
59
include/libavutil/mathematics.h
60
include/libavutil/md5.h
61
include/libavutil/mem.h
62
include/libavutil/motion_vector.h
63
include/libavutil/murmur3.h
64
include/libavutil/opt.h
65
include/libavutil/parseutils.h
66
include/libavutil/pixdesc.h
67
include/libavutil/pixelutils.h
68
include/libavutil/pixfmt.h
69
include/libavutil/random_seed.h
70
include/libavutil/rational.h
71
include/libavutil/rc4.h
72
include/libavutil/replaygain.h
73
include/libavutil/ripemd.h
74
include/libavutil/samplefmt.h
75
include/libavutil/sha.h
76
include/libavutil/sha512.h
77
include/libavutil/stereo3d.h
78
include/libavutil/tea.h
79
include/libavutil/threadmessage.h
80
include/libavutil/time.h
81
include/libavutil/timecode.h
82
include/libavutil/timestamp.h
83
include/libavutil/tree.h
84
include/libavutil/twofish.h
85
include/libavutil/version.h
86
include/libavutil/xtea.h
87
include/libswresample/swresample.h
88
include/libswresample/version.h
89
include/libswscale/swscale.h
90
include/libswscale/version.h
91
lib/libavcodec.so
92
lib/libavcodec.so.57
93
lib/libavcodec.so.57.24.102
94
lib/libavformat.so
95
lib/libavformat.so.57
96
lib/libavformat.so.57.25.100
97
lib/libavutil.so
98
lib/libavutil.so.55
99
lib/libavutil.so.55.17.103
100
lib/libswresample.so
101
lib/libswresample.so.2
102
lib/libswresample.so.2.0.101
103
lib/libswscale.so
104
lib/libswscale.so.4
105
lib/libswscale.so.4.0.100
106
libdata/pkgconfig/libavcodec.pc
107
libdata/pkgconfig/libavformat.pc
108
libdata/pkgconfig/libavutil.pc
109
libdata/pkgconfig/libswresample.pc
110
libdata/pkgconfig/libswscale.pc

Return to bug 282188