summaryrefslogtreecommitdiff
path: root/data/ffmpeg/make.sh
blob: 7b3acf6907865be4d795e77f35c682b9e5fb3d45 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
pkg:setup
ARCH=$(echo ${PKG_TARG} | sed -e s/'-.*'//)

_args='--enable-pthreads --enable-version3 --enable-hardcoded-tables --enable-gnutls '
_args+='--enable-gpl --enable-libmp3lame --enable-libopus --enable-libtheora '
_args+='--enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 '
_args+='--enable-libxvid --enable-lzma'

# Arguments taken from:
# https://github.com/Homebrew/homebrew-core/blob/master/Formula/ffmpeg.rb

# Xz and gnutls included since they are default dependencies.

# WARNING: --enable-gpl and --enable-nonfree can make ffmpeg not legally redistributable.
# --enable-gpl includes code with the gpl license.


./configure --arch=${ARCH} --pkg-config="$(realpath "${PKG_BASE}/util/pkg-config.sh")"	\
	--prefix=/usr --enable-cross-compile --cross-prefix=${PKG_TARG}- --target-os=darwin	\
	--disable-static --enable-shared --disable-debug --disable-stripping			\
	${_args} # --enable-nonfree
make
pkg:install