summaryrefslogtreecommitdiff
path: root/graphics/ffmpeg/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/ffmpeg/Makefile')
-rw-r--r--graphics/ffmpeg/Makefile215
1 files changed, 0 insertions, 215 deletions
diff --git a/graphics/ffmpeg/Makefile b/graphics/ffmpeg/Makefile
deleted file mode 100644
index f1cb349..0000000
--- a/graphics/ffmpeg/Makefile
+++ /dev/null
@@ -1,215 +0,0 @@
1COMMENT= audio/video converter and streamer
2
3V= 4.4.4
4DISTNAME= ffmpeg-${V}
5EPOCH= 1
6REVISION= 3
7CATEGORIES= graphics multimedia
8SITES= https://ffmpeg.org/releases/
9EXTRACT_SUFX= .tar.xz
10
11USE_NOBTCFI-amd64= Yes
12
13SHARED_LIBS= avcodec 25.0 \
14 avdevice 13.0 \
15 avfilter 11.0 \
16 avformat 22.0 \
17 avutil 15.0 \
18 postproc 19.0 \
19 swresample 4.0 \
20 swscale 7.0
21
22HOMEPAGE= https://ffmpeg.org/
23
24MAINTAINER= Brad Smith <brad@comstyle.com>
25
26# LGPLv2.1 and GPLv2
27PERMIT_PACKAGE= Yes
28
29WANTLIB+= SDL2 X11 Xext Xv aom ass bz2 c crypto dav1d fontconfig
30WANTLIB+= freetype fribidi gsm iconv lzma m mp3lame opus
31WANTLIB+= pthread sndio speex ssl theoradec theoraenc v4l2
32WANTLIB+= vorbis vorbisenc vpx x264 x265 xcb xcb-shape xcb-shm
33WANTLIB+= xcb-xfixes xml2 xvidcore vidstab z zimg
34
35COMPILER= base-clang ports-gcc
36COMPILER_LANGS= c
37
38DEBUG_PACKAGES= ${BUILD_PACKAGES}
39
40BUILD_DEPENDS= audio/ladspa \
41 textproc/texi2html \
42 multimedia/frei0r-plugins
43.if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "i386"
44BUILD_DEPENDS+= devel/nasm
45.endif
46LIB_DEPENDS= archivers/bzip2 \
47 archivers/xz \
48 audio/lame \
49 audio/libvorbis \
50 audio/opus \
51 audio/speex \
52 audio/gsm \
53 converters/libiconv \
54 devel/sdl2 \
55 graphics/zimg \
56 multimedia/aom \
57 multimedia/dav1d \
58 multimedia/libass \
59 multimedia/libtheora \
60 multimedia/libv4l \
61 multimedia/libvidstab \
62 multimedia/libvpx \
63 multimedia/x264 \
64 multimedia/x265 \
65 multimedia/xvidcore \
66 textproc/libxml
67
68# inter-library dependencies for the current configuration
69LIBavcodec_EXTRALIBS=-L${LOCALBASE}/lib -laom -ldav1d -lgsm -liconv -llzma -lmp3lame -lopus -lspeex -ltheoradec -ltheoraenc -lvorbis -lvorbisenc -lvpx -lx264 -lx265 -lxvidcore -lm -lz -pthread
70LIBavdevice_EXTRALIBS=-L${LOCALBASE}/lib -L${X11BASE}/lib -lX11 -lXext -lXv -lxcb-shape -lxcb-shm -lxcb-xfixes -lxcb -lsndio -lv4l2 -lm
71LIBavfilter_EXTRALIBS=-L${LOCALBASE}/lib -L${X11BASE}/lib -lass -lfontconfig -lfreetype -lfribidi -lvidstab -lm -lz -lzimg -pthread
72LIBavformat_EXTRALIBS=-L${LOCALBASE}/lib -lbz2 -lxml2 -lssl -lcrypto -lm -lz
73LIBavutil_EXTRALIBS=-lm -pthread
74LIBpostproc_EXTRALIBS=-lm
75LIBswresample_EXTRALIBS=-lm
76LIBswscale_EXTRALIBS=-lm
77
78.if ${MACHINE_ARCH} == i386
79LDLIBFLAGS+= -Wl,-znotext
80.endif
81
82OPTFLAGS= ${CFLAGS}
83
84# until the system headers are fixed properly.
85OPTFLAGS+= -Wno-redundant-decls
86
87FIX_EXTRACT_PERMISSIONS= Yes
88SEPARATE_BUILD= Yes
89USE_GMAKE= Yes
90CONFIGURE_STYLE= simple
91CONFIGURE_ARGS+=--enable-shared \
92 --arch=${MACHINE_ARCH} \
93 --cc=${CC} \
94 --enable-debug \
95 --disable-stripping \
96 --disable-indev=jack \
97 --disable-outdev=sdl2 \
98 --enable-fontconfig \
99 --enable-frei0r \
100 --enable-gpl \
101 --enable-ladspa \
102 --enable-libaom \
103 --enable-libass \
104 --enable-libdav1d \
105 --enable-libfreetype \
106 --enable-libfribidi \
107 --enable-libgsm \
108 --enable-libmp3lame \
109 --enable-libopus \
110 --enable-libspeex \
111 --enable-libtheora \
112 --enable-libv4l2 \
113 --enable-libvorbis \
114 --enable-libvpx \
115 --enable-libx264 \
116 --enable-libx265 \
117 --enable-libxml2 \
118 --enable-libxvid \
119 --enable-libzimg \
120 --enable-nonfree \
121 --enable-openssl \
122 --enable-libvidstab \
123 --extra-cflags="-I${LOCALBASE}/include -I${X11BASE}/include" \
124 --extra-libs="-L${LOCALBASE}/lib -L${X11BASE}/lib" \
125 --extra-ldsoflags="${LDLIBFLAGS}" \
126 --mandir=${PREFIX}/man \
127 --objcc="/usr/bin/false" \
128 --optflags="${OPTFLAGS}"
129
130.if ${MACHINE_ARCH} == "arm"
131CONFIGURE_ARGS+=--disable-asm
132.endif
133.if ${MACHINE_ARCH} == "powerpc"
134CONFIGURE_ARGS+=--disable-altivec
135.endif
136.if ${MACHINE_ARCH} == "mips64" || ${MACHINE_ARCH} == "mips64el"
137CONFIGURE_ARGS+=--disable-mipsdsp \
138 --disable-mipsdspr2 \
139 --disable-mipsfpu \
140 --disable-mmi \
141 --disable-msa
142.endif
143
144CONFIGURE_ENV+= TERM=${TERM} \
145 TMPDIR=${WRKBUILD} \
146 X86ASMFLAGS="${DEBUG}"
147
148MAKE_ENV+= V=1 \
149 libavcodec_extralibs="${LIBavcodec_EXTRALIBS}" \
150 libavdevice_extralibs="${LIBavdevice_EXTRALIBS}" \
151 libavfilter_extralibs="${LIBavfilter_EXTRALIBS}" \
152 libavformat_extralibs="${LIBavformat_EXTRALIBS}" \
153 libavutil_extralibs="${LIBavutil_EXTRALIBS}" \
154 libpostproc_extralibs="${LIBpostproc_EXTRALIBS}" \
155 libswresample_extralibs="${LIBswresample_EXTRALIBS}" \
156 libswscale_extralibs="${LIBswscale_EXTRALIBS}" \
157 libavcodec_linkflags="-Wl,-rpath-link,${LOCALBASE}/lib" \
158 libavdevice_linkflags="-Wl,-rpath-link,${LOCALBASE}/lib:${X11BASE}/lib" \
159 libavfilter_linkflags="-Wl,-rpath-link,${LOCALBASE}/lib:${X11BASE}/lib" \
160 libavformat_linkflags="-Wl,-rpath-link,${LOCALBASE}/lib" \
161 libavutil_linkflags="" \
162 libpostproc_linkflags="" \
163 libswresample_linkflags="" \
164 libswscale_linkflags="" \
165 libavcodec_requires="libswresample libavutil" \
166 libavdevice_requires="libavfilter libswscale libpostproc libavformat libavcodec libswresample libavutil" \
167 libavfilter_requires="libswscale libpostproc libavformat libavcodec libswresample libavutil" \
168 libavformat_requires="libavcodec libswresample libavutil" \
169 libavutil_requires="" \
170 libpostproc_requires="libavutil" \
171 libswresample_requires="libavutil" \
172 libswscale_requires="libavutil"
173
174VERSION_FLAGS= libavcodec_VERSION=${LIBavcodec_VERSION} \
175 libavdevice_VERSION=${LIBavdevice_VERSION} \
176 libavfilter_VERSION=${LIBavfilter_VERSION} \
177 libavformat_VERSION=${LIBavformat_VERSION} \
178 libavutil_VERSION=${LIBavutil_VERSION} \
179 libpostproc_VERSION=${LIBpostproc_VERSION} \
180 libswresample_VERSION=${LIBswresample_VERSION} \
181 libswscale_VERSION=${LIBswscale_VERSION}
182
183MAKE_FLAGS= ${VERSION_FLAGS} \
184 LIBavcodec_EXTRALIBS="-lswresample -lavutil ${LIBavcodec_EXTRALIBS}" \
185 LIBavdevice_EXTRALIBS="-lavfilter -lswscale -lpostproc -lavformat -lavcodec -lswresample -lavutil ${LIBavdevice_EXTRALIBS}" \
186 LIBavfilter_EXTRALIBS="-lswscale -lpostproc -lavformat -lavcodec -lswresample -lavutil ${LIBavfilter_EXTRALIBS}" \
187 LIBavformat_EXTRALIBS="-lavcodec -lswresample -lavutil ${LIBavformat_EXTRALIBS}" \
188 LIBavutil_EXTRALIBS="${LIBavutil_EXTRALIBS}" \
189 LIBpostproc_EXTRALIBS="-lavutil ${LIBpostproc_EXTRALIBS}" \
190 LIBswresample_EXTRALIBS="-lavutil ${LIBswresample_EXTRALIBS}" \
191 LIBswscale_EXTRALIBS="-lavutil ${LIBswscale_EXTRALIBS}"
192FAKE_FLAGS= ${VERSION_FLAGS} \
193 LDCONFIG=true
194
195ALL_TARGET= all tools/qt-faststart
196TEST_TARGET= check
197
198.for _l in avutil avfilter avcodec avformat avdevice swscale swresample postproc
199TEST_LIB_PATH:= ${TEST_LIB_PATH}:${WRKBUILD}/lib${_l}
200.endfor
201TEST_ENV+= LD_LIBRARY_PATH=${TEST_LIB_PATH:C/^://}
202
203HTML_DOCS= developer faq ffmpeg ffplay ffprobe general libavfilter
204
205post-install:
206 ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/ffmpeg
207 ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/ffmpeg
208 ${INSTALL_PROGRAM} ${WRKBUILD}/tools/qt-faststart ${PREFIX}/bin
209.for doc in ${HTML_DOCS}
210 ${INSTALL_DATA} ${WRKBUILD}/doc/${doc}.html ${PREFIX}/share/doc/ffmpeg
211.endfor
212 mv -f ${PREFIX}/share/ffmpeg/examples/* ${PREFIX}/share/examples/ffmpeg
213 -rmdir ${PREFIX}/share/ffmpeg/examples
214
215.include <bsd.port.mk>