|
Lines 36-41
OPTIONS_DEFAULT= FFSERVER FONTCONFIG FREETYPE FREI0R GNUTLS ICONV \
Link Here
|
| 36 |
|
36 |
|
| 37 |
OPTIONS_SINGLE= SSL |
37 |
OPTIONS_SINGLE= SSL |
| 38 |
OPTIONS_SINGLE_SSL= GNUTLS OPENSSL |
38 |
OPTIONS_SINGLE_SSL= GNUTLS OPENSSL |
|
|
39 |
OPTIONS_GROUP= LICENSE |
| 40 |
OPTIONS_GROUP_LICENSE= GPL3 NONFREE |
| 39 |
|
41 |
|
| 40 |
OPTIONS_DEFINE_amd64= MMX SSE |
42 |
OPTIONS_DEFINE_amd64= MMX SSE |
| 41 |
OPTIONS_DEFINE_i386= MMX SSE |
43 |
OPTIONS_DEFINE_i386= MMX SSE |
|
Lines 46-52
ASS_DESC= Subtitles rendering via libass
Link Here
|
| 46 |
CDIO_DESC= Audio CD grabbing with libcdio |
48 |
CDIO_DESC= Audio CD grabbing with libcdio |
| 47 |
FDK_AAC_DESC= AAC audio encoding via Fraunhofer FDK |
49 |
FDK_AAC_DESC= AAC audio encoding via Fraunhofer FDK |
| 48 |
FFSERVER_DESC= Build and install ffserver |
50 |
FFSERVER_DESC= Build and install ffserver |
|
|
51 |
GPL3_DESC= Upgrade (L)GPL to version 3 |
| 49 |
LIBV4L_DESC= Video for Linux support |
52 |
LIBV4L_DESC= Video for Linux support |
|
|
53 |
LICENSE_DESC= Package licensing |
| 54 |
NONFREE_DESC= Allow use of nonfree code |
| 50 |
OPENH264_DESC= H.264 video codec support via OpenH264 |
55 |
OPENH264_DESC= H.264 video codec support via OpenH264 |
| 51 |
X11GRAB_DESC= Enable x11 grabbing |
56 |
X11GRAB_DESC= Enable x11 grabbing |
| 52 |
|
57 |
|
|
Lines 55-61
OPTIONS_SUB= yes
Link Here
|
| 55 |
# aacplus |
60 |
# aacplus |
| 56 |
AACPLUS_LIB_DEPENDS= libaacplus.so:${PORTSDIR}/audio/libaacplus |
61 |
AACPLUS_LIB_DEPENDS= libaacplus.so:${PORTSDIR}/audio/libaacplus |
| 57 |
AACPLUS_CONFIGURE_ENABLE= libaacplus |
62 |
AACPLUS_CONFIGURE_ENABLE= libaacplus |
| 58 |
AACPLUS_VARS= FFMPEG_NONFREE=yes |
63 |
AACPLUS_IMPLIES= NONFREE |
| 59 |
|
64 |
|
| 60 |
# alsa |
65 |
# alsa |
| 61 |
ALSA_CONFIGURE_OFF= --disable-indev=alsa \ |
66 |
ALSA_CONFIGURE_OFF= --disable-indev=alsa \ |
|
Lines 65-76
ALSA_LIB_DEPENDS= libasound.so:${PORTSDIR}/audio/alsa-lib
Link Here
|
| 65 |
# Opencore AMR NB |
70 |
# Opencore AMR NB |
| 66 |
AMR_NB_LIB_DEPENDS= libopencore-amrnb.so:${PORTSDIR}/audio/opencore-amr |
71 |
AMR_NB_LIB_DEPENDS= libopencore-amrnb.so:${PORTSDIR}/audio/opencore-amr |
| 67 |
AMR_NB_CONFIGURE_ENABLE= libopencore-amrnb |
72 |
AMR_NB_CONFIGURE_ENABLE= libopencore-amrnb |
| 68 |
AMR_NB_VARS= FFMPEG_LICENSE_GPL3=yes |
73 |
AMR_NB_IMPLIES= GPL3 |
| 69 |
|
74 |
|
| 70 |
# Opencore AMR WB |
75 |
# Opencore AMR WB |
| 71 |
AMR_WB_LIB_DEPENDS= libopencore-amrwb.so:${PORTSDIR}/audio/opencore-amr |
76 |
AMR_WB_LIB_DEPENDS= libopencore-amrwb.so:${PORTSDIR}/audio/opencore-amr |
| 72 |
AMR_WB_CONFIGURE_ENABLE= libopencore-amrwb |
77 |
AMR_WB_CONFIGURE_ENABLE= libopencore-amrwb |
| 73 |
AMR_WB_VARS= FFMPEG_LICENSE_GPL3=yes |
78 |
AMR_WB_IMPLIES= GPL3 |
| 74 |
|
79 |
|
| 75 |
# ass |
80 |
# ass |
| 76 |
ASS_LIB_DEPENDS= libass.so:${PORTSDIR}/multimedia/libass |
81 |
ASS_LIB_DEPENDS= libass.so:${PORTSDIR}/multimedia/libass |
|
Lines 91-102
DEBUG_CONFIGURE_OFF= --disable-debug
Link Here
|
| 91 |
# faac |
96 |
# faac |
| 92 |
FAAC_LIB_DEPENDS= libfaac.so:${PORTSDIR}/audio/faac |
97 |
FAAC_LIB_DEPENDS= libfaac.so:${PORTSDIR}/audio/faac |
| 93 |
FAAC_CONFIGURE_ENABLE= libfaac |
98 |
FAAC_CONFIGURE_ENABLE= libfaac |
| 94 |
FAAC_VARS= FFMPEG_NONFREE=yes |
99 |
FAAC_IMPLIES= NONFREE |
| 95 |
|
100 |
|
| 96 |
# fdk_aac |
101 |
# fdk_aac |
| 97 |
FDK_AAC_LIB_DEPENDS= libfdk-aac.so:${PORTSDIR}/audio/fdk-aac |
102 |
FDK_AAC_LIB_DEPENDS= libfdk-aac.so:${PORTSDIR}/audio/fdk-aac |
| 98 |
FDK_AAC_CONFIGURE_ENABLE= libfdk-aac |
103 |
FDK_AAC_CONFIGURE_ENABLE= libfdk-aac |
| 99 |
FDK_AAC_VARS= FFMPEG_NONFREE=yes |
104 |
FDK_AAC_IMPLIES= NONFREE |
| 100 |
|
105 |
|
| 101 |
# ffserver |
106 |
# ffserver |
| 102 |
FFSERVER_CONFIGURE_ENABLE= ffserver |
107 |
FFSERVER_CONFIGURE_ENABLE= ffserver |
|
Lines 171-177
OPENJPEG_CONFIGURE_ENABLE= libopenjpeg
Link Here
|
| 171 |
# openssl |
176 |
# openssl |
| 172 |
OPENSSL_USE= OPENSSL=yes |
177 |
OPENSSL_USE= OPENSSL=yes |
| 173 |
OPENSSL_CONFIGURE_ENABLE= openssl |
178 |
OPENSSL_CONFIGURE_ENABLE= openssl |
| 174 |
OPENSSL_VARS= FFMPEG_NONFREE=yes |
179 |
OPENSSL_IMPLIES= NONFREE |
| 175 |
|
180 |
|
| 176 |
# optimizations |
181 |
# optimizations |
| 177 |
OPTIMIZED_CFLAGS_CFLAGS=-O3 -ffast-math -fno-finite-math-only -fomit-frame-pointer |
182 |
OPTIMIZED_CFLAGS_CFLAGS=-O3 -ffast-math -fno-finite-math-only -fomit-frame-pointer |
|
Lines 218-229
VDPAU_CONFIGURE_ENABLE= vdpau
Link Here
|
| 218 |
# vo-aacenc |
223 |
# vo-aacenc |
| 219 |
VO_AACENC_LIB_DEPENDS= libvo-aacenc.so:${PORTSDIR}/audio/vo-aacenc |
224 |
VO_AACENC_LIB_DEPENDS= libvo-aacenc.so:${PORTSDIR}/audio/vo-aacenc |
| 220 |
VO_AACENC_CONFIGURE_ENABLE= libvo-aacenc |
225 |
VO_AACENC_CONFIGURE_ENABLE= libvo-aacenc |
| 221 |
VO_AACENC_VARS= FFMPEG_LICENSE_GPL3=yes |
226 |
VO_AACENC_IMPLIES= GPL3 |
| 222 |
|
227 |
|
| 223 |
# vo-amrwbenc |
228 |
# vo-amrwbenc |
| 224 |
VO_AMRWBENC_LIB_DEPENDS= libvo-amrwbenc.so:${PORTSDIR}/audio/vo-amrwbenc |
229 |
VO_AMRWBENC_LIB_DEPENDS= libvo-amrwbenc.so:${PORTSDIR}/audio/vo-amrwbenc |
| 225 |
VO_AMRWBENC_CONFIGURE_ENABLE= libvo-amrwbenc |
230 |
VO_AMRWBENC_CONFIGURE_ENABLE= libvo-amrwbenc |
| 226 |
VO_AMRWBENC_VARS= FFMPEG_LICENSE_GPL3=yes |
231 |
VO_AMRWBENC_IMPLIES= GPL3 |
| 227 |
|
232 |
|
| 228 |
# vorbis |
233 |
# vorbis |
| 229 |
VORBIS_LIB_DEPENDS= libvorbisenc.so:${PORTSDIR}/audio/libvorbis |
234 |
VORBIS_LIB_DEPENDS= libvorbisenc.so:${PORTSDIR}/audio/libvorbis |
|
Lines 250-255
X265_CONFIGURE_ENABLE= libx265
Link Here
|
| 250 |
XVID_LIB_DEPENDS= libxvidcore.so:${PORTSDIR}/multimedia/xvid |
255 |
XVID_LIB_DEPENDS= libxvidcore.so:${PORTSDIR}/multimedia/xvid |
| 251 |
XVID_CONFIGURE_ENABLE= libxvid |
256 |
XVID_CONFIGURE_ENABLE= libxvid |
| 252 |
|
257 |
|
|
|
258 |
# License knobs |
| 259 |
GPL3_CONFIGURE_ENABLE= version3 |
| 260 |
GPL3_VARS= LICENSE="GPLv3 LGPL3" |
| 261 |
LICENSE_FILE_GPLv3= ${WRKSRC}/COPYING.GPLv3 |
| 262 |
LICENSE_FILE_LGPL3= ${WRKSRC}/COPYING.LGPLv3 |
| 263 |
|
| 264 |
NONFREE_CONFIGURE_ENABLE=nonfree |
| 265 |
NONFREE_VARS= RESTRICTED="linking to libfaac or libaacplus restricts redistribution" |
| 266 |
|
| 253 |
FFPROGS= ffmpeg ffprobe |
267 |
FFPROGS= ffmpeg ffprobe |
| 254 |
INSTALL_TARGET= install-progs install-data install-libs install-headers |
268 |
INSTALL_TARGET= install-progs install-data install-libs install-headers |
| 255 |
|
269 |
|
|
Lines 321-339
DOC_DOCFILES+= ffplay.html
Link Here
|
| 321 |
CONFIGURE_ARGS+= --disable-ffplay --disable-outdev=sdl |
335 |
CONFIGURE_ARGS+= --disable-ffplay --disable-outdev=sdl |
| 322 |
.endif |
336 |
.endif |
| 323 |
|
337 |
|
| 324 |
# License knobs |
|
|
| 325 |
.if defined(FFMPEG_NONFREE) |
| 326 |
RESTRICTED= linking to libfaac or libaacplus restricts redistribution |
| 327 |
CONFIGURE_ARGS+= --enable-nonfree |
| 328 |
.endif |
| 329 |
|
| 330 |
.if defined(FFMPEG_LICENSE_GPL3) |
| 331 |
CONFIGURE_ARGS+= --enable-version3 |
| 332 |
LICENSE= GPLv3 LGPL3 |
| 333 |
LICENSE_FILE_GPLv3= ${WRKSRC}/COPYING.GPLv3 |
| 334 |
LICENSE_FILE_LGPL3= ${WRKSRC}/COPYING.LGPLv3 |
| 335 |
.endif |
| 336 |
|
| 337 |
post-patch: |
338 |
post-patch: |
| 338 |
# {C,LD}FLAGS safeness |
339 |
# {C,LD}FLAGS safeness |
| 339 |
@${REINPLACE_CMD} -e 's|/etc/ffserver.conf|${PREFIX}/etc/ffserver.conf|' \ |
340 |
@${REINPLACE_CMD} -e 's|/etc/ffserver.conf|${PREFIX}/etc/ffserver.conf|' \ |