@@ -12,6 +12,7 @@ if [ -z ${TRAVIS_JOB_ID} ] || [ ! -d "${DEPENDENCY_INSTALL_PATH}/lib/" ]; then
12
12
export LD_LIBRARY_PATH=${DEPENDENCY_INSTALL_PATH} /lib:${DEPENDENCY_INSTALL_PATH} /lib64
13
13
export PKG_CONFIG_PATH=${DEPENDENCY_INSTALL_PATH} /lib/pkgconfig:${DEPENDENCY_INSTALL_PATH} /lib64/pkgconfig
14
14
export PATH=$PATH :${DEPENDENCY_INSTALL_PATH} /bin
15
+ echo " Build log file: ${DEPENDENCY_LOG_FILE} "
15
16
16
17
# yasm
17
18
echo " Building YASM (${YASM_VERSION} )"
@@ -21,17 +22,22 @@ if [ -z ${TRAVIS_JOB_ID} ] || [ ! -d "${DEPENDENCY_INSTALL_PATH}/lib/" ]; then
21
22
cd yasm-${YASM_VERSION} && \
22
23
./configure --prefix=" $DEPENDENCY_INSTALL_PATH " --bindir=" ${DEPENDENCY_INSTALL_PATH} /bin" && \
23
24
make -k > ${DEPENDENCY_LOG_FILE} 2>&1 && \
25
+ if [ $? != 0 ]; then cat ${DEPENDENCY_LOG_FILE} && exit 1; fi
24
26
make install && \
25
27
rm -rf ${DIR}
26
28
27
29
# x264
28
30
echo " "
29
31
echo " Building x264 (last version)"
32
+ # or before commit https://code.videolan.org/videolan/x264/commit/e9a5903edf8ca59ef20e6f4894c196f135af735e
33
+ # => see https://trac.ffmpeg.org/ticket/6932
30
34
DIR=$( mktemp -d x264XXX) && cd ${DIR} && \
31
- git clone --depth 1 git ://git .videolan.org/x264 && \
35
+ git clone https ://code .videolan.org/videolan/ x264.git && \
32
36
cd x264 && \
37
+ if [[ ${DEPENDENCY_VERSION} == 2.* .* ]]; then git checkout ba24899b0bf23345921da022f7a51e0c57dbe73d; fi
33
38
./configure --prefix=" $DEPENDENCY_INSTALL_PATH " --bindir=" ${DEPENDENCY_INSTALL_PATH} /bin" --enable-shared --disable-asm && \
34
39
make -k > ${DEPENDENCY_LOG_FILE} 2>&1 && \
40
+ if [ $? != 0 ]; then cat ${DEPENDENCY_LOG_FILE} && exit 1; fi
35
41
make install && \
36
42
rm -rf ${DIR}
37
43
@@ -44,6 +50,7 @@ if [ -z ${TRAVIS_JOB_ID} ] || [ ! -d "${DEPENDENCY_INSTALL_PATH}/lib/" ]; then
44
50
cd lame-${LAME_VERSION} && \
45
51
./configure --prefix=" ${DEPENDENCY_INSTALL_PATH} " --bindir=" ${DEPENDENCY_INSTALL_PATH} /bin" --enable-nasm && \
46
52
make -k > ${DEPENDENCY_LOG_FILE} 2>&1 && \
53
+ if [ $? != 0 ]; then cat ${DEPENDENCY_LOG_FILE} && exit 1; fi
47
54
make install && \
48
55
rm -rf ${DIR}
49
56
@@ -74,6 +81,7 @@ if [ -z ${TRAVIS_JOB_ID} ] || [ ! -d "${DEPENDENCY_INSTALL_PATH}/lib/" ]; then
74
81
cd xvidcore/build/generic && \
75
82
./configure --prefix=" ${DEPENDENCY_INSTALL_PATH} " --bindir=" ${DEPENDENCY_INSTALL_PATH} /bin" && \
76
83
make -k > ${DEPENDENCY_LOG_FILE} 2>&1 && \
84
+ if [ $? != 0 ]; then cat ${DEPENDENCY_LOG_FILE} && exit 1; fi
77
85
make install && \
78
86
rm -rf ${DIR}
79
87
@@ -101,6 +109,7 @@ if [ -z ${TRAVIS_JOB_ID} ] || [ ! -d "${DEPENDENCY_INSTALL_PATH}/lib/" ]; then
101
109
cd libogg-${OGG_VERSION} && \
102
110
./configure --prefix=" ${DEPENDENCY_INSTALL_PATH} " --disable-shared --with-pic && \
103
111
make -k > ${DEPENDENCY_LOG_FILE} 2>&1 && \
112
+ if [ $? != 0 ]; then cat ${DEPENDENCY_LOG_FILE} && exit 1; fi
104
113
make install && \
105
114
rm -rf ${DIR}
106
115
@@ -113,6 +122,7 @@ if [ -z ${TRAVIS_JOB_ID} ] || [ ! -d "${DEPENDENCY_INSTALL_PATH}/lib/" ]; then
113
122
cd libvorbis-${VORBIS_VERSION} && \
114
123
./configure --prefix=" ${DEPENDENCY_INSTALL_PATH} " --with-ogg=" ${DEPENDENCY_INSTALL_PATH} " --disable-shared --with-pic && \
115
124
make -k > ${DEPENDENCY_LOG_FILE} 2>&1 && \
125
+ if [ $? != 0 ]; then cat ${DEPENDENCY_LOG_FILE} && exit 1; fi
116
126
make install && \
117
127
rm -rf ${DIR}
118
128
@@ -140,6 +150,7 @@ if [ -z ${TRAVIS_JOB_ID} ] || [ ! -d "${DEPENDENCY_INSTALL_PATH}/lib/" ]; then
140
150
git checkout v${VPX_VERSION} && \
141
151
./configure --prefix=" ${DEPENDENCY_INSTALL_PATH} " --disable-examples --enable-pic && \
142
152
make -k > ${DEPENDENCY_LOG_FILE} 2>&1 && \
153
+ if [ $? != 0 ]; then cat ${DEPENDENCY_LOG_FILE} && exit 1; fi
143
154
make install && \
144
155
rm -rf ${DIR}
145
156
@@ -177,6 +188,7 @@ if [ -z ${TRAVIS_JOB_ID} ] || [ ! -d "${DEPENDENCY_INSTALL_PATH}/lib/" ]; then
177
188
$LICENSING_OPTIONS \
178
189
$THIRD_PARTIES_OPTIONS --enable-postproc && \
179
190
make -k > ${DEPENDENCY_LOG_FILE} 2>&1 && \
191
+ if [ $? != 0 ]; then cat ${DEPENDENCY_LOG_FILE} && exit 1; fi
180
192
make install && \
181
193
rm -rf ${DIR}
182
194
0 commit comments