diff --git a/build/mingw/mingw-fetch-dependencies.sh b/build/mingw/mingw-fetch-dependencies.sh index 5054e2630..c7d9e8352 100755 --- a/build/mingw/mingw-fetch-dependencies.sh +++ b/build/mingw/mingw-fetch-dependencies.sh @@ -8,11 +8,15 @@ TOR_URL="http://ftp.gnome.org/pub/gnome/binaries/win32"; TOR_BINARIES=( \ - glib/2.28/glib{-dev,}_2.28.8-1_win32.zip \ pango/1.28/pango{-dev,}_1.28.0-1_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 \ @@ -20,7 +24,13 @@ 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=(\ + glib/${GLIB_MINOR_VERSION}/glib-${GLIB_VERSION}.tar.xz ); GL_HEADER_URLS=( \ http://cgit.freedesktop.org/mesa/mesa/plain/include/GL/gl.h \ @@ -125,7 +135,7 @@ function do_untar_source_d () local exdir="$1"; shift; local tarfile="$1"; shift; - tar -C "$exdir" -zxvf "$tarfile" "$@"; + tar -C "$exdir" -axvf "$tarfile" "$@"; if [ "$?" -ne 0 ]; then echo "Failed to extract $tarfile"; @@ -178,13 +188,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" <