Skip to content

Commit cca26f0

Browse files
authored
Merge pull request #275 from cchampet/travis_fixMacOSBuildDependencies
Travis: fixed build on OS X
2 parents 7189ce9 + 32fb2dd commit cca26f0

File tree

2 files changed

+26
-24
lines changed

2 files changed

+26
-24
lines changed

tools/travis/linux.install.deps.sh

Lines changed: 25 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -49,20 +49,21 @@ if [ -z ${TRAVIS_JOB_ID} ] || [ ! -d "${DEPENDENCY_INSTALL_PATH}/lib/" ]; then
4949

5050

5151
# faac
52+
# Compilation error on OSX
5253
# http://stackoverflow.com/a/4320377
5354
# http://sourceforge.net/p/faac/bugs/162/#46a0
54-
echo ""
55-
echo "Building faac (${FAAC_VERSION})"
56-
DIR=$(mktemp -d faacXXX) && cd ${DIR} && \
57-
curl -L -Os http://downloads.sourceforge.net/faac/faac-${FAAC_VERSION}.tar.gz && \
58-
tar xzf faac-${FAAC_VERSION}.tar.gz && \
59-
cd faac-${FAAC_VERSION} && \
60-
sed -i '126d' common/mp4v2/mpeg4ip.h && \
61-
./bootstrap && \
62-
./configure --prefix="${DEPENDENCY_INSTALL_PATH}" --bindir="${DEPENDENCY_INSTALL_PATH}/bin" --enable-shared --with-mp4v2=no && \
63-
make -k > ${DEPENDENCY_LOG_FILE} 2>&1 && \
64-
make install && \
65-
rm -rf ${DIR}
55+
# echo ""
56+
# echo "Building faac (${FAAC_VERSION})"
57+
# DIR=$(mktemp -d faacXXX) && cd ${DIR} && \
58+
# curl -L -Os http://downloads.sourceforge.net/faac/faac-${FAAC_VERSION}.tar.gz && \
59+
# tar xzf faac-${FAAC_VERSION}.tar.gz && \
60+
# cd faac-${FAAC_VERSION} && \
61+
# sed -i '126d' common/mp4v2/mpeg4ip.h && \
62+
# ./bootstrap && \
63+
# ./configure --prefix="${DEPENDENCY_INSTALL_PATH}" --bindir="${DEPENDENCY_INSTALL_PATH}/bin" --enable-shared --with-mp4v2=no && \
64+
# make -k > ${DEPENDENCY_LOG_FILE} 2>&1 && \
65+
# make install && \
66+
# rm -rf ${DIR}
6667

6768
# xvid
6869
echo ""
@@ -78,17 +79,18 @@ if [ -z ${TRAVIS_JOB_ID} ] || [ ! -d "${DEPENDENCY_INSTALL_PATH}/lib/" ]; then
7879

7980

8081
# fdk-aac
82+
# Compilation error on OSX
8183
# Warning: need automake + libtool
82-
echo ""
83-
echo "Building fdk-aac (${FDKAAC_VERSION})"
84-
DIR=$(mktemp -d fdk-aacXXX) && cd ${DIR} && \
85-
curl -s https://codeload.github.com/mstorsjo/fdk-aac/tar.gz/v${FDKAAC_VERSION} | tar zxf - && \
86-
cd fdk-aac-${FDKAAC_VERSION} && \
87-
autoreconf -fiv && \
88-
./configure --prefix="${DEPENDENCY_INSTALL_PATH}" --enable-shared && \
89-
make -k > ${DEPENDENCY_LOG_FILE} 2>&1 && \
90-
make install && \
91-
rm -rf ${DIR}
84+
# echo ""
85+
# echo "Building fdk-aac (${FDKAAC_VERSION})"
86+
# DIR=$(mktemp -d fdk-aacXXX) && cd ${DIR} && \
87+
# curl -s https://codeload.github.com/mstorsjo/fdk-aac/tar.gz/v${FDKAAC_VERSION} | tar zxf - && \
88+
# cd fdk-aac-${FDKAAC_VERSION} && \
89+
# autoreconf -fiv && \
90+
# ./configure --prefix="${DEPENDENCY_INSTALL_PATH}" --enable-shared && \
91+
# make -k > ${DEPENDENCY_LOG_FILE} 2>&1 && \
92+
# make install && \
93+
# rm -rf ${DIR}
9294

9395
# libogg
9496
echo ""
@@ -158,7 +160,7 @@ if [ -z ${TRAVIS_JOB_ID} ] || [ ! -d "${DEPENDENCY_INSTALL_PATH}/lib/" ]; then
158160
export RELEASE_OPTIONS=--disable-debug
159161
export DEBUG_OPTIONS=--enable-debug=3\ --disable-optimizations\ --disable-sse\ --disable-stripping
160162
export LICENSING_OPTIONS=--enable-gpl\ --enable-nonfree
161-
export THIRD_PARTIES_OPTIONS=--enable-libfaac\ --enable-libmp3lame\ --enable-libx264\ --enable-libxvid\ --enable-avresample\ --enable-libfdk_aac\ --enable-libvorbis\ --enable-libvpx
163+
export THIRD_PARTIES_OPTIONS=--enable-libmp3lame\ --enable-libx264\ --enable-libxvid\ --enable-avresample\ --enable-libvorbis\ --enable-libvpx
162164

163165
if [[ ${DEPENDENCY_NAME} == "ffmpeg" ]]; then
164166

tools/travis/osx.install.deps.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ pip install nose
1616
brew install freeglut
1717

1818
# Main dependency
19-
brew install ${DEPENDENCY_NAME}
19+
./tools/travis/linux.install.deps.sh

0 commit comments

Comments
 (0)