forked from hrydgard/ppsspp-ffmpeg
-
Notifications
You must be signed in to change notification settings - Fork 1
/
mac_x86-64.sh
executable file
·91 lines (76 loc) · 1.72 KB
/
mac_x86-64.sh
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
#!/bin/sh
rm config.h
echo "Building for MacOSX"
set -e
ARCH="x86_64"
GENERAL="
--disable-shared \
--enable-static"
MODULES="\
--disable-filters \
--disable-programs \
--disable-network \
--disable-avfilter \
--disable-postproc \
--disable-encoders \
--disable-doc \
--disable-ffplay \
--disable-ffprobe \
--disable-ffserver \
--disable-ffmpeg"
VIDEO_DECODERS="\
--enable-decoder=h263 \
--enable-decoder=h263p \
--enable-decoder=h264 \
--enable-decoder=mpeg2video"
AUDIO_DECODERS="\
--enable-decoder=aac \
--enable-decoder=atrac3 \
--enable-decoder=atrac3p \
--enable-decoder=mp3 \
--enable-decoder=pcm_s16le \
--enable-decoder=pcm_s8"
DEMUXERS="\
--enable-demuxer=h264 \
--enable-demuxer=mpegps \
--enable-demuxer=mpegvideo \
--enable-demuxer=avi \
--enable-demuxer=mp3 \
--enable-demuxer=aac \
--enable-demuxer=oma \
--enable-demuxer=pcm_s16le \
--enable-demuxer=pcm_s8 \
--enable-demuxer=wav"
VIDEO_ENCODERS="\
--enable-encoder=huffyuv
--enable-encoder=ffv1
--enable-encoder=mjpeg"
AUDIO_ENCODERS="\
--enable-encoder=pcm_s16le"
MUXERS="\
--enable-muxer=avi"
PARSERS="\
--enable-parser=h264 \
--enable-parser=mpeg4video \
--enable-parser=mpegvideo \
--enable-parser=aac \
--enable-parser=mpegaudio"
./configure \
--prefix=./macosx/${ARCH} \
${GENERAL} \
--extra-cflags="-D__STDC_CONSTANT_MACROS -O3" \
--enable-zlib \
--enable-pic \
--disable-everything \
${MODULES} \
${VIDEO_DECODERS} \
${AUDIO_DECODERS} \
${VIDEO_ENCODERS} \
${AUDIO_ENCODERS} \
${DEMUXERS} \
${MUXERS} \
${PARSERS} \
--arch=${ARCH} \
--cc=clang
make clean
make install