summaryrefslogtreecommitdiff
path: root/uselessPorts/ffmpeg/Pkgfile
blob: 909ec7674f8efca1093ac57e7d61b1cb979701ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# Description: Complete solution to record, convert and stream audio and video.
# URL: http://ffmpeg.org/
# Maintainer: Erich Eckner, crux at eckner dot net
# Packager: Matt Housh, jaeger at crux dot nu
# Depends on: gnutls lame libass libbluray libgmp libmodplug libsdl libtheora libva libvpx libxvid opencore-amr openjpeg opus rtmpdump schroedinger speex x264 x265

name=ffmpeg
version=3.2.4
release=1
source=(http://ffmpeg.org/releases/$name-$version.tar.bz2)

build() {
	cd $name-$version

	./configure \
		--prefix=/usr \
		--mandir=/usr/share/man \
		--disable-debug \
		--disable-doc \
		--enable-avfilter \
		--enable-avresample \
		--enable-dxva2 \
		--enable-fontconfig \
		--enable-gnutls \
		--enable-gpl \
		--enable-libass \
		--enable-libbluray \
		--enable-libfreetype \
		--enable-libmodplug \
		--enable-libmp3lame \
		--enable-libopencore_amrnb \
		--enable-libopencore_amrwb \
		--enable-libopenjpeg \
		--enable-libopus \
		--enable-librtmp \
		--enable-libschroedinger \
		--enable-libspeex \
		--enable-libtheora \
		--enable-libvorbis \
		--enable-libx264 \
		--enable-libx265 \
		--enable-libvpx \
		--enable-libxvid \
		--enable-pic \
		--enable-postproc \
		--enable-pthreads \
		--enable-shared \
		--enable-swresample \
		--enable-vaapi \
		--enable-vdpau \
		--enable-version3 \
		--enable-x11grab

	[ "$CC" ] || CC=gcc
	make CC="$CC" SHARED_PP='yes' $MAKEFLAGS
	make DESTDIR=$PKG install install-man
	rm $PKG/usr/share/ffmpeg/examples/README
}