From 95548c6a5fcce7a31ffcaafcaec8650fd6f4c968 Mon Sep 17 00:00:00 2001 From: Maxim Biro Date: Thu, 21 Sep 2017 21:12:32 -0400 Subject: [PATCH] fix(build): Add libexif to the Windows cross-compilation --- windows/cross-compile/build.sh | 32 +++++++++++++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/windows/cross-compile/build.sh b/windows/cross-compile/build.sh index 599669077..efaed04e1 100644 --- a/windows/cross-compile/build.sh +++ b/windows/cross-compile/build.sh @@ -310,6 +310,8 @@ then sed -i s/'LIBS="-lcrypto $LIBS"'/'LIBS="-lcrypto -lgdi32 $LIBS"'/g configure sed -i s/'if test "$TARGET_EXEEXT" = ".exe"'/'if test ".exe" = ".exe"'/g configure +# Do not remove trailing whitespace and dont replace tabs with spaces in the patch below, +# otherwise the patch will fail to apply > Makefile.in-patch cat << "EOF" --- Makefile.in 2017-07-24 04:33:46.944080013 +0000 +++ Makefile.in-patch 2017-07-24 04:50:47.340596990 +0000 @@ -622,6 +624,34 @@ then fi +# Exif + +EXIF_PREFIX_DIR="$DEP_DIR/libexif" +if [ ! -f "$EXIF_PREFIX_DIR/done" ] +then + rm -rf "$EXIF_PREFIX_DIR" + mkdir -p "$EXIF_PREFIX_DIR" + + wget https://sourceforge.net/projects/libexif/files/libexif/0.6.21/libexif-0.6.21.tar.bz2 + bsdtar -xf libexif*.tar.bz2 + rm libexif*.tar.bz2 + cd libexif* + + CFLAGS="-O2 -g0" ./configure --host="$ARCH-w64-mingw32" \ + --prefix="$EXIF_PREFIX_DIR" \ + --disable-shared \ + --enable-static \ + --disable-docs \ + --disable-nls + make + make install + touch $EXIF_PREFIX_DIR/done + + cd .. + rm -rf ./libexif* +fi + + # Opus OPUS_PREFIX_DIR="$DEP_DIR/libopus" @@ -629,7 +659,7 @@ if [ ! -f "$OPUS_PREFIX_DIR/done" ] then rm -rf "$OPUS_PREFIX_DIR" mkdir -p "$OPUS_PREFIX_DIR" - + git clone \ --branch v1.2.1 \ --depth 1 \