diff --git a/build/mingw/mingw-fetch-dependencies.sh b/build/mingw/mingw-fetch-dependencies.sh index 2fce3fd44..2fc9d304f 100755 --- a/build/mingw/mingw-fetch-dependencies.sh +++ b/build/mingw/mingw-fetch-dependencies.sh @@ -8,12 +8,15 @@ TOR_URL="http://ftp.gnome.org/pub/gnome/binaries/win32"; TOR_BINARIES=( \ - glib/2.28/glib{-dev,}_2.28.1-1_win32.zip \ - gtk+/2.16/gtk+{-dev,}_2.16.6-2_win32.zip \ - pango/1.28/pango{-dev,}_1.28.0-1_win32.zip ); + gtk+/2.16/gtk+{-dev,}_2.16.6-2_win32.zip ); TOR_DEP_URL="http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies"; +ZLIB_VERSION=1.2.4-2 +FFI_VERSION=3.0.6 +GLIB_VERSION=2.34.3 +GLIB_MINOR_VERSION="${GLIB_VERSION%.*}" + TOR_DEPS=( \ cairo{-dev,}_1.10.0-2_win32.zip \ gettext-runtime-{dev-,}0.17-1.zip \ @@ -21,13 +24,17 @@ TOR_DEPS=( \ freetype{-dev,}_2.3.12-1_win32.zip \ expat_2.0.1-1_win32.zip \ libpng{-dev,}_1.4.0-1_win32.zip \ - zlib{-dev,}_1.2.4-2_win32.zip ); + zlib{-dev,}_${ZLIB_VERSION}_win32.zip \ + libffi{-dev,}_${FFI_VERSION}-1_win32.zip \ + gettext-runtime{-dev,}_0.18.1.1-2_win32.zip ); GNOME_SOURCES_URL="http://ftp.gnome.org/pub/GNOME/sources/" SOURCES_DEPS=(\ - cogl/1.8/cogl-1.8.0.tar.bz2 \ - json-glib/0.12/json-glib-0.12.2.tar.bz2 \ - atk/2.1/atk-2.1.91.tar.bz2 ); + glib/${GLIB_MINOR_VERSION}/glib-${GLIB_VERSION}.tar.xz \ + cogl/1.14/cogl-1.14.0.tar.xz \ + json-glib/0.16/json-glib-0.16.0.tar.xz \ + atk/2.8/atk-2.8.0.tar.xz \ + pango/1.34/pango-1.34.1.tar.xz ); GL_HEADER_URLS=( \ http://cgit.freedesktop.org/mesa/mesa/plain/include/GL/gl.h \ @@ -132,7 +139,7 @@ function do_untar_source_d () local exdir="$1"; shift; local tarfile="$1"; shift; - tar -C "$exdir" -jxvf "$tarfile" "$@"; + tar -C "$exdir" -axvf "$tarfile" "$@"; if [ "$?" -ne 0 ]; then echo "Failed to extract $tarfile"; @@ -185,13 +192,51 @@ function find_compiler () echo "Using compiler ${MINGW_TOOL_PREFIX}gcc and target $TARGET"; } +function generate_pc_file () +{ + local pcfile="$1"; shift; + local libs="$1"; shift; + local version="$1"; shift; + local include="$1"; shift; + local bn=`basename "$pcfile"`; + + if test -z "$include"; then + include="\${prefix}/include"; + fi; + + if ! test -f "$pcfile"; then + cat > "$pcfile" <