aboutsummaryrefslogtreecommitdiffstats
path: root/mediaplugin/dists/buildbot/win32-delphi-build.sh
blob: 6a045bd1c22a9d7814aefb3e3856f548f326f45d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash
# check if the MinGW/Msys grep is used and not Borland's or FPC's version
GREP_DIR=`which grep`
if ([ "$GREP_DIR" != "/bin/grep.exe" ] && [ "$GREP_DIR" != "/usr/bin/grep.exe" ]); then
  echo "Incorrect version of grep ($GREP_DIR)"
  echo "Make sure mingw/msys precede FPC and Delphi in the PATH environment."
  exit 1
fi
cd src/mediaplugins/ffmpeg
./autogen.sh
FFMPEG_LIBDIR="libffmpeg"
./configure ffmpeg_CFLAGS="-I${FFMPEG_LIBDIR}/include" ffmpeg_LIBS="-L${FFMPEG_LIBDIR}/lib -lavcodec -lavformat -lavutil" libswscale_CFLAGS="-I${FFMPEG_LIBDIR}/include" libswscale_LIBS="-L${FFMPEG_LIBDIR}/lib -lswscale"
make compile