View | Details | Raw Unified | Return to bug 239509
Collapse All | Expand All

(-)b/multimedia/ffmpeg/Makefile (-2 / +9 lines)
Lines 1-606 Link Here
1
# Created by: Martin Matuska <mm@FreeBSD.org>
1
# Created by: Martin Matuska <mm@FreeBSD.org>
2
# $FreeBSD$
2
# $FreeBSD$
3
3
4
PORTNAME=	ffmpeg
4
PORTNAME=	ffmpeg
5
PORTVERSION=	4.1.4
5
PORTVERSION=	4.1.4
6
PORTREVISION=	2
6
PORTREVISION=	2
7
PORTEPOCH=	1
7
PORTEPOCH=	1
8
CATEGORIES=	multimedia audio ipv6 net
8
CATEGORIES=	multimedia audio ipv6 net
9
MASTER_SITES=	https://ffmpeg.org/releases/
9
MASTER_SITES=	https://ffmpeg.org/releases/
10
10
11
MAINTAINER=	multimedia@FreeBSD.org
11
MAINTAINER=	multimedia@FreeBSD.org
12
COMMENT=	Realtime audio/video encoder/converter and streaming server
12
COMMENT=	Realtime audio/video encoder/converter and streaming server
13
13
14
LICENSE=	GPLv2+ LGPL21+
14
LICENSE=	GPLv2+ LGPL21+
15
LICENSE_COMB=	multi
15
LICENSE_COMB=	multi
16
16
17
BUILD_DEPENDS=	nasm:devel/nasm \
17
BUILD_DEPENDS=	${LOCALBASE}/bin/as:devel/binutils ${BUILD_DEPENDS_${ARCH}}
18
		${LOCALBASE}/bin/as:devel/binutils
18
BUILD_DEPENDS_amd64=	nasm:devel/nasm
19
BUILD_DEPENDS_i386=	nasm:devel/nasm
19
20
20
HAS_CONFIGURE=	yes
21
HAS_CONFIGURE=	yes
21
CONFIGURE_LOG=	ffbuild/config.log
22
CONFIGURE_LOG=	ffbuild/config.log
22
USES=		compiler:c11 cpe gmake localbase:ldflags perl5 \
23
USES=		compiler:c11 cpe gmake localbase:ldflags perl5 \
23
		pkgconfig shebangfix tar:xz
24
		pkgconfig shebangfix tar:xz
24
USE_LDCONFIG=	yes
25
USE_LDCONFIG=	yes
25
USE_PERL5=	build
26
USE_PERL5=	build
26
SHEBANG_FILES=	doc/texi2pod.pl
27
SHEBANG_FILES=	doc/texi2pod.pl
27
NOPRECIOUSMAKEVARS=	yes # ARCH
28
NOPRECIOUSMAKEVARS=	yes # ARCH
28
29
29
PORTSCOUT=	limit:^4\.
30
PORTSCOUT=	limit:^4\.
30
31
31
# Option CHROMAPRINT disabled, it cannot work and people are baffled.
32
# Option CHROMAPRINT disabled, it cannot work and people are baffled.
32
OPTIONS_DEFINE=	ALSA AMR_NB AMR_WB AOM ASS BEIGNET BS2B CACA CDIO CELT CODEC2 DAV1D DAVS2 DC1394 \
33
OPTIONS_DEFINE=	ALSA AMR_NB AMR_WB AOM ASS BEIGNET BS2B CACA CDIO CELT CODEC2 DAV1D DAVS2 DC1394 \
33
		DEBUG DOCS DRM FDK_AAC FLITE FONTCONFIG \
34
		DEBUG DOCS DRM FDK_AAC FLITE FONTCONFIG \
34
		FREETYPE FREI0R FRIBIDI GME GSM ICONV ILBC JACK KLVANC KVAZAAR LADSPA \
35
		FREETYPE FREI0R FRIBIDI GME GSM ICONV ILBC JACK KLVANC KVAZAAR LADSPA \
35
		LAME LENSFUN LIBBLURAY LIBRSVG2 LIBXML2 LV2 MODPLUG MYSOFA OPENAL OPENCL OPENCV OPENGL \
36
		LAME LENSFUN LIBBLURAY LIBRSVG2 LIBXML2 LV2 MODPLUG MYSOFA OPENAL OPENCL OPENCV OPENGL \
36
		OPENH264 OPENJPEG OPENMPT OPTIMIZED_CFLAGS OPUS PULSEAUDIO \
37
		OPENH264 OPENJPEG OPENMPT OPTIMIZED_CFLAGS OPUS PULSEAUDIO \
37
		RUBBERBAND RTCPU SDL SMB SNAPPY SNDIO SOXR SPEEX SRT SSH TENSORFLOW \
38
		RUBBERBAND RTCPU SDL SMB SNAPPY SNDIO SOXR SPEEX SRT SSH TENSORFLOW \
38
		TESSERACT THEORA TWOLAME V4L VAAPI VAPOURSYNTH VDPAU VIDSTAB VORBIS \
39
		TESSERACT THEORA TWOLAME V4L VAAPI VAPOURSYNTH VDPAU VIDSTAB VORBIS \
39
		VO_AMRWBENC VPX WAVPACK WEBP X264 X265 XAVS2 XCB XVID \
40
		VO_AMRWBENC VPX WAVPACK WEBP X264 X265 XAVS2 XCB XVID \
40
		XVIDEO ZIMG ZMQ ZVBI
41
		XVIDEO ZIMG ZMQ ZVBI
41
42
42
OPTIONS_DEFAULT=	DAV1D FONTCONFIG FREETYPE FREI0R GMP GNUTLS ICONV \
43
OPTIONS_DEFAULT=	DAV1D FONTCONFIG FREETYPE FREI0R GMP GNUTLS ICONV \
43
			OPENCV OPTIMIZED_CFLAGS OPUS RTCPU THEORA V4L VAAPI VDPAU \
44
			OPENCV OPTIMIZED_CFLAGS OPUS RTCPU THEORA V4L VAAPI VDPAU \
44
			VORBIS VPX X264 X265 XCB XVID
45
			VORBIS VPX X264 X265 XCB XVID
45
46
46
.if !exists(${.CURDIR:H:H}/multimedia/davs2)
47
.if !exists(${.CURDIR:H:H}/multimedia/davs2)
47
# https://git.ffmpeg.org/gitweb/ffmpeg.git/commitdiff/5985a1bf7233
48
# https://git.ffmpeg.org/gitweb/ffmpeg.git/commitdiff/5985a1bf7233
48
OPTIONS_EXCLUDE+=	DAVS2
49
OPTIONS_EXCLUDE+=	DAVS2
49
.endif
50
.endif
50
51
51
.if !exists(${.CURDIR:H:H}/multimedia/xavs2)
52
.if !exists(${.CURDIR:H:H}/multimedia/xavs2)
52
# https://git.ffmpeg.org/gitweb/ffmpeg.git/commitdiff/85a921f4618
53
# https://git.ffmpeg.org/gitweb/ffmpeg.git/commitdiff/85a921f4618
53
OPTIONS_EXCLUDE+=	XAVS2
54
OPTIONS_EXCLUDE+=	XAVS2
54
.endif
55
.endif
55
56
56
.if !exists(${.CURDIR:H:H}/multimedia/klvanc)
57
.if !exists(${.CURDIR:H:H}/multimedia/klvanc)
57
# https://git.ffmpeg.org/gitweb/ffmpeg.git/commitdiff/8732dfa9954
58
# https://git.ffmpeg.org/gitweb/ffmpeg.git/commitdiff/8732dfa9954
58
OPTIONS_EXCLUDE+=	KLVANC
59
OPTIONS_EXCLUDE+=	KLVANC
59
.endif
60
.endif
60
61
61
.if !exists(${.CURDIR:H:H}/net/srt)
62
.if !exists(${.CURDIR:H:H}/net/srt)
62
# https://git.ffmpeg.org/gitweb/ffmpeg.git/commitdiff/a2fc8dbae853
63
# https://git.ffmpeg.org/gitweb/ffmpeg.git/commitdiff/a2fc8dbae853
63
OPTIONS_EXCLUDE+=	SRT
64
OPTIONS_EXCLUDE+=	SRT
64
.endif
65
.endif
65
66
66
.if !exists(${.CURDIR:H:H}/science/tensorflow)
67
.if !exists(${.CURDIR:H:H}/science/tensorflow)
67
# https://git.ffmpeg.org/gitweb/ffmpeg.git/commitdiff/d8c0bbb0aa4
68
# https://git.ffmpeg.org/gitweb/ffmpeg.git/commitdiff/d8c0bbb0aa4
68
OPTIONS_EXCLUDE+=	TENSORFLOW
69
OPTIONS_EXCLUDE+=	TENSORFLOW
69
.endif
70
.endif
70
71
71
OPTIONS_RADIO=	RTMP SSL
72
OPTIONS_RADIO=	RTMP SSL
72
OPTIONS_RADIO_RTMP=	GCRYPT GMP LIBRTMP
73
OPTIONS_RADIO_RTMP=	GCRYPT GMP LIBRTMP
73
OPTIONS_RADIO_SSL=	GNUTLS MBEDTLS OPENSSL
74
OPTIONS_RADIO_SSL=	GNUTLS MBEDTLS OPENSSL
74
OPTIONS_GROUP=	LICENSE
75
OPTIONS_GROUP=	LICENSE
75
OPTIONS_GROUP_LICENSE=	GPL3 NONFREE
76
OPTIONS_GROUP_LICENSE=	GPL3 NONFREE
76
77
77
OPTIONS_DEFINE_amd64=	BEIGNET MMX SSE SVTAV1 SVTHEVC SVTVP9
78
OPTIONS_DEFINE_amd64=	BEIGNET MMX SSE SVTAV1 SVTHEVC SVTVP9
78
OPTIONS_DEFINE_armv6=	VFP NEON
79
OPTIONS_DEFINE_armv6=	VFP NEON
79
OPTIONS_DEFINE_i386=	BEIGNET MMX SSE
80
OPTIONS_DEFINE_i386=	BEIGNET MMX SSE
80
OPTIONS_DEFAULT_amd64=	MMX SSE
81
OPTIONS_DEFAULT_amd64=	MMX SSE
81
OPTIONS_DEFAULT_i386=	MMX SSE
82
OPTIONS_DEFAULT_i386=	MMX SSE
82
83
83
ASS_DESC=	Subtitles rendering via libass
84
ASS_DESC=	Subtitles rendering via libass
84
AOM_DESC=	AV1 video encoding/decoding via libaom
85
AOM_DESC=	AV1 video encoding/decoding via libaom
85
BEIGNET_DESC=	DRM/VAAPI to OpenCL mapping for i965 + Beignet
86
BEIGNET_DESC=	DRM/VAAPI to OpenCL mapping for i965 + Beignet
86
BS2B_DESC=	Bauer Stereophonic-to-Binaural filter
87
BS2B_DESC=	Bauer Stereophonic-to-Binaural filter
87
CHROMAPRINT_DESC=	Audio fingerprinting with chromaprint
88
CHROMAPRINT_DESC=	Audio fingerprinting with chromaprint
88
CODEC2_DESC=	Codec 2 audio encoding/decoding via libcodec2
89
CODEC2_DESC=	Codec 2 audio encoding/decoding via libcodec2
89
DAV1D_DESC=	AV1 video decoding via libdav1d
90
DAV1D_DESC=	AV1 video decoding via libdav1d
90
DAVS2_DESC=	AVS2 decoding via libdavs2
91
DAVS2_DESC=	AVS2 decoding via libdavs2
91
DC1394_DESC=	IIDC-1394 grabbing using libdc1394
92
DC1394_DESC=	IIDC-1394 grabbing using libdc1394
92
DRM_DESC=	KMS grabbing using libdrm
93
DRM_DESC=	KMS grabbing using libdrm
93
FDK_AAC_DESC=	AAC audio encoding via Fraunhofer FDK
94
FDK_AAC_DESC=	AAC audio encoding via Fraunhofer FDK
94
FLITE_DESC=	Voice synthesis support via libflite
95
FLITE_DESC=	Voice synthesis support via libflite
95
GME_DESC=	Game Music Emu demuxer
96
GME_DESC=	Game Music Emu demuxer
96
GPL3_DESC=	Allow (L)GPL version 3 code(cs)
97
GPL3_DESC=	Allow (L)GPL version 3 code(cs)
97
ILBC_DESC=	Internet Low Bit Rate codec
98
ILBC_DESC=	Internet Low Bit Rate codec
98
KLVANC_DESC=	Kernel Labs VANC processing
99
KLVANC_DESC=	Kernel Labs VANC processing
99
KVAZAAR_DESC=	H.265 video codec support via Kvazaar
100
KVAZAAR_DESC=	H.265 video codec support via Kvazaar
100
LICENSE_DESC=	Licensing options
101
LICENSE_DESC=	Licensing options
101
LV2_DESC=	LV2 audio filtering
102
LV2_DESC=	LV2 audio filtering
102
MYSOFA_DESC=	SOFAlizer binaural filter
103
MYSOFA_DESC=	SOFAlizer binaural filter
103
NEON_DESC=	Media Processing Engine instructions
104
NEON_DESC=	Media Processing Engine instructions
104
NONFREE_DESC=	Allow use of nonfree code
105
NONFREE_DESC=	Allow use of nonfree code
105
OPENMPT_DESC=	Decoding tracked files via libopenmpt
106
OPENMPT_DESC=	Decoding tracked files via libopenmpt
106
OPENH264_DESC=	H.264 video codec support via OpenH264
107
OPENH264_DESC=	H.264 video codec support via OpenH264
107
RUBBERBAND_DESC=Time-stretching and pitch-shifting with librubberband
108
RUBBERBAND_DESC=Time-stretching and pitch-shifting with librubberband
108
RTCPU_DESC=	Detect CPU capabilities at runtime
109
RTCPU_DESC=	Detect CPU capabilities at runtime
109
RTMP_DESC=	RTMP(T)E protocol support
110
RTMP_DESC=	RTMP(T)E protocol support
110
SRT_DESC=	Haivision SRT protocol via libsrt
111
SRT_DESC=	Haivision SRT protocol via libsrt
111
SVTAV1_DESC=	AV1 encoding via SVT-AV1
112
SVTAV1_DESC=	AV1 encoding via SVT-AV1
112
SVTHEVC_DESC=	HEVC encoding via SVT-HEVC
113
SVTHEVC_DESC=	HEVC encoding via SVT-HEVC
113
SVTVP9_DESC=	VP9 encoding via SVT-VP9
114
SVTVP9_DESC=	VP9 encoding via SVT-VP9
114
LIBRTMP_DESC=	${RTMP_DESC} via librtmp
115
LIBRTMP_DESC=	${RTMP_DESC} via librtmp
115
TENSORFLOW_DESC=TensorFlow as a DNN module backend for DNN based filters like sr
116
TENSORFLOW_DESC=TensorFlow as a DNN module backend for DNN based filters like sr
116
TESSERACT_DESC=	Optical Character Recognition via Tesseract
117
TESSERACT_DESC=	Optical Character Recognition via Tesseract
117
VAPOURSYNTH_DESC=	VapourSynth demuxer
118
VAPOURSYNTH_DESC=	VapourSynth demuxer
118
VFP_DESC=	Vector Floating Point instructions
119
VFP_DESC=	Vector Floating Point instructions
119
VIDSTAB_DESC=	Video stabilization filter
120
VIDSTAB_DESC=	Video stabilization filter
120
XAVS2_DESC=	AVS2 encoding via libxavs2
121
XAVS2_DESC=	AVS2 encoding via libxavs2
121
XCB_DESC=	X11 grabbing using XCB
122
XCB_DESC=	X11 grabbing using XCB
122
ZIMG_DESC=	"z" library video scaling filter
123
ZIMG_DESC=	"z" library video scaling filter
123
ZMQ_DESC=	Message passing via libzmq${ZMQ_VERSION}
124
ZMQ_DESC=	Message passing via libzmq${ZMQ_VERSION}
124
ZVBI_DESC=	Teletext support via libzvbi
125
ZVBI_DESC=	Teletext support via libzvbi
125
126
126
OPTIONS_SUB=	yes
127
OPTIONS_SUB=	yes
127
128
128
# alsa
129
# alsa
129
ALSA_LIB_DEPENDS=	libasound.so:audio/alsa-lib
130
ALSA_LIB_DEPENDS=	libasound.so:audio/alsa-lib
130
ALSA_CONFIGURE_ENABLE=	alsa
131
ALSA_CONFIGURE_ENABLE=	alsa
131
132
132
# Opencore AMR NB
133
# Opencore AMR NB
133
AMR_NB_LIB_DEPENDS=	libopencore-amrnb.so:audio/opencore-amr
134
AMR_NB_LIB_DEPENDS=	libopencore-amrnb.so:audio/opencore-amr
134
AMR_NB_CONFIGURE_ENABLE=	libopencore-amrnb
135
AMR_NB_CONFIGURE_ENABLE=	libopencore-amrnb
135
AMR_NB_IMPLIES=		GPL3
136
AMR_NB_IMPLIES=		GPL3
136
137
137
# Opencore AMR WB
138
# Opencore AMR WB
138
AMR_WB_LIB_DEPENDS=	libopencore-amrwb.so:audio/opencore-amr
139
AMR_WB_LIB_DEPENDS=	libopencore-amrwb.so:audio/opencore-amr
139
AMR_WB_CONFIGURE_ENABLE=	libopencore-amrwb
140
AMR_WB_CONFIGURE_ENABLE=	libopencore-amrwb
140
AMR_WB_IMPLIES=		GPL3
141
AMR_WB_IMPLIES=		GPL3
141
142
142
# aom
143
# aom
143
AOM_LIB_DEPENDS=	libaom.so:multimedia/aom
144
AOM_LIB_DEPENDS=	libaom.so:multimedia/aom
144
AOM_CONFIGURE_ENABLE=	libaom
145
AOM_CONFIGURE_ENABLE=	libaom
145
146
146
# ass
147
# ass
147
ASS_LIB_DEPENDS=	libass.so:multimedia/libass
148
ASS_LIB_DEPENDS=	libass.so:multimedia/libass
148
ASS_CONFIGURE_ENABLE=	libass
149
ASS_CONFIGURE_ENABLE=	libass
149
150
150
# beignet
151
# beignet
151
BEIGNET_BUILD_DEPENDS=	${LOCALBASE}/include/CL/cl_intel.h:lang/beignet
152
BEIGNET_BUILD_DEPENDS=	${LOCALBASE}/include/CL/cl_intel.h:lang/beignet
152
BEIGNET_IMPLIES=	DRM OPENCL VAAPI
153
BEIGNET_IMPLIES=	DRM OPENCL VAAPI
153
154
154
# bs2b
155
# bs2b
155
BS2B_LIB_DEPENDS=	libbs2b.so:audio/libbs2b
156
BS2B_LIB_DEPENDS=	libbs2b.so:audio/libbs2b
156
BS2B_CONFIGURE_ENABLE=	libbs2b
157
BS2B_CONFIGURE_ENABLE=	libbs2b
157
158
158
# caca
159
# caca
159
CACA_LIB_DEPENDS=	libcaca.so:graphics/libcaca
160
CACA_LIB_DEPENDS=	libcaca.so:graphics/libcaca
160
CACA_CONFIGURE_ENABLE=	libcaca
161
CACA_CONFIGURE_ENABLE=	libcaca
161
162
162
# cdio
163
# cdio
163
CDIO_LIB_DEPENDS=	libcdio_paranoia.so:sysutils/libcdio-paranoia
164
CDIO_LIB_DEPENDS=	libcdio_paranoia.so:sysutils/libcdio-paranoia
164
CDIO_CONFIGURE_ENABLE=	libcdio
165
CDIO_CONFIGURE_ENABLE=	libcdio
165
166
166
# celt
167
# celt
167
CELT_LIB_DEPENDS=	libcelt0.so:audio/celt
168
CELT_LIB_DEPENDS=	libcelt0.so:audio/celt
168
CELT_CONFIGURE_ENABLE=	libcelt
169
CELT_CONFIGURE_ENABLE=	libcelt
169
170
170
# chromaprint
171
# chromaprint
171
CHROMAPRINT_BROKEN=		Dependency loop
172
CHROMAPRINT_BROKEN=		Dependency loop
172
CHROMAPRINT_LIB_DEPENDS=	libchromaprint.so:audio/chromaprint
173
CHROMAPRINT_LIB_DEPENDS=	libchromaprint.so:audio/chromaprint
173
CHROMAPRINT_CONFIGURE_ENABLE=	chromaprint
174
CHROMAPRINT_CONFIGURE_ENABLE=	chromaprint
174
175
175
# codec2
176
# codec2
176
CODEC2_LIB_DEPENDS=	libcodec2.so:audio/codec2
177
CODEC2_LIB_DEPENDS=	libcodec2.so:audio/codec2
177
CODEC2_CONFIGURE_ENABLE=	libcodec2
178
CODEC2_CONFIGURE_ENABLE=	libcodec2
178
179
179
# dav1d
180
# dav1d
180
DAV1D_LIB_DEPENDS=	libdav1d.so:multimedia/dav1d
181
DAV1D_LIB_DEPENDS=	libdav1d.so:multimedia/dav1d
181
DAV1D_CONFIGURE_ENABLE=	libdav1d
182
DAV1D_CONFIGURE_ENABLE=	libdav1d
182
183
183
# davs2
184
# davs2
184
DAVS2_LIB_DEPENDS=	libdavs2.so:multimedia/davs2
185
DAVS2_LIB_DEPENDS=	libdavs2.so:multimedia/davs2
185
DAVS2_CONFIGURE_ENABLE=	libdavs2
186
DAVS2_CONFIGURE_ENABLE=	libdavs2
186
187
187
# dc1394
188
# dc1394
188
DC1394_LIB_DEPENDS=	libdc1394.so:multimedia/libdc1394
189
DC1394_LIB_DEPENDS=	libdc1394.so:multimedia/libdc1394
189
DC1394_CONFIGURE_ENABLE=	libdc1394
190
DC1394_CONFIGURE_ENABLE=	libdc1394
190
191
191
# debugging
192
# debugging
192
DEBUG_CONFIGURE_ON=	--disable-stripping
193
DEBUG_CONFIGURE_ON=	--disable-stripping
193
DEBUG_CONFIGURE_OFF=	--disable-debug
194
DEBUG_CONFIGURE_OFF=	--disable-debug
194
195
195
# docs
196
# docs
196
DOCS_BUILD_DEPENDS=	texi2html:textproc/texi2html
197
DOCS_BUILD_DEPENDS=	texi2html:textproc/texi2html
197
DOCS_CONFIGURE_ENABLE=	htmlpages
198
DOCS_CONFIGURE_ENABLE=	htmlpages
198
199
199
# drm
200
# drm
200
DRM_LIB_DEPENDS=	libdrm.so:graphics/libdrm
201
DRM_LIB_DEPENDS=	libdrm.so:graphics/libdrm
201
DRM_CONFIGURE_ENABLE=	libdrm
202
DRM_CONFIGURE_ENABLE=	libdrm
202
203
203
# fdk_aac
204
# fdk_aac
204
FDK_AAC_LIB_DEPENDS=	libfdk-aac.so:audio/fdk-aac
205
FDK_AAC_LIB_DEPENDS=	libfdk-aac.so:audio/fdk-aac
205
FDK_AAC_CONFIGURE_ENABLE=	libfdk-aac
206
FDK_AAC_CONFIGURE_ENABLE=	libfdk-aac
206
FDK_AAC_IMPLIES=	NONFREE
207
FDK_AAC_IMPLIES=	NONFREE
207
208
208
# flite
209
# flite
209
FLITE_LIB_DEPENDS=	libflite.so:audio/flite
210
FLITE_LIB_DEPENDS=	libflite.so:audio/flite
210
FLITE_CONFIGURE_ENABLE=	libflite
211
FLITE_CONFIGURE_ENABLE=	libflite
211
212
212
# fontconfig
213
# fontconfig
213
FONTCONFIG_LIB_DEPENDS=	libfontconfig.so:x11-fonts/fontconfig
214
FONTCONFIG_LIB_DEPENDS=	libfontconfig.so:x11-fonts/fontconfig
214
FONTCONFIG_CONFIGURE_ENABLE=	fontconfig
215
FONTCONFIG_CONFIGURE_ENABLE=	fontconfig
215
216
216
# freetype
217
# freetype
217
FREETYPE_LIB_DEPENDS=	libfreetype.so:print/freetype2
218
FREETYPE_LIB_DEPENDS=	libfreetype.so:print/freetype2
218
FREETYPE_CONFIGURE_ENABLE=	libfreetype
219
FREETYPE_CONFIGURE_ENABLE=	libfreetype
219
220
220
# frei0r
221
# frei0r
221
FREI0R_BUILD_DEPENDS=	${LOCALBASE}/include/frei0r.h:graphics/frei0r
222
FREI0R_BUILD_DEPENDS=	${LOCALBASE}/include/frei0r.h:graphics/frei0r
222
FREI0R_CONFIGURE_ENABLE=	frei0r
223
FREI0R_CONFIGURE_ENABLE=	frei0r
223
224
224
# fribidi
225
# fribidi
225
FRIBIDI_LIB_DEPENDS=	libfribidi.so:converters/fribidi
226
FRIBIDI_LIB_DEPENDS=	libfribidi.so:converters/fribidi
226
FRIBIDI_CONFIGURE_ENABLE=	libfribidi
227
FRIBIDI_CONFIGURE_ENABLE=	libfribidi
227
228
228
# gcrypt
229
# gcrypt
229
GCRYPT_LIB_DEPENDS=	libgcrypt.so:security/libgcrypt
230
GCRYPT_LIB_DEPENDS=	libgcrypt.so:security/libgcrypt
230
GCRYPT_CONFIGURE_ENABLE=	gcrypt
231
GCRYPT_CONFIGURE_ENABLE=	gcrypt
231
232
232
# gnutls
233
# gnutls
233
GNUTLS_LIB_DEPENDS=	libgnutls.so:security/gnutls
234
GNUTLS_LIB_DEPENDS=	libgnutls.so:security/gnutls
234
GNUTLS_CONFIGURE_ENABLE=	gnutls
235
GNUTLS_CONFIGURE_ENABLE=	gnutls
235
236
236
# gme
237
# gme
237
GME_LIB_DEPENDS=	libgme.so:audio/libgme
238
GME_LIB_DEPENDS=	libgme.so:audio/libgme
238
GME_CONFIGURE_ENABLE=	libgme
239
GME_CONFIGURE_ENABLE=	libgme
239
240
240
# gmp
241
# gmp
241
GMP_LIB_DEPENDS=	libgmp.so:math/gmp
242
GMP_LIB_DEPENDS=	libgmp.so:math/gmp
242
GMP_CONFIGURE_ENABLE=	gmp
243
GMP_CONFIGURE_ENABLE=	gmp
243
GMP_IMPLIES=		GPL3
244
GMP_IMPLIES=		GPL3
244
245
245
# gsm
246
# gsm
246
GSM_LIB_DEPENDS=	libgsm.so:audio/gsm
247
GSM_LIB_DEPENDS=	libgsm.so:audio/gsm
247
GSM_CONFIGURE_ENABLE=	libgsm
248
GSM_CONFIGURE_ENABLE=	libgsm
248
249
249
# iconv
250
# iconv
250
ICONV_USES=	iconv
251
ICONV_USES=	iconv
251
ICONV_CONFIGURE_ENABLE=	iconv
252
ICONV_CONFIGURE_ENABLE=	iconv
252
253
253
# ilbc
254
# ilbc
254
ILBC_LIB_DEPENDS=	libilbc.so:net/libilbc
255
ILBC_LIB_DEPENDS=	libilbc.so:net/libilbc
255
ILBC_CONFIGURE_ENABLE=	libilbc
256
ILBC_CONFIGURE_ENABLE=	libilbc
256
257
257
# jack
258
# jack
258
JACK_LIB_DEPENDS=	libjack.so:audio/jack
259
JACK_LIB_DEPENDS=	libjack.so:audio/jack
259
JACK_CONFIGURE_ENABLE=	libjack
260
JACK_CONFIGURE_ENABLE=	libjack
260
261
261
# klvanc
262
# klvanc
262
KLVANC_LIB_DEPENDS=	libklvanc.so:multimedia/libklvanc
263
KLVANC_LIB_DEPENDS=	libklvanc.so:multimedia/libklvanc
263
KLVANC_CONFIGURE_ENABLE=	libklvanc
264
KLVANC_CONFIGURE_ENABLE=	libklvanc
264
265
265
# kvazaar
266
# kvazaar
266
KVAZAAR_LIB_DEPENDS=	libkvazaar.so:multimedia/kvazaar
267
KVAZAAR_LIB_DEPENDS=	libkvazaar.so:multimedia/kvazaar
267
KVAZAAR_CONFIGURE_ENABLE=	libkvazaar
268
KVAZAAR_CONFIGURE_ENABLE=	libkvazaar
268
269
269
# ladspa
270
# ladspa
270
LADSPA_BUILD_DEPENDS=	${LOCALBASE}/include/ladspa.h:audio/ladspa
271
LADSPA_BUILD_DEPENDS=	${LOCALBASE}/include/ladspa.h:audio/ladspa
271
LADSPA_RUN_DEPENDS=	${LOCALBASE}/lib/ladspa/amp.so:audio/ladspa
272
LADSPA_RUN_DEPENDS=	${LOCALBASE}/lib/ladspa/amp.so:audio/ladspa
272
LADSPA_CONFIGURE_ENABLE=	ladspa
273
LADSPA_CONFIGURE_ENABLE=	ladspa
273
274
274
# lame
275
# lame
275
LAME_LIB_DEPENDS=	libmp3lame.so:audio/lame
276
LAME_LIB_DEPENDS=	libmp3lame.so:audio/lame
276
LAME_CONFIGURE_ENABLE=	libmp3lame
277
LAME_CONFIGURE_ENABLE=	libmp3lame
277
278
278
# lensfun
279
# lensfun
279
LENSFUN_LIB_DEPENDS=	liblensfun.so:graphics/lensfun
280
LENSFUN_LIB_DEPENDS=	liblensfun.so:graphics/lensfun
280
LENSFUN_CONFIGURE_ENABLE=	liblensfun
281
LENSFUN_CONFIGURE_ENABLE=	liblensfun
281
282
282
# libbluray
283
# libbluray
283
LIBBLURAY_LIB_DEPENDS=	libbluray.so:multimedia/libbluray
284
LIBBLURAY_LIB_DEPENDS=	libbluray.so:multimedia/libbluray
284
LIBBLURAY_CONFIGURE_ENABLE=	libbluray
285
LIBBLURAY_CONFIGURE_ENABLE=	libbluray
285
286
286
# librsvg
287
# librsvg
287
LIBRSVG2_LIB_DEPENDS=	librsvg-2.so:graphics/librsvg2
288
LIBRSVG2_LIB_DEPENDS=	librsvg-2.so:graphics/librsvg2
288
LIBRSVG2_CONFIGURE_ENABLE=	librsvg
289
LIBRSVG2_CONFIGURE_ENABLE=	librsvg
289
290
290
# libxml
291
# libxml
291
LIBXML2_LIB_DEPENDS=	libxml2.so:textproc/libxml2
292
LIBXML2_LIB_DEPENDS=	libxml2.so:textproc/libxml2
292
LIBXML2_CONFIGURE_ENABLE=	libxml2
293
LIBXML2_CONFIGURE_ENABLE=	libxml2
293
294
294
# lv2
295
# lv2
295
LV2_BUILD_DEPENDS=	lv2>0:audio/lv2
296
LV2_BUILD_DEPENDS=	lv2>0:audio/lv2
296
LV2_LIB_DEPENDS=	liblilv-0.so:audio/lilv
297
LV2_LIB_DEPENDS=	liblilv-0.so:audio/lilv
297
LV2_CONFIGURE_ENABLE=	lv2
298
LV2_CONFIGURE_ENABLE=	lv2
298
299
299
# libv4l
300
# libv4l
300
V4L_BUILD_DEPENDS=	v4l_compat>0:multimedia/v4l_compat
301
V4L_BUILD_DEPENDS=	v4l_compat>0:multimedia/v4l_compat
301
V4L_LIB_DEPENDS=	libv4l2.so:multimedia/libv4l
302
V4L_LIB_DEPENDS=	libv4l2.so:multimedia/libv4l
302
V4L_CONFIGURE_ENABLE=	libv4l2
303
V4L_CONFIGURE_ENABLE=	libv4l2
303
V4L_CONFIGURE_OFF=		--disable-indev=v4l2 \
304
V4L_CONFIGURE_OFF=		--disable-indev=v4l2 \
304
				--disable-outdev=v4l2
305
				--disable-outdev=v4l2
305
306
306
# mbedtls
307
# mbedtls
307
MBEDTLS_LIB_DEPENDS=	libmbedtls.so:security/mbedtls
308
MBEDTLS_LIB_DEPENDS=	libmbedtls.so:security/mbedtls
308
MBEDTLS_CONFIGURE_ENABLE=	mbedtls
309
MBEDTLS_CONFIGURE_ENABLE=	mbedtls
309
310
310
# mmx support
311
# mmx support
311
MMX_CONFIGURE_ENABLE=	mmx
312
MMX_CONFIGURE_ENABLE=	mmx
312
313
313
# modplug
314
# modplug
314
MODPLUG_LIB_DEPENDS=	libmodplug.so:audio/libmodplug
315
MODPLUG_LIB_DEPENDS=	libmodplug.so:audio/libmodplug
315
MODPLUG_CONFIGURE_ENABLE=	libmodplug
316
MODPLUG_CONFIGURE_ENABLE=	libmodplug
316
317
317
# mysofa
318
# mysofa
318
MYSOFA_LIB_DEPENDS=	libmysofa.so:audio/libmysofa
319
MYSOFA_LIB_DEPENDS=	libmysofa.so:audio/libmysofa
319
MYSOFA_CONFIGURE_ENABLE=	libmysofa
320
MYSOFA_CONFIGURE_ENABLE=	libmysofa
320
321
321
# OpenAL
322
# OpenAL
322
OPENAL_LIB_DEPENDS=	libopenal.so:audio/openal-soft
323
OPENAL_LIB_DEPENDS=	libopenal.so:audio/openal-soft
323
OPENAL_CONFIGURE_ENABLE=	openal
324
OPENAL_CONFIGURE_ENABLE=	openal
324
325
325
# opencl
326
# opencl
326
OPENCL_BUILD_DEPENDS=	${LOCALBASE}/include/CL/opencl.h:devel/opencl
327
OPENCL_BUILD_DEPENDS=	${LOCALBASE}/include/CL/opencl.h:devel/opencl
327
OPENCL_LIB_DEPENDS=	libOpenCL.so:devel/ocl-icd
328
OPENCL_LIB_DEPENDS=	libOpenCL.so:devel/ocl-icd
328
OPENCL_CONFIGURE_ENABLE=	opencl
329
OPENCL_CONFIGURE_ENABLE=	opencl
329
330
330
# opencv
331
# opencv
331
OPENCV_LIB_DEPENDS=	libopencv_imgproc.so:graphics/opencv-core
332
OPENCV_LIB_DEPENDS=	libopencv_imgproc.so:graphics/opencv-core
332
OPENCV_CONFIGURE_ENABLE=	libopencv
333
OPENCV_CONFIGURE_ENABLE=	libopencv
333
334
334
# opengl
335
# opengl
335
OPENGL_USES=		gl
336
OPENGL_USES=		gl
336
OPENGL_USE=		GL=gl
337
OPENGL_USE=		GL=gl
337
OPENGL_CONFIGURE_ENABLE=	opengl
338
OPENGL_CONFIGURE_ENABLE=	opengl
338
339
339
# openh264
340
# openh264
340
OPENH264_LIB_DEPENDS=	libopenh264.so:multimedia/openh264
341
OPENH264_LIB_DEPENDS=	libopenh264.so:multimedia/openh264
341
OPENH264_CONFIGURE_ENABLE=	libopenh264
342
OPENH264_CONFIGURE_ENABLE=	libopenh264
342
343
343
# openjpeg
344
# openjpeg
344
OPENJPEG_LIB_DEPENDS=	libopenjp2.so:graphics/openjpeg
345
OPENJPEG_LIB_DEPENDS=	libopenjp2.so:graphics/openjpeg
345
OPENJPEG_CONFIGURE_ENABLE=	libopenjpeg
346
OPENJPEG_CONFIGURE_ENABLE=	libopenjpeg
346
347
347
# openmpt
348
# openmpt
348
OPENMPT_LIB_DEPENDS=	libopenmpt.so:audio/libopenmpt
349
OPENMPT_LIB_DEPENDS=	libopenmpt.so:audio/libopenmpt
349
OPENMPT_CONFIGURE_ENABLE=	libopenmpt
350
OPENMPT_CONFIGURE_ENABLE=	libopenmpt
350
351
351
# openssl/libtls
352
# openssl/libtls
352
OPENSSL_USES=		ssl
353
OPENSSL_USES=		ssl
353
OPENSSL_CONFIGURE_ENABLE=	${"${SSL_DEFAULT:Mlibressl*}"!="":?libtls:openssl}
354
OPENSSL_CONFIGURE_ENABLE=	${"${SSL_DEFAULT:Mlibressl*}"!="":?libtls:openssl}
354
OPENSSL_IMPLIES=	NONFREE
355
OPENSSL_IMPLIES=	NONFREE
355
356
356
# optimizations
357
# optimizations
357
OPTIMIZED_CFLAGS_CONFIGURE_ENABLE=	optimizations
358
OPTIMIZED_CFLAGS_CONFIGURE_ENABLE=	optimizations
358
359
359
# opus
360
# opus
360
OPUS_LIB_DEPENDS=	libopus.so:audio/opus
361
OPUS_LIB_DEPENDS=	libopus.so:audio/opus
361
OPUS_CONFIGURE_ENABLE=	libopus
362
OPUS_CONFIGURE_ENABLE=	libopus
362
363
363
# pulseaudio
364
# pulseaudio
364
PULSEAUDIO_LIB_DEPENDS=	libpulse.so:audio/pulseaudio
365
PULSEAUDIO_LIB_DEPENDS=	libpulse.so:audio/pulseaudio
365
PULSEAUDIO_CONFIGURE_ENABLE=	libpulse
366
PULSEAUDIO_CONFIGURE_ENABLE=	libpulse
366
367
367
# rubberband
368
# rubberband
368
RUBBERBAND_LIB_DEPENDS=	librubberband.so:audio/rubberband
369
RUBBERBAND_LIB_DEPENDS=	librubberband.so:audio/rubberband
369
RUBBERBAND_CONFIGURE_ENABLE=	librubberband
370
RUBBERBAND_CONFIGURE_ENABLE=	librubberband
370
371
371
# rtcpu
372
# rtcpu
372
RTCPU_CONFIGURE_ENABLE=	runtime-cpudetect
373
RTCPU_CONFIGURE_ENABLE=	runtime-cpudetect
373
374
374
# rtmp
375
# rtmp
375
LIBRTMP_LIB_DEPENDS=	librtmp.so:multimedia/librtmp
376
LIBRTMP_LIB_DEPENDS=	librtmp.so:multimedia/librtmp
376
LIBRTMP_CONFIGURE_ENABLE=	librtmp
377
LIBRTMP_CONFIGURE_ENABLE=	librtmp
377
378
378
# sdl
379
# sdl
379
SDL_USE=		SDL=sdl2
380
SDL_USE=		SDL=sdl2
380
SDL_CONFIGURE_ENABLE=	sdl2
381
SDL_CONFIGURE_ENABLE=	sdl2
381
382
382
# smbclient
383
# smbclient
383
SMB_USES=		samba:lib
384
SMB_USES=		samba:lib
384
SMB_CONFIGURE_ENABLE=	libsmbclient
385
SMB_CONFIGURE_ENABLE=	libsmbclient
385
SMB_IMPLIES=		GPL3
386
SMB_IMPLIES=		GPL3
386
387
387
# snappy
388
# snappy
388
SNAPPY_LIB_DEPENDS=	libsnappy.so:archivers/snappy
389
SNAPPY_LIB_DEPENDS=	libsnappy.so:archivers/snappy
389
SNAPPY_CONFIGURE_ENABLE=	libsnappy
390
SNAPPY_CONFIGURE_ENABLE=	libsnappy
390
391
391
# sndio
392
# sndio
392
SNDIO_LIB_DEPENDS=	libsndio.so:audio/sndio
393
SNDIO_LIB_DEPENDS=	libsndio.so:audio/sndio
393
SNDIO_CONFIGURE_ENABLE=	sndio
394
SNDIO_CONFIGURE_ENABLE=	sndio
394
395
395
# soxr
396
# soxr
396
SOXR_LIB_DEPENDS=	libsoxr.so:audio/libsoxr
397
SOXR_LIB_DEPENDS=	libsoxr.so:audio/libsoxr
397
SOXR_CONFIGURE_ENABLE=	libsoxr
398
SOXR_CONFIGURE_ENABLE=	libsoxr
398
399
399
# speex
400
# speex
400
SPEEX_LIB_DEPENDS=	libspeex.so:audio/speex
401
SPEEX_LIB_DEPENDS=	libspeex.so:audio/speex
401
SPEEX_CONFIGURE_ENABLE=	libspeex
402
SPEEX_CONFIGURE_ENABLE=	libspeex
402
403
403
# sse support
404
# sse support
404
SSE_CONFIGURE_ENABLE=	sse
405
SSE_CONFIGURE_ENABLE=	sse
405
SSE_IMPLIES=		MMX
406
SSE_IMPLIES=		MMX
406
407
407
# ssh
408
# ssh
408
SSH_LIB_DEPENDS=	libssh.so:security/libssh
409
SSH_LIB_DEPENDS=	libssh.so:security/libssh
409
SSH_CONFIGURE_ENABLE=	libssh
410
SSH_CONFIGURE_ENABLE=	libssh
410
411
411
# srt
412
# srt
412
SRT_LIB_DEPENDS=	libsrt.so:net/srt
413
SRT_LIB_DEPENDS=	libsrt.so:net/srt
413
SRT_CONFIGURE_ENABLE=	libsrt
414
SRT_CONFIGURE_ENABLE=	libsrt
414
415
415
# svt-av1
416
# svt-av1
416
SVTAV1_LIB_DEPENDS=	libSvtAv1Enc.so:multimedia/svt-av1
417
SVTAV1_LIB_DEPENDS=	libSvtAv1Enc.so:multimedia/svt-av1
417
SVTAV1_CONFIGURE_ON=	--enable-libsvtav1
418
SVTAV1_CONFIGURE_ON=	--enable-libsvtav1
418
SVTAV1_PATCH_SITES=	https://github.com/OpenVisualCloud/SVT-AV1/raw/v0.6.0/ffmpeg_plugin/:svtav1
419
SVTAV1_PATCH_SITES=	https://github.com/OpenVisualCloud/SVT-AV1/raw/v0.6.0/ffmpeg_plugin/:svtav1
419
SVTAV1_PATCHFILES=	0001-Add-ability-for-ffmpeg-to-run-svt-av1.patch:-p1:svtav1
420
SVTAV1_PATCHFILES=	0001-Add-ability-for-ffmpeg-to-run-svt-av1.patch:-p1:svtav1
420
.if make(makesum)
421
.if make(makesum)
421
.MAKEFLAGS:		WITH+=SVTAV1
422
.MAKEFLAGS:		WITH+=SVTAV1
422
.else
423
.else
423
SVTAV1_PREVENTS=	SVTHEVC SVTVP9
424
SVTAV1_PREVENTS=	SVTHEVC SVTVP9
424
SVTAV1_PREVENTS_MSG=	Only one SVT vendor patch can be applied at the same time
425
SVTAV1_PREVENTS_MSG=	Only one SVT vendor patch can be applied at the same time
425
.endif
426
.endif
426
427
427
# svt-hevc
428
# svt-hevc
428
SVTHEVC_LIB_DEPENDS=	libSvtHevcEnc.so:multimedia/svt-hevc
429
SVTHEVC_LIB_DEPENDS=	libSvtHevcEnc.so:multimedia/svt-hevc
429
SVTHEVC_CONFIGURE_ON=	--enable-libsvthevc
430
SVTHEVC_CONFIGURE_ON=	--enable-libsvthevc
430
SVTHEVC_PATCH_SITES=	https://github.com/Intel/SVT-HEVC/raw/v1.3.0/ffmpeg_plugin/:svthevc
431
SVTHEVC_PATCH_SITES=	https://github.com/Intel/SVT-HEVC/raw/v1.3.0/ffmpeg_plugin/:svthevc
431
SVTHEVC_PATCHFILES=	0001-lavc-svt_hevc-add-libsvt-hevc-encoder-wrapper.patch:-p1:svthevc \
432
SVTHEVC_PATCHFILES=	0001-lavc-svt_hevc-add-libsvt-hevc-encoder-wrapper.patch:-p1:svthevc \
432
			0002-doc-Add-libsvt_hevc-encoder-docs.patch:-p1:svthevc
433
			0002-doc-Add-libsvt_hevc-encoder-docs.patch:-p1:svthevc
433
.if make(makesum)
434
.if make(makesum)
434
.MAKEFLAGS:		WITH+=SVTHEVC
435
.MAKEFLAGS:		WITH+=SVTHEVC
435
.else
436
.else
436
SVTHEVC_PREVENTS=	SVTAV1 SVTVP9
437
SVTHEVC_PREVENTS=	SVTAV1 SVTVP9
437
SVTHEVC_PREVENTS_MSG=	${SVTAV1_PREVENTS_MSG}
438
SVTHEVC_PREVENTS_MSG=	${SVTAV1_PREVENTS_MSG}
438
.endif
439
.endif
439
440
440
# svt-vp9
441
# svt-vp9
441
SVTVP9_LIB_DEPENDS=	libSvtVp9Enc.so:multimedia/svt-vp9
442
SVTVP9_LIB_DEPENDS=	libSvtVp9Enc.so:multimedia/svt-vp9
442
SVTVP9_CONFIGURE_ON=	--enable-libsvtvp9
443
SVTVP9_CONFIGURE_ON=	--enable-libsvtvp9
443
SVTVP9_PATCH_SITES=	https://github.com/OpenVisualCloud/SVT-VP9/raw/ce24589/ffmpeg_plugin/:svtvp9
444
SVTVP9_PATCH_SITES=	https://github.com/OpenVisualCloud/SVT-VP9/raw/ce24589/ffmpeg_plugin/:svtvp9
444
SVTVP9_PATCHFILES=	0001-Add-ability-for-ffmpeg-to-run-svt-vp9.patch:-p1:svtvp9
445
SVTVP9_PATCHFILES=	0001-Add-ability-for-ffmpeg-to-run-svt-vp9.patch:-p1:svtvp9
445
.if make(makesum)
446
.if make(makesum)
446
.MAKEFLAGS:		WITH+=SVTVP9
447
.MAKEFLAGS:		WITH+=SVTVP9
447
.else
448
.else
448
SVTVP9_PREVENTS=	SVTAV1 SVTHEVC
449
SVTVP9_PREVENTS=	SVTAV1 SVTHEVC
449
SVTVP9_PREVENTS_MSG=	${SVTAV1_PREVENTS_MSG}
450
SVTVP9_PREVENTS_MSG=	${SVTAV1_PREVENTS_MSG}
450
.endif
451
.endif
451
452
452
# tensorflow
453
# tensorflow
453
TENSORFLOW_LIB_DEPENDS=	libtensorflow.so:science/tensorflow
454
TENSORFLOW_LIB_DEPENDS=	libtensorflow.so:science/tensorflow
454
TENSORFLOW_CONFIGURE_ENABLE=	libtensorflow
455
TENSORFLOW_CONFIGURE_ENABLE=	libtensorflow
455
456
456
# tesseract
457
# tesseract
457
TESSERACT_LIB_DEPENDS=	libtesseract.so:graphics/tesseract
458
TESSERACT_LIB_DEPENDS=	libtesseract.so:graphics/tesseract
458
TESSERACT_CONFIGURE_ENABLE=	libtesseract
459
TESSERACT_CONFIGURE_ENABLE=	libtesseract
459
460
460
# theora
461
# theora
461
THEORA_LIB_DEPENDS=	libtheora.so:multimedia/libtheora
462
THEORA_LIB_DEPENDS=	libtheora.so:multimedia/libtheora
462
THEORA_CONFIGURE_ENABLE=	libtheora
463
THEORA_CONFIGURE_ENABLE=	libtheora
463
464
464
# twolame
465
# twolame
465
TWOLAME_LIB_DEPENDS=	libtwolame.so:audio/twolame
466
TWOLAME_LIB_DEPENDS=	libtwolame.so:audio/twolame
466
TWOLAME_CONFIGURE_ENABLE=	libtwolame
467
TWOLAME_CONFIGURE_ENABLE=	libtwolame
467
468
468
# vaapi
469
# vaapi
469
VAAPI_LIB_DEPENDS=	libva.so:multimedia/libva
470
VAAPI_LIB_DEPENDS=	libva.so:multimedia/libva
470
VAAPI_CONFIGURE_ENABLE=	vaapi
471
VAAPI_CONFIGURE_ENABLE=	vaapi
471
472
472
# vapoursynth
473
# vapoursynth
473
VAPOURSYNTH_LIB_DEPENDS=	libvapoursynth-script.so:multimedia/vapoursynth
474
VAPOURSYNTH_LIB_DEPENDS=	libvapoursynth-script.so:multimedia/vapoursynth
474
VAPOURSYNTH_CONFIGURE_ENABLE=	vapoursynth
475
VAPOURSYNTH_CONFIGURE_ENABLE=	vapoursynth
475
476
476
# vdpau
477
# vdpau
477
VDPAU_USE=		XORG=x11
478
VDPAU_USE=		XORG=x11
478
VDPAU_LIB_DEPENDS=	libvdpau.so:multimedia/libvdpau
479
VDPAU_LIB_DEPENDS=	libvdpau.so:multimedia/libvdpau
479
VDPAU_CONFIGURE_ENABLE=	vdpau
480
VDPAU_CONFIGURE_ENABLE=	vdpau
480
481
481
# armv6/armv7
482
# armv6/armv7
482
VFP_CONFIGURE_ENABLE=	vfp
483
VFP_CONFIGURE_ENABLE=	vfp
483
NEON_CONFIGURE_ENABLE=	neon
484
NEON_CONFIGURE_ENABLE=	neon
484
.if ! ${CFLAGS:M-march*}
485
.if ! ${CFLAGS:M-march*}
485
NEON_CONFIGURE_ON=	--cpu=armv7-a
486
NEON_CONFIGURE_ON=	--cpu=armv7-a
486
.endif
487
.endif
487
488
488
# vo-amrwbenc
489
# vo-amrwbenc
489
VO_AMRWBENC_LIB_DEPENDS=	libvo-amrwbenc.so:audio/vo-amrwbenc
490
VO_AMRWBENC_LIB_DEPENDS=	libvo-amrwbenc.so:audio/vo-amrwbenc
490
VO_AMRWBENC_CONFIGURE_ENABLE=	libvo-amrwbenc
491
VO_AMRWBENC_CONFIGURE_ENABLE=	libvo-amrwbenc
491
VO_AMRWBENC_IMPLIES=	GPL3
492
VO_AMRWBENC_IMPLIES=	GPL3
492
493
493
# vid.stab
494
# vid.stab
494
VIDSTAB_LIB_DEPENDS=	libvidstab.so:multimedia/vid.stab
495
VIDSTAB_LIB_DEPENDS=	libvidstab.so:multimedia/vid.stab
495
VIDSTAB_CONFIGURE_ENABLE=	libvidstab
496
VIDSTAB_CONFIGURE_ENABLE=	libvidstab
496
497
497
# vorbis
498
# vorbis
498
VORBIS_LIB_DEPENDS=	libvorbisenc.so:audio/libvorbis
499
VORBIS_LIB_DEPENDS=	libvorbisenc.so:audio/libvorbis
499
VORBIS_CONFIGURE_ENABLE=	libvorbis
500
VORBIS_CONFIGURE_ENABLE=	libvorbis
500
501
501
# vp8
502
# vp8
502
VPX_LIB_DEPENDS=	libvpx.so:multimedia/libvpx
503
VPX_LIB_DEPENDS=	libvpx.so:multimedia/libvpx
503
VPX_CONFIGURE_ENABLE=	libvpx
504
VPX_CONFIGURE_ENABLE=	libvpx
504
505
505
# wavpack
506
# wavpack
506
WAVPACK_LIB_DEPENDS=	libwavpack.so:audio/wavpack
507
WAVPACK_LIB_DEPENDS=	libwavpack.so:audio/wavpack
507
WAVPACK_CONFIGURE_ENABLE=	libwavpack
508
WAVPACK_CONFIGURE_ENABLE=	libwavpack
508
509
509
# webp
510
# webp
510
WEBP_LIB_DEPENDS=	libwebp.so:graphics/webp
511
WEBP_LIB_DEPENDS=	libwebp.so:graphics/webp
511
WEBP_CONFIGURE_ENABLE=	libwebp
512
WEBP_CONFIGURE_ENABLE=	libwebp
512
513
513
# x264
514
# x264
514
X264_LIB_DEPENDS=	libx264.so:multimedia/libx264
515
X264_LIB_DEPENDS=	libx264.so:multimedia/libx264
515
X264_CONFIGURE_ENABLE=	libx264
516
X264_CONFIGURE_ENABLE=	libx264
516
517
517
# x265
518
# x265
518
X265_LIB_DEPENDS=	libx265.so:multimedia/x265
519
X265_LIB_DEPENDS=	libx265.so:multimedia/x265
519
X265_CONFIGURE_ENABLE=	libx265
520
X265_CONFIGURE_ENABLE=	libx265
520
521
521
# xavs2
522
# xavs2
522
XAVS2_LIB_DEPENDS=	libxavs2.so:multimedia/xavs2
523
XAVS2_LIB_DEPENDS=	libxavs2.so:multimedia/xavs2
523
XAVS2_CONFIGURE_ENABLE=	libxavs2
524
XAVS2_CONFIGURE_ENABLE=	libxavs2
524
525
525
# xcb
526
# xcb
526
XCB_USE=		XORG=xcb
527
XCB_USE=		XORG=xcb
527
XCB_CONFIGURE_ENABLE=	libxcb
528
XCB_CONFIGURE_ENABLE=	libxcb
528
529
529
# xvid
530
# xvid
530
XVID_LIB_DEPENDS=	libxvidcore.so:multimedia/xvid
531
XVID_LIB_DEPENDS=	libxvidcore.so:multimedia/xvid
531
XVID_CONFIGURE_ENABLE=	libxvid
532
XVID_CONFIGURE_ENABLE=	libxvid
532
533
533
# xv
534
# xv
534
XVIDEO_USE=		XORG=x11,xext,xv
535
XVIDEO_USE=		XORG=x11,xext,xv
535
XVIDEO_CONFIGURE_OFF=	--disable-outdev=xv
536
XVIDEO_CONFIGURE_OFF=	--disable-outdev=xv
536
537
537
# zimg
538
# zimg
538
ZIMG_LIB_DEPENDS=	libzimg.so:graphics/sekrit-twc-zimg
539
ZIMG_LIB_DEPENDS=	libzimg.so:graphics/sekrit-twc-zimg
539
ZIMG_CONFIGURE_ENABLE=	libzimg
540
ZIMG_CONFIGURE_ENABLE=	libzimg
540
541
541
# zmq
542
# zmq
542
ZMQ_LIB_DEPENDS=	libzmq.so:net/libzmq${ZMQ_VERSION}
543
ZMQ_LIB_DEPENDS=	libzmq.so:net/libzmq${ZMQ_VERSION}
543
ZMQ_CONFIGURE_ENABLE=	libzmq
544
ZMQ_CONFIGURE_ENABLE=	libzmq
544
ZMQ_VERSION?=		4
545
ZMQ_VERSION?=		4
545
546
546
# zvbi
547
# zvbi
547
ZVBI_LIB_DEPENDS=	libzvbi.so:devel/libzvbi
548
ZVBI_LIB_DEPENDS=	libzvbi.so:devel/libzvbi
548
ZVBI_CONFIGURE_ENABLE=	libzvbi
549
ZVBI_CONFIGURE_ENABLE=	libzvbi
549
550
550
# License knobs
551
# License knobs
551
GPL3_CONFIGURE_ENABLE=	version3
552
GPL3_CONFIGURE_ENABLE=	version3
552
GPL3_VARS=		LICENSE="GPLv3+ LGPL3+"
553
GPL3_VARS=		LICENSE="GPLv3+ LGPL3+"
553
LICENSE_FILE_GPLv3=	${WRKSRC}/COPYING.GPLv3
554
LICENSE_FILE_GPLv3=	${WRKSRC}/COPYING.GPLv3
554
LICENSE_FILE_LGPL3=	${WRKSRC}/COPYING.LGPLv3
555
LICENSE_FILE_LGPL3=	${WRKSRC}/COPYING.LGPLv3
555
556
556
NONFREE_CONFIGURE_ENABLE=nonfree
557
NONFREE_CONFIGURE_ENABLE=nonfree
557
NONFREE_VARS=		RESTRICTED="enabling OPENSSL or FDK_AAC restricts redistribution"
558
NONFREE_VARS=		RESTRICTED="enabling OPENSSL or FDK_AAC restricts redistribution"
558
559
559
INSTALL_TARGET=	install-progs install-doc install-data \
560
INSTALL_TARGET=	install-progs install-doc install-data \
560
		install-libs install-headers install-examples
561
		install-libs install-headers install-examples
561
562
562
DATADIR=	${PREFIX}/share/${PORTNAME}${PKGNAMESUFFIX}
563
DATADIR=	${PREFIX}/share/${PORTNAME}${PKGNAMESUFFIX}
563
DOCSDIR=	${PREFIX}/share/doc/${PORTNAME}${PKGNAMESUFFIX}
564
DOCSDIR=	${PREFIX}/share/doc/${PORTNAME}${PKGNAMESUFFIX}
564
CONFIGURE_ENV+=	COMPILER_PATH=${LOCALBASE}/bin
565
CONFIGURE_ENV+=	COMPILER_PATH=${LOCALBASE}/bin
565
MAKE_ENV+=	COMPILER_PATH=${LOCALBASE}/bin V=1
566
MAKE_ENV+=	COMPILER_PATH=${LOCALBASE}/bin V=1
566
567
567
CONFIGURE_ARGS+=--prefix="${PREFIX}" \
568
CONFIGURE_ARGS+=--prefix="${PREFIX}" \
568
		--mandir="${PREFIX}/man" \
569
		--mandir="${PREFIX}/man" \
569
		--datadir="${DATADIR}" \
570
		--datadir="${DATADIR}" \
570
		--pkgconfigdir="${PREFIX}/libdata/pkgconfig" \
571
		--pkgconfigdir="${PREFIX}/libdata/pkgconfig" \
571
		--enable-shared \
572
		--enable-shared \
572
		--enable-pic \
573
		--enable-pic \
573
		--enable-gpl \
574
		--enable-gpl \
574
		--enable-postproc \
575
		--enable-postproc \
575
		--enable-avfilter \
576
		--enable-avfilter \
576
		--enable-avresample \
577
		--enable-avresample \
577
		--enable-pthreads \
578
		--enable-pthreads \
578
		--cc="${CC}"
579
		--cc="${CC}"
579
580
580
CONFIGURE_ENV_aarch64_clang=	ASFLAGS=-no-integrated-as
581
CONFIGURE_ENV_aarch64_clang=	ASFLAGS=-no-integrated-as
581
CONFIGURE_ENV_armv6_clang=	ASFLAGS=-no-integrated-as
582
CONFIGURE_ENV_armv6_clang=	ASFLAGS=-no-integrated-as
582
CONFIGURE_ENV_armv7_clang=	ASFLAGS=-no-integrated-as
583
CONFIGURE_ENV_armv7_clang=	ASFLAGS=-no-integrated-as
583
584
584
DOC_FILES=	Changelog CREDITS INSTALL.md LICENSE.md MAINTAINERS \
585
DOC_FILES=	Changelog CREDITS INSTALL.md LICENSE.md MAINTAINERS \
585
		README.md RELEASE_NOTES
586
		README.md RELEASE_NOTES
586
# under doc subdirectory
587
# under doc subdirectory
587
DOC_DOCFILES=	APIchanges *.txt
588
DOC_DOCFILES=	APIchanges *.txt
588
PORTDOCS=	*
589
PORTDOCS=	*
589
590
590
# Custom helpers. FOO_${ARCH} style from bsd.port.mk
591
# Custom helpers. FOO_${ARCH} style from bsd.port.mk
591
CONFIGURE_ENV+=	${CONFIGURE_ENV_${ARCH}_${CHOSEN_COMPILER_TYPE}}
592
CONFIGURE_ENV+=	${CONFIGURE_ENV_${ARCH}_${CHOSEN_COMPILER_TYPE}}
592
CONFIGURE_ARGS+=${CONFIGURE_ARGS_${OPSYS}_${OSREL:R}_${ARCH}}
593
CONFIGURE_ARGS+=${CONFIGURE_ARGS_${OPSYS}_${OSREL:R}_${ARCH}}
593
594
594
post-patch:
595
post-patch:
595
# {C,LD}FLAGS safeness
596
# {C,LD}FLAGS safeness
596
	@${REINPLACE_CMD} -E \
597
	@${REINPLACE_CMD} -E \
597
		-e 's|require_pkg_config opencv|require_pkg_config opencv-core|g' \
598
		-e 's|require_pkg_config opencv|require_pkg_config opencv-core|g' \
598
		${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
599
		${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
599
600
600
post-install:
601
post-install:
601
	(cd ${WRKSRC} && ${COPYTREE_SHARE} \
602
	(cd ${WRKSRC} && ${COPYTREE_SHARE} \
602
		"${DOC_FILES}" ${STAGEDIR}${DOCSDIR})
603
		"${DOC_FILES}" ${STAGEDIR}${DOCSDIR})
603
	(cd ${WRKSRC}/doc && ${COPYTREE_SHARE} \
604
	(cd ${WRKSRC}/doc && ${COPYTREE_SHARE} \
604
		"${DOC_DOCFILES}" ${STAGEDIR}${DOCSDIR})
605
		"${DOC_DOCFILES}" ${STAGEDIR}${DOCSDIR})
605
606
607
.include <bsd.port.options.mk>
608
609
.if ${PORT_OPTIONS:MOPTIMIZED_CFLAGS}
610
CFLAGS:= ${CFLAGS:S/-O2//g}
611
.endif
612
606
.include <bsd.port.mk>
613
.include <bsd.port.mk>

Return to bug 239509