7bb95f
groups/221.native_packages_dev.group: adds gnucobol v3.1.2
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
GROUP_TARGET="native_packages";
|
5
5
|
NATIVE_PACKAGES_PACKAGES="$(rtl_lconcat "${NATIVE_PACKAGES_PACKAGES}" "
|
6
|
-
bison chicken cparser cssc diffutils flex gdb gengetopt indent lua lunix m4 make mandoc nasm
|
6
|
+
bison chicken cparser cssc diffutils flex gdb gengetopt gnucobol indent lua lunix m4 make mandoc nasm
|
7
7
|
patch patchutils perl posix_cc python2 python3 ruby sbsigntools tk")";
|
8
8
|
: ${PKG_BISON_DEPENDS:="readline"};
|
9
9
|
: ${PKG_BISON_SHA256SUM:=9bba0214ccf7f1079c5d59210045227bcf619519840ebfa80cd3849cff5a5bf2};
|
@@ -58,6 +58,12 @@ ac_cv_prog_gnu_m4_gnu=yes"};
|
|
58
58
|
: ${PKG_GENGETOPT_SHA256SUM:=b941aec9011864978dd7fdeb052b1943535824169d2aa2b0e7eae9ab807584ac};
|
59
59
|
: ${PKG_GENGETOPT_VERSION:=2.23};
|
60
60
|
: ${PKG_GENGETOPT_URL:=https://ftp.gnu.org/gnu/gengetopt/gengetopt-${PKG_GENGETOPT_VERSION}.tar.xz};
|
61
|
+
: ${PKG_GNUCOBOL_DEPENDS:="ncursesw"}
|
62
|
+
: ${PKG_GNUCOBOL_SHA256SUM:=597005d71fd7d65b90cbe42bbfecd5a9ec0445388639404662e70d53ddf22574};
|
63
|
+
: ${PKG_GNUCOBOL_VERSION:=3.1.2};
|
64
|
+
: ${PKG_GNUCOBOL_URL:=https://ftp.gnu.org/gnu/gnucobol/gnucobol-${PKG_GNUCOBOL_VERSION}.tar.xz};
|
65
|
+
--without-json --with-math=gmp"};
|
66
|
+
: ${PKG_GNUCOBOL_LDFLAGS_CONFIGURE_EXTRA:="-ltinfow"};
|
61
67
|
: ${PKG_LUA_DEPENDS:="readline"};
|
62
68
|
: ${PKG_LUA_SHA256SUM:=f8612276169e3bfcbcfb8f226195bfc6e466fe13042f1076cbde92b7ec96bbfb};
|
63
69
|
: ${PKG_LUA_VERSION:=5.4.3};
|
@@ -0,0 +1,173 @@
|
|
1
|
+
diff -ru gnucobol-3.1.2.orig/configure gnucobol-3.1.2/configure
|
2
|
+
--- gnucobol-3.1.2.orig/configure 2020-12-23 13:04:58.000000000 +0100
|
3
|
+
+++ gnucobol-3.1.2/configure 2022-02-07 11:04:34.765517654 +0100
|
4
|
+
|
5
|
+
fi
|
6
|
+
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
7
|
+
|
8
|
+
-# Checks for size of long
|
9
|
+
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if size of long int = size of long long" >&5
|
10
|
+
-$as_echo_n "checking if size of long int = size of long long... " >&6; }
|
11
|
+
-if test "$cross_compiling" = yes; then :
|
12
|
+
- if test "$COB_LI_IS_LL" = "0"; then
|
13
|
+
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: specified \"no\" on configure line" >&5
|
14
|
+
-$as_echo "specified \"no\" on configure line" >&6; }
|
15
|
+
- else
|
16
|
+
- if test "$COB_LI_IS_LL" = "1"; then
|
17
|
+
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: specified \"yes\" on configure line" >&5
|
18
|
+
-$as_echo "specified \"yes\" on configure line" >&6; }
|
19
|
+
- else
|
20
|
+
- COB_LI_IS_LL=1
|
21
|
+
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: assumed - cross-compilation" >&5
|
22
|
+
-$as_echo "assumed - cross-compilation" >&6; }
|
23
|
+
- fi
|
24
|
+
- fi
|
25
|
+
- $as_echo "#define COB_LI_IS_LL \$COB_LI_IS_LL" >>confdefs.h
|
26
|
+
-
|
27
|
+
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot run test program while cross-compiling" >&5
|
28
|
+
-$as_echo "$as_me: WARNING: cannot run test program while cross-compiling" >&2;}
|
29
|
+
-else
|
30
|
+
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
31
|
+
-/* end confdefs.h. */
|
32
|
+
-
|
33
|
+
-int
|
34
|
+
-main ()
|
35
|
+
-{
|
36
|
+
-
|
37
|
+
- if (sizeof(long int) == sizeof(long long))
|
38
|
+
- return 0;
|
39
|
+
- return 1;
|
40
|
+
-
|
41
|
+
- ;
|
42
|
+
- return 0;
|
43
|
+
-}
|
44
|
+
-_ACEOF
|
45
|
+
-if ac_fn_c_try_run "$LINENO"; then :
|
46
|
+
- $as_echo "#define COB_LI_IS_LL 1" >>confdefs.h
|
47
|
+
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
48
|
+
-$as_echo "yes" >&6; }
|
49
|
+
-else
|
50
|
+
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
51
|
+
-$as_echo "no" >&6; }
|
52
|
+
-fi
|
53
|
+
-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
54
|
+
- conftest.$ac_objext conftest.beam conftest.$ac_ext
|
55
|
+
-fi
|
56
|
+
-
|
57
|
+
-
|
58
|
+
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if long is 32 bits" >&5
|
59
|
+
-$as_echo_n "checking if long is 32 bits... " >&6; }
|
60
|
+
-if test "$cross_compiling" = yes; then :
|
61
|
+
- if test "$COB_32_BIT_LONG" = "0"; then
|
62
|
+
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: specified \"no\" on configure line" >&5
|
63
|
+
-$as_echo "specified \"no\" on configure line" >&6; }
|
64
|
+
- else
|
65
|
+
- if test "$COB_32_BIT_LONG" = "1"; then
|
66
|
+
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: specified \"yes\" on configure line" >&5
|
67
|
+
-$as_echo "specified \"yes\" on configure line" >&6; }
|
68
|
+
- else
|
69
|
+
- COB_32_BIT_LONG=1
|
70
|
+
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: assumed - cross-compilation" >&5
|
71
|
+
-$as_echo "assumed - cross-compilation" >&6; }
|
72
|
+
- fi
|
73
|
+
- fi
|
74
|
+
- $as_echo "#define COB_32_BIT_LONG \$COB_32_BIT_LONG" >>confdefs.h
|
75
|
+
-
|
76
|
+
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot run test program while cross-compiling" >&5
|
77
|
+
-$as_echo "$as_me: WARNING: cannot run test program while cross-compiling" >&2;}
|
78
|
+
-else
|
79
|
+
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
80
|
+
-/* end confdefs.h. */
|
81
|
+
-
|
82
|
+
-int
|
83
|
+
-main ()
|
84
|
+
-{
|
85
|
+
-
|
86
|
+
- if (sizeof (long) == 4)
|
87
|
+
- return 0;
|
88
|
+
- return 1;
|
89
|
+
-
|
90
|
+
- ;
|
91
|
+
- return 0;
|
92
|
+
-}
|
93
|
+
-_ACEOF
|
94
|
+
-if ac_fn_c_try_run "$LINENO"; then :
|
95
|
+
- $as_echo "#define COB_32_BIT_LONG 1" >>confdefs.h
|
96
|
+
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
97
|
+
-$as_echo "yes" >&6; }
|
98
|
+
-else
|
99
|
+
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
100
|
+
-$as_echo "no" >&6; }
|
101
|
+
-fi
|
102
|
+
-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
103
|
+
- conftest.$ac_objext conftest.beam conftest.$ac_ext
|
104
|
+
-fi
|
105
|
+
-
|
106
|
+
-
|
107
|
+
-
|
108
|
+
-if test "cross_compiling" != "yes"; then
|
109
|
+
- COB_HAS_64_BIT_POINTER="no"
|
110
|
+
-fi
|
111
|
+
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if pointer is longer than 32 bits" >&5
|
112
|
+
-$as_echo_n "checking if pointer is longer than 32 bits... " >&6; }
|
113
|
+
-if test "$cross_compiling" = yes; then :
|
114
|
+
- if test "$COB_HAS_64_BIT_POINTER" = "0"; then
|
115
|
+
- COB_HAS_64_BIT_POINTER="no"
|
116
|
+
- $as_echo "#define COB_64_BIT_POINTER 0" >>confdefs.h
|
117
|
+
-
|
118
|
+
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: specified \"no\" on configure line" >&5
|
119
|
+
-$as_echo "specified \"no\" on configure line" >&6; }
|
120
|
+
- else
|
121
|
+
- if test "$COB_HAS_64_BIT_POINTER" = "1"; then
|
122
|
+
- COB_HAS_64_BIT_POINTER="yes"
|
123
|
+
- $as_echo "#define COB_64_BIT_POINTER 1" >>confdefs.h
|
124
|
+
-
|
125
|
+
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: specified \"yes\" on configure line" >&5
|
126
|
+
-$as_echo "specified \"yes\" on configure line" >&6; }
|
127
|
+
- else
|
128
|
+
- COB_HAS_64_BIT_POINTER="no"
|
129
|
+
- $as_echo "#define COB_64_BIT_POINTER 0" >>confdefs.h
|
130
|
+
-
|
131
|
+
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: assumed \"no\" - cross-compilation" >&5
|
132
|
+
-$as_echo "assumed \"no\" - cross-compilation" >&6; }
|
133
|
+
- fi
|
134
|
+
- fi
|
135
|
+
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot run test program while cross-compiling" >&5
|
136
|
+
-$as_echo "$as_me: WARNING: cannot run test program while cross-compiling" >&2;}
|
137
|
+
-else
|
138
|
+
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
139
|
+
-/* end confdefs.h. */
|
140
|
+
-
|
141
|
+
-int
|
142
|
+
-main ()
|
143
|
+
-{
|
144
|
+
-
|
145
|
+
- if (sizeof (void *) > 4U)
|
146
|
+
- return 0;
|
147
|
+
- return 1;
|
148
|
+
-
|
149
|
+
- ;
|
150
|
+
- return 0;
|
151
|
+
-}
|
152
|
+
-_ACEOF
|
153
|
+
-if ac_fn_c_try_run "$LINENO"; then :
|
154
|
+
- COB_HAS_64_BIT_POINTER="yes"
|
155
|
+
- $as_echo "#define COB_64_BIT_POINTER 1" >>confdefs.h
|
156
|
+
-
|
157
|
+
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
158
|
+
-$as_echo "yes" >&6; }
|
159
|
+
-else
|
160
|
+
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
161
|
+
-$as_echo "no" >&6; }
|
162
|
+
-fi
|
163
|
+
-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
164
|
+
- conftest.$ac_objext conftest.beam conftest.$ac_ext
|
165
|
+
-fi
|
166
|
+
-
|
167
|
+
+# 64-bit midipix
|
168
|
+
+$as_echo "#define COB_LI_IS_LL 1" >>confdefs.h
|
169
|
+
+$as_echo "#define COB_32_BIT_LONG 0" >>confdefs.h
|
170
|
+
+$as_echo "#define COB_64_BIT_POINTER 1" >>confdefs.h
|
171
|
+
|
172
|
+
# Check gcc wrapv option
|
173
|
+
# We likely don't need this and remove it before 3.0 final release
|