2018-01-05 10:25:16 +01:00
|
|
|
import re
|
2015-11-23 10:43:06 +01:00
|
|
|
from build.project import Project
|
|
|
|
from build.zlib import ZlibProject
|
|
|
|
from build.autotools import AutotoolsProject
|
|
|
|
from build.ffmpeg import FfmpegProject
|
|
|
|
from build.boost import BoostProject
|
|
|
|
|
|
|
|
libogg = AutotoolsProject(
|
|
|
|
'http://downloads.xiph.org/releases/ogg/libogg-1.3.2.tar.xz',
|
|
|
|
'5c3a34309d8b98640827e5d0991a4015',
|
|
|
|
'lib/libogg.a',
|
2018-01-05 07:27:09 +01:00
|
|
|
[
|
|
|
|
'--disable-shared', '--enable-static',
|
|
|
|
],
|
2015-11-23 10:43:06 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
libvorbis = AutotoolsProject(
|
|
|
|
'http://downloads.xiph.org/releases/vorbis/libvorbis-1.3.5.tar.xz',
|
|
|
|
'28cb28097c07a735d6af56e598e1c90f',
|
|
|
|
'lib/libvorbis.a',
|
2018-01-05 07:27:09 +01:00
|
|
|
[
|
|
|
|
'--disable-shared', '--enable-static',
|
|
|
|
],
|
2015-11-23 10:43:06 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
opus = AutotoolsProject(
|
2017-08-24 09:00:25 +02:00
|
|
|
'https://archive.mozilla.org/pub/opus/opus-1.2.1.tar.gz',
|
|
|
|
'cfafd339ccd9c5ef8d6ab15d7e1a412c054bf4cb4ecbbbcc78c12ef2def70732',
|
2015-11-23 10:43:06 +01:00
|
|
|
'lib/libopus.a',
|
2018-01-05 07:27:09 +01:00
|
|
|
[
|
|
|
|
'--disable-shared', '--enable-static',
|
|
|
|
],
|
2018-01-05 10:33:53 +01:00
|
|
|
|
|
|
|
# suppress "visibility default" from opus_defines.h
|
|
|
|
cppflags='-DOPUS_EXPORT=',
|
2015-11-23 10:43:06 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
flac = AutotoolsProject(
|
2017-01-03 15:04:07 +01:00
|
|
|
'http://downloads.xiph.org/releases/flac/flac-1.3.2.tar.xz',
|
|
|
|
'91cfc3ed61dc40f47f050a109b08610667d73477af6ef36dcad31c31a4a8d53f',
|
2015-11-23 10:43:06 +01:00
|
|
|
'lib/libFLAC.a',
|
|
|
|
[
|
|
|
|
'--disable-shared', '--enable-static',
|
|
|
|
'--disable-xmms-plugin', '--disable-cpplibs',
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
zlib = ZlibProject(
|
2017-03-26 14:07:26 +02:00
|
|
|
'http://zlib.net/zlib-1.2.11.tar.xz',
|
|
|
|
'4ff941449631ace0d4d203e3483be9dbc9da454084111f97ea0a2114e19bf066',
|
2015-11-23 10:43:06 +01:00
|
|
|
'lib/libz.a',
|
|
|
|
)
|
|
|
|
|
|
|
|
libid3tag = AutotoolsProject(
|
|
|
|
'ftp://ftp.mars.org/pub/mpeg/libid3tag-0.15.1b.tar.gz',
|
|
|
|
'e5808ad997ba32c498803822078748c3',
|
|
|
|
'lib/libid3tag.a',
|
2018-01-05 07:27:09 +01:00
|
|
|
[
|
|
|
|
'--disable-shared', '--enable-static',
|
2018-01-05 07:30:09 +01:00
|
|
|
|
|
|
|
# without this, libid3tag's configure.ac ignores -O* and -f*
|
|
|
|
'--disable-debugging',
|
2018-01-05 07:27:09 +01:00
|
|
|
],
|
2015-11-23 10:43:06 +01:00
|
|
|
autogen=True,
|
2018-01-05 10:25:16 +01:00
|
|
|
|
|
|
|
edits={
|
|
|
|
# fix bug in libid3tag's configure.ac which discards all but the last optimization flag
|
|
|
|
'configure.ac': lambda data: re.sub(r'optimize="\$1"', r'optimize="$optimize $1"', data, count=1),
|
|
|
|
}
|
2015-11-23 10:43:06 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
libmad = AutotoolsProject(
|
|
|
|
'ftp://ftp.mars.org/pub/mpeg/libmad-0.15.1b.tar.gz',
|
|
|
|
'1be543bc30c56fb6bea1d7bf6a64e66c',
|
|
|
|
'lib/libmad.a',
|
2018-01-05 07:27:09 +01:00
|
|
|
[
|
|
|
|
'--disable-shared', '--enable-static',
|
2018-01-05 07:30:09 +01:00
|
|
|
|
|
|
|
# without this, libmad's configure.ac ignores -O* and -f*
|
|
|
|
'--disable-debugging',
|
2018-01-05 07:27:09 +01:00
|
|
|
],
|
2015-11-23 10:43:06 +01:00
|
|
|
autogen=True,
|
|
|
|
)
|
|
|
|
|
2017-07-19 20:26:11 +02:00
|
|
|
liblame = AutotoolsProject(
|
|
|
|
'http://downloads.sourceforge.net/project/lame/lame/3.99/lame-3.99.5.tar.gz',
|
|
|
|
'24346b4158e4af3bd9f2e194bb23eb473c75fb7377011523353196b19b9a23ff',
|
|
|
|
'lib/libmp3lame.a',
|
|
|
|
[
|
|
|
|
'--disable-shared', '--enable-static',
|
|
|
|
'--disable-gtktest', '--disable-analyzer-hooks',
|
|
|
|
'--disable-decoder', '--disable-frontend',
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
2015-11-23 10:43:06 +01:00
|
|
|
ffmpeg = FfmpegProject(
|
2017-12-11 19:00:22 +01:00
|
|
|
'http://ffmpeg.org/releases/ffmpeg-3.4.1.tar.xz',
|
|
|
|
'5a77278a63741efa74e26bf197b9bb09ac6381b9757391b922407210f0f991c0',
|
2015-11-23 10:43:06 +01:00
|
|
|
'lib/libavcodec.a',
|
|
|
|
[
|
|
|
|
'--disable-shared', '--enable-static',
|
|
|
|
'--enable-gpl',
|
|
|
|
'--enable-small',
|
|
|
|
'--disable-pthreads',
|
|
|
|
'--disable-programs',
|
|
|
|
'--disable-doc',
|
|
|
|
'--disable-avdevice',
|
|
|
|
'--disable-swresample',
|
|
|
|
'--disable-swscale',
|
|
|
|
'--disable-postproc',
|
|
|
|
'--disable-avfilter',
|
2017-12-12 09:57:35 +01:00
|
|
|
'--disable-lzo',
|
|
|
|
'--disable-faan',
|
|
|
|
'--disable-pixelutils',
|
2015-11-23 10:43:06 +01:00
|
|
|
'--disable-network',
|
|
|
|
'--disable-encoders',
|
2018-01-05 11:11:20 +01:00
|
|
|
'--disable-muxers',
|
2015-11-23 10:43:06 +01:00
|
|
|
'--disable-protocols',
|
2017-12-12 09:57:35 +01:00
|
|
|
'--disable-devices',
|
2015-11-23 10:43:06 +01:00
|
|
|
'--disable-filters',
|
2018-01-05 11:11:20 +01:00
|
|
|
'--disable-filters',
|
2017-12-12 09:57:35 +01:00
|
|
|
'--disable-v4l2_m2m',
|
2017-12-12 10:01:39 +01:00
|
|
|
|
2018-01-05 11:11:20 +01:00
|
|
|
'--disable-parser=bmp',
|
|
|
|
'--disable-parser=cavsvideo',
|
|
|
|
'--disable-parser=dvbsub',
|
|
|
|
'--disable-parser=dvdsub',
|
|
|
|
'--disable-parser=dvd_nav',
|
|
|
|
'--disable-parser=mpeg4video',
|
|
|
|
'--disable-parser=mpegaudio',
|
|
|
|
'--disable-parser=mpegvideo',
|
|
|
|
'--disable-parser=vc1',
|
|
|
|
'--disable-parser=png',
|
|
|
|
'--disable-parser=pnm',
|
|
|
|
|
|
|
|
# we don't need these decoders, because we have the dedicated
|
|
|
|
# libraries
|
|
|
|
'--disable-decoder=flac',
|
|
|
|
'--disable-decoder=mp1',
|
|
|
|
'--disable-decoder=mp1float',
|
|
|
|
'--disable-decoder=mp2',
|
|
|
|
'--disable-decoder=mp2float',
|
|
|
|
'--disable-decoder=mp3',
|
|
|
|
'--disable-decoder=mp3adu',
|
|
|
|
'--disable-decoder=mp3adufloat',
|
|
|
|
'--disable-decoder=mp3float',
|
|
|
|
'--disable-decoder=mp3on4',
|
|
|
|
'--disable-decoder=mp3on4float',
|
|
|
|
'--disable-decoder=opus',
|
|
|
|
'--disable-decoder=vorbis',
|
|
|
|
|
|
|
|
# audio codecs nobody uses
|
|
|
|
'--disable-decoder=atrac1',
|
|
|
|
'--disable-decoder=atrac3',
|
|
|
|
'--disable-decoder=atrac3al',
|
|
|
|
'--disable-decoder=atrac3p',
|
|
|
|
'--disable-decoder=atrac3pal',
|
|
|
|
'--disable-decoder=dsicinaudio',
|
|
|
|
'--disable-decoder=dvaudio',
|
|
|
|
'--disable-decoder=metasound',
|
|
|
|
'--disable-decoder=paf_audio',
|
|
|
|
'--disable-decoder=ralf',
|
|
|
|
'--disable-decoder=qdm2',
|
|
|
|
'--disable-decoder=qdmc',
|
|
|
|
|
|
|
|
# disable lots of image and video codecs
|
|
|
|
'--disable-decoder=bmp',
|
|
|
|
'--disable-decoder=clearvideo',
|
|
|
|
'--disable-decoder=dsicinvideo',
|
|
|
|
'--disable-decoder=dvvideo',
|
|
|
|
'--disable-decoder=ffv1',
|
|
|
|
'--disable-decoder=ffvhuff',
|
|
|
|
'--disable-decoder=ffwavesynth',
|
|
|
|
'--disable-decoder=flic',
|
|
|
|
'--disable-decoder=flv',
|
|
|
|
'--disable-decoder=gif',
|
|
|
|
'--disable-decoder=h261',
|
|
|
|
'--disable-decoder=h263',
|
|
|
|
'--disable-decoder=h263i',
|
|
|
|
'--disable-decoder=h263p',
|
|
|
|
'--disable-decoder=h264',
|
2017-12-12 10:01:39 +01:00
|
|
|
'--disable-decoder=hevc',
|
2018-01-05 11:11:20 +01:00
|
|
|
'--disable-decoder=hnm4_video',
|
|
|
|
'--disable-decoder=hq_hqa',
|
|
|
|
'--disable-decoder=hqx',
|
|
|
|
'--disable-decoder=iff_ilbm',
|
|
|
|
'--disable-decoder=indeo2',
|
|
|
|
'--disable-decoder=indeo3',
|
|
|
|
'--disable-decoder=indeo4',
|
|
|
|
'--disable-decoder=indeo5',
|
|
|
|
'--disable-decoder=interplay_video',
|
|
|
|
'--disable-decoder=jpeg2000',
|
|
|
|
'--disable-decoder=jpegls',
|
|
|
|
'--disable-decoder=microdvd',
|
|
|
|
'--disable-decoder=mjpeg',
|
|
|
|
'--disable-decoder=mmvideo',
|
|
|
|
'--disable-decoder=motionpixels',
|
|
|
|
'--disable-decoder=mpeg1video',
|
|
|
|
'--disable-decoder=mpeg2video',
|
|
|
|
'--disable-decoder=mpeg4',
|
|
|
|
'--disable-decoder=mpegvideo',
|
|
|
|
'--disable-decoder=msmpeg4_crystalhd',
|
|
|
|
'--disable-decoder=msmpeg4v1',
|
|
|
|
'--disable-decoder=msmpeg4v2',
|
|
|
|
'--disable-decoder=msmpeg4v3',
|
|
|
|
'--disable-decoder=mvc1',
|
|
|
|
'--disable-decoder=mvc2',
|
|
|
|
'--disable-decoder=on2avc',
|
|
|
|
'--disable-decoder=paf_video',
|
|
|
|
'--disable-decoder=qdraw',
|
|
|
|
'--disable-decoder=qpeg',
|
|
|
|
'--disable-decoder=rawvideo',
|
|
|
|
'--disable-decoder=rv10',
|
|
|
|
'--disable-decoder=rv20',
|
|
|
|
'--disable-decoder=rv30',
|
|
|
|
'--disable-decoder=rv40',
|
|
|
|
'--disable-decoder=sheervideo',
|
|
|
|
'--disable-decoder=tiff',
|
|
|
|
'--disable-decoder=mottiertexseqvideo',
|
|
|
|
'--disable-decoder=truemotion1',
|
|
|
|
'--disable-decoder=truemotion2',
|
|
|
|
'--disable-decoder=truemotion2rt',
|
|
|
|
'--disable-decoder=twinvq',
|
|
|
|
'--disable-decoder=utvideo',
|
|
|
|
'--disable-decoder=vc1',
|
|
|
|
'--disable-decoder=vmdvideo',
|
|
|
|
'--disable-decoder=vp3',
|
|
|
|
'--disable-decoder=vp5',
|
|
|
|
'--disable-decoder=vp6',
|
|
|
|
'--disable-decoder=vp7',
|
|
|
|
'--disable-decoder=vp8',
|
|
|
|
'--disable-decoder=vp9',
|
|
|
|
'--disable-decoder=wmv1',
|
|
|
|
'--disable-decoder=wmv2',
|
|
|
|
'--disable-decoder=wmv3',
|
|
|
|
'--disable-decoder=yuv4',
|
2015-11-23 10:43:06 +01:00
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
curl = AutotoolsProject(
|
2017-12-12 09:15:24 +01:00
|
|
|
'http://curl.haxx.se/download/curl-7.57.0.tar.xz',
|
|
|
|
'f5f6fd3c72b7b8389969f4fb671ed8532fa9b5bb7a5cae7ca89bc1cea45c7878',
|
2015-11-23 10:43:06 +01:00
|
|
|
'lib/libcurl.a',
|
|
|
|
[
|
|
|
|
'--disable-shared', '--enable-static',
|
|
|
|
'--disable-debug',
|
|
|
|
'--enable-http',
|
|
|
|
'--enable-ipv6',
|
|
|
|
'--disable-ftp', '--disable-file',
|
|
|
|
'--disable-ldap', '--disable-ldaps',
|
|
|
|
'--disable-rtsp', '--disable-proxy', '--disable-dict', '--disable-telnet',
|
|
|
|
'--disable-tftp', '--disable-pop3', '--disable-imap', '--disable-smtp',
|
2018-01-05 12:00:29 +01:00
|
|
|
'--disable-smb',
|
2015-11-23 10:43:06 +01:00
|
|
|
'--disable-gopher',
|
|
|
|
'--disable-manual',
|
|
|
|
'--disable-threaded-resolver', '--disable-verbose', '--disable-sspi',
|
|
|
|
'--disable-crypto-auth', '--disable-ntlm-wb', '--disable-tls-srp', '--disable-cookies',
|
|
|
|
'--without-ssl', '--without-gnutls', '--without-nss', '--without-libssh2',
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
boost = BoostProject(
|
2018-01-05 07:16:38 +01:00
|
|
|
'http://downloads.sourceforge.net/project/boost/boost/1.66.0/boost_1_66_0.tar.bz2',
|
|
|
|
'5721818253e6a0989583192f96782c4a98eb6204965316df9f5ad75819225ca9',
|
2015-11-23 10:43:06 +01:00
|
|
|
'include/boost/version.hpp',
|
|
|
|
)
|