Commit e2df99886763990c7f32bc81d366386e15ca7d3b
1 parent
5fc473a8
Exists in
master
and in
5 other branches
Atualizando empacotamento windows.
Showing
2 changed files
with
100 additions
and
1 deletions
Show diff stats
configure.ac
| ... | ... | @@ -90,7 +90,7 @@ case "$host" in |
| 90 | 90 | RLS_CFLAGS="-DNDEBUG=1" |
| 91 | 91 | |
| 92 | 92 | CFLAGS="$CFLAGS -D_WIN32_WINNT=0x0600" |
| 93 | - LIBS="$LIBS -lws2_32 -lntdll -lwtsapi32 -lintl -lcomdlg32" | |
| 93 | + LIBS="$LIBS -lws2_32 -lwtsapi32 -lintl -lcomdlg32" | |
| 94 | 94 | |
| 95 | 95 | AC_CONFIG_FILES(win/makegtkruntime.sh) |
| 96 | 96 | ... | ... |
| ... | ... | @@ -0,0 +1,99 @@ |
| 1 | +#!/bin/bash | |
| 2 | + | |
| 3 | +install_packages() | |
| 4 | +{ | |
| 5 | + | |
| 6 | +TEMPFILE=$(mktemp) | |
| 7 | + | |
| 8 | +cat > ${TEMPFILE} << EOF | |
| 9 | +libopenssl-devel | |
| 10 | +libintl-devel | |
| 11 | +libepoxy0 | |
| 12 | +libgdk_pixbuf-2_0-0 | |
| 13 | +atk-devel | |
| 14 | +pango-devel | |
| 15 | +win_iconv-devel | |
| 16 | +pixman-devel | |
| 17 | +glib2-devel | |
| 18 | +cairo-devel | |
| 19 | +freetype-devel | |
| 20 | +winpthreads-devel | |
| 21 | +gtk3-devel | |
| 22 | +cross-gcc-c++ | |
| 23 | +cross-pkg-config | |
| 24 | +cross-cpp | |
| 25 | +cross-binutils | |
| 26 | +cross-nsis | |
| 27 | +filesystem | |
| 28 | +gettext-tools | |
| 29 | +gtk3-data | |
| 30 | +gtk3-tools | |
| 31 | +headers | |
| 32 | +gnome-icon-theme | |
| 33 | +hicolor-icon-theme | |
| 34 | +gdk-pixbuf-loader-rsvg | |
| 35 | +gdk-pixbuf-query-loaders | |
| 36 | +python-devel | |
| 37 | +EOF | |
| 38 | + | |
| 39 | +# Instala apicativos e temas necessários | |
| 40 | +sudo zypper --non-interactive in \ | |
| 41 | + adwaita-icon-theme \ | |
| 42 | + gettext-tools \ | |
| 43 | + glib2-devel | |
| 44 | + | |
| 45 | +while read FILE | |
| 46 | +do | |
| 47 | + sudo zypper --non-interactive in ${1}-${FILE} | |
| 48 | +done < ${TEMPFILE} | |
| 49 | + | |
| 50 | +rm -f ${TEMPFILE} | |
| 51 | + | |
| 52 | +} | |
| 53 | + | |
| 54 | +if [ -z ${1} ]; then | |
| 55 | + echo "Use ${0} --32 for 32 bits cross-compiler" | |
| 56 | + echo "Use ${0} --64 for 64 bits cross-compiler" | |
| 57 | + exit -1 | |
| 58 | +fi | |
| 59 | + | |
| 60 | + | |
| 61 | +until [ -z "${1}" ] | |
| 62 | +do | |
| 63 | + if [ ${1:0:2} = '--' ]; then | |
| 64 | + tmp=${1:2} | |
| 65 | + parameter=${tmp%%=*} | |
| 66 | + parameter=$(echo $parameter | tr "[:lower:]" "[:upper:]") | |
| 67 | + | |
| 68 | + case $parameter in | |
| 69 | + | |
| 70 | + ar) | |
| 71 | + zypper ar --refresh http://download.opensuse.org/repositories/windows:/mingw:/win32/openSUSE_42.1/ mingw32 | |
| 72 | + zypper ar --refresh http://download.opensuse.org/repositories/windows:/mingw:/win64/openSUSE_42.1/ mingw64 | |
| 73 | + ;; | |
| 74 | + | |
| 75 | + 32) | |
| 76 | + install_packages mingw32 | |
| 77 | + ;; | |
| 78 | + | |
| 79 | + 64) | |
| 80 | + install_packages mingw64 | |
| 81 | + ;; | |
| 82 | + | |
| 83 | + ALL) | |
| 84 | + install_packages mingw32 | |
| 85 | + install_packages mingw64 | |
| 86 | + ;; | |
| 87 | + | |
| 88 | + | |
| 89 | + *) | |
| 90 | + value=${tmp##*=} | |
| 91 | + eval $parameter=$value | |
| 92 | + esac | |
| 93 | + | |
| 94 | + fi | |
| 95 | + | |
| 96 | + shift | |
| 97 | +done | |
| 98 | + | |
| 99 | + | ... | ... |