Commit 371f6465b67a48312c994b14177d90e25f73f280
1 parent
bf68e6d3
Exists in
develop
Removing unused files.
Showing
7 changed files
with
0 additions
and
332 deletions
Show diff stats
win/building_on_windows-the-hard-way.txt
@@ -1,24 +0,0 @@ | @@ -1,24 +0,0 @@ | ||
1 | - | ||
2 | - 1. Instalar o mingw e o pacote básico do msys ( http://www.mingw.org/wiki/Getting_Started ) | ||
3 | - | ||
4 | - 2. Abrir o shell mingw e executar (não é o cmd normal do windows, o ícone fica no menu do mingw). | ||
5 | - . mingw-get install autotools | ||
6 | - . mingw-get install gettext | ||
7 | - . mingw-get install msys-openssl | ||
8 | - . mingw-get install msys-libopenssl | ||
9 | - | ||
10 | - 3. Instalar o tortoise SVN ( http://tortoisesvn.net/downloads.html ) | ||
11 | - | ||
12 | - 4. Instalar o pacote completo do gtk | ||
13 | - . Baixar o bundle em http://www.gtk.org/download/win32.php | ||
14 | - . Descompactar o bundle em c:\mingw | ||
15 | - | ||
16 | - 5. Abrir uma linha de comando do mingw (não é o cmd normal do windows | ||
17 | - . Mudar para o diretório dos fontes (PS: usei o tortoise svn para baixar os arquivos) | ||
18 | - | ||
19 | - 6. Executar ./autogen.sh (atente para o lado da barra, é "/" mesmo já que o prompt do mingw é um bash | ||
20 | - . Vai dar alguns error relacionados a linguagem; não me preocupei com eles nessa etapa. | ||
21 | - | ||
22 | - 7. Executar ./configure - Ele vai dar falta da libssl porque, por algum motivo, a libssl do mingw4windows não se registra no pkg-config | ||
23 | - | ||
24 | - 8. Executar make |
win/building_windows_on_SuSE-the-easy-way.txt
@@ -1,22 +0,0 @@ | @@ -1,22 +0,0 @@ | ||
1 | - | ||
2 | -The proposal of this document is to show how to build pw3270 installers for windows using the cross-compilers available on SuSE linux. | ||
3 | - | ||
4 | -1. First install the MinGW Repositories to your SuSE version from: | ||
5 | - | ||
6 | - * 32 bits: https://build.opensuse.org/project/show/windows:mingw:win32 | ||
7 | - * 64 bits: https://build.opensuse.org/project/show/windows:mingw:win64 | ||
8 | - | ||
9 | -2. Get pw3270 sources from git | ||
10 | - | ||
11 | - * git clone http://softwarepublico.gov.br/gitlab/pw3270/principal.git ./pw3270 | ||
12 | - | ||
13 | -3. Install cross compilers | ||
14 | - | ||
15 | - * ./pw3270/win/install-cross.sh --all | ||
16 | - | ||
17 | - | ||
18 | -4. Build pw3270 windows installers | ||
19 | - | ||
20 | - * cd pw3270/ && ./win/pack.sh | ||
21 | - | ||
22 | - |
win/copydeps.sh.in
@@ -1,133 +0,0 @@ | @@ -1,133 +0,0 @@ | ||
1 | -#!/bin/bash | ||
2 | -myDIR=$(dirname $(readlink -f $0)) | ||
3 | - | ||
4 | -# Updated by ./configure | ||
5 | -BUILDDIR=@BUILDDIR@ | ||
6 | -prefix=@prefix@ | ||
7 | - | ||
8 | -# Crio diretório temporário | ||
9 | -TEMPDIR=$(mktemp -d) | ||
10 | - | ||
11 | -# Cleanup em caso de falha | ||
12 | -ontrap() | ||
13 | -{ | ||
14 | - # | ||
15 | - # Apaga diretorio temporário caso o script seja interrompido | ||
16 | - # | ||
17 | - cd ${myDIR} | ||
18 | - rm -fr ${TEMPDIR} | ||
19 | - exit -1 | ||
20 | -} | ||
21 | - | ||
22 | -trap ontrap INT | ||
23 | - | ||
24 | -# | ||
25 | -# Lista de DLLs a ignorar | ||
26 | -# | ||
27 | -libs_to_exclude=" | ||
28 | - advapi32 | ||
29 | - cfgmgr32 | ||
30 | - comctl32 | ||
31 | - comdlg32 | ||
32 | - crypt32 | ||
33 | - d3d8 | ||
34 | - d3d9 | ||
35 | - ddraw | ||
36 | - dnsapi | ||
37 | - dsound | ||
38 | - dwmapi | ||
39 | - gdi32 | ||
40 | - gdiplus | ||
41 | - glu32 | ||
42 | - glut32 | ||
43 | - imm32 | ||
44 | - iphlpapi | ||
45 | - kernel32 | ||
46 | - ksuser | ||
47 | - mpr | ||
48 | - mscms | ||
49 | - mscoree | ||
50 | - msimg32 | ||
51 | - msvcr71 | ||
52 | - msvcr80 | ||
53 | - msvcr90 | ||
54 | - msvcrt | ||
55 | - mswsock | ||
56 | - netapi32 | ||
57 | - odbc32 | ||
58 | - ole32 | ||
59 | - oleacc | ||
60 | - oleaut32 | ||
61 | - opengl32 | ||
62 | - psapi | ||
63 | - rpcrt4 | ||
64 | - secur32 | ||
65 | - setupapi | ||
66 | - shell32 | ||
67 | - shlwapi | ||
68 | - user32 | ||
69 | - usp10 | ||
70 | - version | ||
71 | - wininet | ||
72 | - winmm | ||
73 | - wldap32 | ||
74 | - ws2_32 | ||
75 | - wsock32 | ||
76 | - winspool.drv | ||
77 | -" | ||
78 | - | ||
79 | -# | ||
80 | -# Fico em loop montando dependências | ||
81 | -# | ||
82 | -APPLICATION_PATH=${BUILDDIR}/.bin/Release | ||
83 | -RUNTIME_PATH=${BUILDDIR}/.bin/runtime | ||
84 | - | ||
85 | -mkdir -p ${RUNTIME_PATH} | ||
86 | - | ||
87 | -AGAIN=1 | ||
88 | -until [ $AGAIN = 0 ]; do | ||
89 | - | ||
90 | - AGAIN=0 | ||
91 | - | ||
92 | - find ${APPLICATION_PATH} -iname *.exe > ${TEMPDIR}/binaries.txt | ||
93 | - find ${APPLICATION_PATH} -iname *.dll >> ${TEMPDIR}/binaries.txt | ||
94 | - find ${RUNTIME_PATH} -iname *.dll >> ${TEMPDIR}/binaries.txt | ||
95 | - | ||
96 | - # Obtenho a lista de DLLs | ||
97 | - rm -f ${TEMPDIR}/requires.txt | ||
98 | - touch ${TEMPDIR}/requires.txt | ||
99 | - while read FILENAME | ||
100 | - do | ||
101 | - objdump -p ${FILENAME} | grep "DLL Name:" | cut -d: -f2 | tr "[:upper:]" "[:lower:]" >> ${TEMPDIR}/requires.txt | ||
102 | - done < ${TEMPDIR}/binaries.txt | ||
103 | - | ||
104 | - # Excluo DLLs do sistema | ||
105 | - for i in $libs_to_exclude; do | ||
106 | - sed -i -e "/${i}/d" ${TEMPDIR}/requires.txt | ||
107 | - done | ||
108 | - | ||
109 | - while read FILENAME | ||
110 | - do | ||
111 | - | ||
112 | - if [ -e ${APPLICATION_PATH}/${FILENAME} ]; then | ||
113 | - touch ${APPLICATION_PATH}/${FILENAME} | ||
114 | - | ||
115 | - elif [ -e ${RUNTIME_PATH}/${FILENAME} ]; then | ||
116 | - touch ${RUNTIME_PATH}/${FILENAME} | ||
117 | - | ||
118 | - elif [ -e ${prefix}/bin/${FILENAME} ]; then | ||
119 | - AGAIN=1 | ||
120 | - echo ${prefix}/bin/${FILENAME} | ||
121 | - cp ${prefix}/bin/${FILENAME} ${RUNTIME_PATH} | ||
122 | - | ||
123 | - fi | ||
124 | - | ||
125 | - done < ${TEMPDIR}/requires.txt | ||
126 | - rm -f ${TEMPDIR}/requires.txt | ||
127 | - | ||
128 | - | ||
129 | -done | ||
130 | - | ||
131 | -cd ${myDIR} | ||
132 | -rm -fr ${TEMPDIR} | ||
133 | - |
win/force_inet_ntop.patch
@@ -1,11 +0,0 @@ | @@ -1,11 +0,0 @@ | ||
1 | ---- src/include/lib3270/config.h.in 2017-01-20 15:37:46.462843502 -0200 | ||
2 | -+++ src/include/lib3270/config.h.in 2017-01-24 15:19:45.547022420 -0200 | ||
3 | -@@ -44,7 +44,7 @@ | ||
4 | - #undef HAVE_SYSLOG | ||
5 | - #undef HAVE_DBUS | ||
6 | - #undef HAVE_VASPRINTF | ||
7 | -- #undef HAVE_INET_NTOP | ||
8 | -+ #define HAVE_INET_NTOP | ||
9 | - | ||
10 | - #undef HAVE_ICONV | ||
11 | - #undef ICONV_CONST |
win/msys2-install-tn3270-libs.sh
@@ -1,72 +0,0 @@ | @@ -1,72 +0,0 @@ | ||
1 | -#!/bin/bash | ||
2 | -# | ||
3 | -# "Software pw3270, desenvolvido com base nos códigos fontes do WC3270 e X3270 | ||
4 | -# (Paul Mattes Paul.Mattes@usa.net), de emulação de terminal 3270 para acesso a | ||
5 | -# aplicativos mainframe. Registro no INPI sob o nome G3270. | ||
6 | -# | ||
7 | -# Copyright (C) <2008> <Banco do Brasil S.A.> | ||
8 | -# | ||
9 | -# Este programa é software livre. Você pode redistribuí-lo e/ou modificá-lo sob | ||
10 | -# os termos da GPL v.2 - Licença Pública Geral GNU, conforme publicado pela | ||
11 | -# Free Software Foundation. | ||
12 | -# | ||
13 | -# Este programa é distribuído na expectativa de ser útil, mas SEM QUALQUER | ||
14 | -# GARANTIA; sem mesmo a garantia implícita de COMERCIALIZAÇÃO ou de ADEQUAÇÃO | ||
15 | -# A QUALQUER PROPÓSITO EM PARTICULAR. Consulte a Licença Pública Geral GNU para | ||
16 | -# obter mais detalhes. | ||
17 | -# | ||
18 | -# Você deve ter recebido uma cópia da Licença Pública Geral GNU junto com este | ||
19 | -# programa; se não, escreva para a Free Software Foundation, Inc., 51 Franklin | ||
20 | -# St, Fifth Floor, Boston, MA 02110-1301 USA | ||
21 | -# | ||
22 | -# Contatos: | ||
23 | -# | ||
24 | -# perry.werneck@gmail.com (Alexandre Perry de Souza Werneck) | ||
25 | -# erico.mendonca@gmail.com (Erico Mascarenhas Mendonça) | ||
26 | -# | ||
27 | -# | ||
28 | -VERSION="5.2" | ||
29 | - | ||
30 | -install() { | ||
31 | - | ||
32 | - BUILD_DIR=${TEMPDIR}/${1} | ||
33 | - | ||
34 | - mkdir -p ${BUILD_DIR} | ||
35 | - if [ "$?" != "0" ]; then | ||
36 | - exit -1 | ||
37 | - fi | ||
38 | - | ||
39 | - pushd ${BUILD_DIR} | ||
40 | - if [ "$?" != "0" ]; then | ||
41 | - exit -1 | ||
42 | - fi | ||
43 | - | ||
44 | - wget https://github.com/PerryWerneck/${1}/releases/download/${VERSION}/PKGBUILD | ||
45 | - if [ "$?" != "0" ]; then | ||
46 | - exit -1 | ||
47 | - fi | ||
48 | - | ||
49 | - makepkg | ||
50 | - if [ "$?" != "0" ]; then | ||
51 | - exit -1 | ||
52 | - fi | ||
53 | - | ||
54 | - popd | ||
55 | - | ||
56 | - cp ${BUILD_DIR}/mingw*-${1}*.tar.xz . | ||
57 | - | ||
58 | - rm -fr ${BUILD_DIR} | ||
59 | - | ||
60 | - pacman -U mingw*-${1}*.tar.xz | ||
61 | - if [ "$?" != "0" ]; then | ||
62 | - exit -1 | ||
63 | - fi | ||
64 | - | ||
65 | -} | ||
66 | - | ||
67 | -TEMPDIR=$(mktemp -d) | ||
68 | - | ||
69 | -install lib3270 | ||
70 | -install libv3270 | ||
71 | - | ||
72 | -rm -fr ${TEMPDIR} |
win/win32-configure
@@ -1,37 +0,0 @@ | @@ -1,37 +0,0 @@ | ||
1 | -#!/bin/bash | ||
2 | - | ||
3 | -export HOST_CC=/usr/bin/gcc | ||
4 | -export cache=win32.cache | ||
5 | - | ||
6 | -OPT=$@ | ||
7 | - | ||
8 | -OFFICE=$(grep -c 'AC_ARG_ENABLE(\[office' configure.ac) | ||
9 | - | ||
10 | -if [ "$OFFICE" != "0" ]; then | ||
11 | - OPT="$OPT --disable-office" | ||
12 | -fi | ||
13 | - | ||
14 | -if [ -d ~/win32/jdk ]; then | ||
15 | - export JDK_HOME=$(readlink -f ~/win32/jdk) | ||
16 | -else | ||
17 | - unset JDK_HOME | ||
18 | -fi | ||
19 | - | ||
20 | -if [ -d ~/win32/jre ]; then | ||
21 | - export JRE_HOME=$(readlink -f ~/win32/jre) | ||
22 | -else | ||
23 | - unset JRE_HOME | ||
24 | -fi | ||
25 | - | ||
26 | -./configure --cache-file=$cache \ | ||
27 | - --host=i686-w64-mingw32 \ | ||
28 | - --prefix=/usr/i686-w64-mingw32/sys-root/mingw \ | ||
29 | - --libdir=/usr/i686-w64-mingw32/sys-root/mingw/lib \ | ||
30 | - $OPT | ||
31 | - | ||
32 | - | ||
33 | -status=$? | ||
34 | - | ||
35 | -rm -f "$cache" | ||
36 | -exit $status | ||
37 | - |
win/win64-configure
@@ -1,33 +0,0 @@ | @@ -1,33 +0,0 @@ | ||
1 | -#!/bin/bash | ||
2 | - | ||
3 | -export HOST_CC=/usr/bin/gcc | ||
4 | -export cache=win64.cache | ||
5 | - | ||
6 | -OPT=$@ | ||
7 | - | ||
8 | -OFFICE=$(grep -c 'AC_ARG_ENABLE(\[office' configure.ac) | ||
9 | - | ||
10 | -if [ "$OFFICE" != "0" ]; then | ||
11 | - OPT="$OPT --disable-office" | ||
12 | -fi | ||
13 | - | ||
14 | -if [ -d ~/win64/jdk ]; then | ||
15 | - export JDK_HOME=$(readlink -f ~/win64/jdk) | ||
16 | -fi | ||
17 | - | ||
18 | -if [ -d ~/win64/jre ]; then | ||
19 | - export JRE_HOME=$(readlink -f ~/win64/jre) | ||
20 | -fi | ||
21 | - | ||
22 | - | ||
23 | -./configure --cache-file=$cache \ | ||
24 | - --host=x86_64-w64-mingw32 \ | ||
25 | - --prefix=/usr/x86_64-w64-mingw32/sys-root/mingw \ | ||
26 | - --libdir=/usr/x86_64-w64-mingw32/sys-root/mingw/lib \ | ||
27 | - $OPT | ||
28 | - | ||
29 | -status=$? | ||
30 | - | ||
31 | -rm -f "$cache" | ||
32 | -exit $status | ||
33 | - |