-
Notifications
You must be signed in to change notification settings - Fork 1
/
build-linux.sh
executable file
·51 lines (36 loc) · 1.32 KB
/
build-linux.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
#!/bin/bash
set -e
ARCHIVE="ffmpeg-2.6.3"
DESTROOT="${HOME}/Development/FFmpeg/destroot"
for BITS in 32 64 ; do
rm -rf "${ARCHIVE}"
tar xf "tar/${ARCHIVE}.tar.bz2"
pushd "${ARCHIVE}" ; ( set -e
patch -p1 < ../patch/linux-unversioned-soname.diff
echo ""
echo "--- CONFIGURATION LOG ---"
echo ""
./configure \
--disable-gpl --disable-version3 --disable-nonfree \
--enable-static --disable-shared --enable-pic \
--disable-small --enable-runtime-cpudetect \
--disable-debug --enable-stripping \
--disable-all --disable-pthreads --disable-w32threads \
--enable-avutil --enable-avcodec \
--enable-fft --enable-rdft --enable-hardcoded-tables \
--enable-asm --enable-inline-asm \
--extra-cflags=-m${BITS} --extra-ldflags=-m${BITS} \
--arch=x86_${BITS} "--prefix=${DESTROOT}/linux${BITS}"
echo ""
echo "--- BUILD LOG ---"
echo ""
make V=1
make V=1 install
for LIB in ${DESTROOT}/linux${BITS}/lib/*.a ; do
echo ANONYMIZE "${LIB}"
LANG=C LC_CTYPE=C sed -i -e 's@/andrew/@/------/@g' "${LIB}"
done
rm -rfv "${DESTROOT}/linux${BITS}/lib/pkgconfig"
) ; popd
rm -rf "${ARCHIVE}"
done