summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard@openedhand.com>2006-07-06 16:41:29 +0000
committerRichard Purdie <richard@openedhand.com>2006-07-06 16:41:29 +0000
commit669b994b778483b316f03f1e2eff254b5087f9b4 (patch)
tree5140b3b77ae4938287de64ccd6eff92fb252c430
parentd7a67bae29fa277f5feb342662b3992bb7b663e6 (diff)
downloadpoky-669b994b778483b316f03f1e2eff254b5087f9b4.tar.gz
Add less (for debug images)
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@507 311d38ba-8fff-0310-9ca6-ca027cbcb966
-rw-r--r--openembedded/packages/less/less-382/configure.patch243
-rw-r--r--openembedded/packages/less/less_382.bb16
2 files changed, 259 insertions, 0 deletions
diff --git a/openembedded/packages/less/less-382/configure.patch b/openembedded/packages/less/less-382/configure.patch
new file mode 100644
index 0000000000..2f054ba639
--- /dev/null
+++ b/openembedded/packages/less/less-382/configure.patch
@@ -0,0 +1,243 @@
1
2#
3# Patch managed by http://www.mn-logistik.de/unsupported/pxa250/patcher
4#
5
6--- less-381/./configure.ac~configure
7+++ less-381/./configure.ac
8@@ -9,7 +9,7 @@
9 # contact the author, see the README file.
10
11 # Autoconf initialization.
12-AC_INIT(less, 1)
13+AC_INIT([less],[1])
14 AC_CONFIG_SRCDIR([forwback.c])
15 AC_CONFIG_HEADER([defines.h])
16
17@@ -56,8 +56,7 @@
18 TERMLIBS="-lxcurses"
19 SAVE_LIBS=$LIBS
20 LIBS="$LIBS $TERMLIBS"
21- AC_TRY_LINK(, [tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);],
22- [termok=yes], [termok=no])
23+ AC_LINK_IFELSE([AC_LANG_PROGRAM([[]], [[tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);]])],[termok=yes],[termok=no])
24 LIBS=$SAVE_LIBS
25 if test $termok = no; then TERMLIBS=""; fi
26 fi
27@@ -69,8 +68,7 @@
28 TERMLIBS="-lncurses"
29 SAVE_LIBS=$LIBS
30 LIBS="$LIBS $TERMLIBS"
31- AC_TRY_LINK(, [tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);],
32- [termok=yes], [termok=no])
33+ AC_LINK_IFELSE([AC_LANG_PROGRAM([[]], [[tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);]])],[termok=yes],[termok=no])
34 LIBS=$SAVE_LIBS
35 if test $termok = no; then TERMLIBS=""; fi
36 fi
37@@ -82,8 +80,7 @@
38 TERMLIBS="-lcurses"
39 SAVE_LIBS=$LIBS
40 LIBS="$LIBS $TERMLIBS"
41- AC_TRY_LINK(, [tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);],
42- [termok=yes], [termok=no])
43+ AC_LINK_IFELSE([AC_LANG_PROGRAM([[]], [[tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);]])],[termok=yes],[termok=no])
44 LIBS=$SAVE_LIBS
45 if test $termok = no; then TERMLIBS=""; fi
46 fi
47@@ -96,8 +93,7 @@
48 TERMLIBS="-lcurses -ltermcap"
49 SAVE_LIBS=$LIBS
50 LIBS="$LIBS $TERMLIBS"
51- AC_TRY_LINK(, [tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);],
52- [termok=yes], [termok=no])
53+ AC_LINK_IFELSE([AC_LANG_PROGRAM([[]], [[tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);]])],[termok=yes],[termok=no])
54 LIBS=$SAVE_LIBS
55 if test $termok = no; then TERMLIBS=""; fi
56 fi
57@@ -111,8 +107,7 @@
58 TERMLIBS="-ltermcap"
59 SAVE_LIBS=$LIBS
60 LIBS="$LIBS $TERMLIBS"
61- AC_TRY_LINK(, [tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);],
62- [termok=yes], [termok=no])
63+ AC_LINK_IFELSE([AC_LANG_PROGRAM([[]], [[tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);]])],[termok=yes],[termok=no])
64 LIBS=$SAVE_LIBS
65 if test $termok = no; then TERMLIBS=""; fi
66 fi
67@@ -124,8 +119,7 @@
68 TERMLIBS="-lcurses -ltermlib"
69 SAVE_LIBS=$LIBS
70 LIBS="$LIBS $TERMLIBS"
71- AC_TRY_LINK(, [tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);],
72- [termok=yes], [termok=no])
73+ AC_LINK_IFELSE([AC_LANG_PROGRAM([[]], [[tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);]])],[termok=yes],[termok=no])
74 LIBS=$SAVE_LIBS
75 if test $termok = no; then TERMLIBS=""; fi
76 fi
77@@ -200,14 +194,11 @@
78 # Checks for identifiers.
79 AC_TYPE_OFF_T
80 AC_MSG_CHECKING(for void)
81-AC_TRY_COMPILE(, [void *foo = 0;],
82- [AC_MSG_RESULT(yes); AC_DEFINE(HAVE_VOID)], [AC_MSG_RESULT(no)])
83+AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[void *foo = 0;]])],[AC_MSG_RESULT(yes); AC_DEFINE(HAVE_VOID)],[AC_MSG_RESULT(no)])
84 AC_MSG_CHECKING(for const)
85-AC_TRY_COMPILE(, [const int foo = 0;],
86- [AC_MSG_RESULT(yes); AC_DEFINE(HAVE_CONST)], [AC_MSG_RESULT(no)])
87+AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[const int foo = 0;]])],[AC_MSG_RESULT(yes); AC_DEFINE(HAVE_CONST)],[AC_MSG_RESULT(no)])
88 AC_MSG_CHECKING(for time_t)
89-AC_TRY_COMPILE([#include <time.h>], [time_t t = 0;],
90- [AC_MSG_RESULT(yes); AC_DEFINE(HAVE_TIME_T)], [AC_MSG_RESULT(no)])
91+AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <time.h>]], [[time_t t = 0;]])],[AC_MSG_RESULT(yes); AC_DEFINE(HAVE_TIME_T)],[AC_MSG_RESULT(no)])
92
93 # Checks for library functions.
94 AC_TYPE_SIGNAL
95@@ -217,14 +208,13 @@
96 AC_CHECK_FUNC(tcgetattr, AC_DEFINE(HAVE_TERMIOS_FUNCS))
97
98 AC_MSG_CHECKING(for fileno)
99-AC_TRY_LINK([
100+AC_LINK_IFELSE([AC_LANG_PROGRAM([[
101 #if HAVE_STDIO_H
102 #include <stdio.h>
103-#endif], [static int x; x = fileno(stdin);],
104- [AC_MSG_RESULT(yes); AC_DEFINE(HAVE_FILENO)], [AC_MSG_RESULT(no)])
105+#endif]], [[static int x; x = fileno(stdin);]])],[AC_MSG_RESULT(yes); AC_DEFINE(HAVE_FILENO)],[AC_MSG_RESULT(no)])
106
107 AC_MSG_CHECKING(for strerror)
108-AC_TRY_LINK([
109+AC_LINK_IFELSE([AC_LANG_PROGRAM([[
110 #if HAVE_STDIO_H
111 #include <stdio.h>
112 #endif
113@@ -233,68 +223,56 @@
114 #endif
115 #if HAVE_ERRNO_H
116 #include <errno.h>
117-#endif], [static char *x; x = strerror(0);],
118- [AC_MSG_RESULT(yes); AC_DEFINE(HAVE_STRERROR)], [AC_MSG_RESULT(no)])
119+#endif]], [[static char *x; x = strerror(0);]])],[AC_MSG_RESULT(yes); AC_DEFINE(HAVE_STRERROR)],[AC_MSG_RESULT(no)])
120
121 AC_MSG_CHECKING(for sys_errlist)
122-AC_TRY_LINK(, [extern char *sys_errlist[]; static char **x; x = sys_errlist;],
123- [AC_MSG_RESULT(yes); AC_DEFINE(HAVE_SYS_ERRLIST)], [AC_MSG_RESULT(no)])
124+AC_LINK_IFELSE([AC_LANG_PROGRAM([[]], [[extern char *sys_errlist[]; static char **x; x = sys_errlist;]])],[AC_MSG_RESULT(yes); AC_DEFINE(HAVE_SYS_ERRLIST)],[AC_MSG_RESULT(no)])
125
126 AC_MSG_CHECKING(for sigset_t)
127-AC_TRY_LINK([
128+AC_LINK_IFELSE([AC_LANG_PROGRAM([[
129 #include <signal.h>
130-], [sigset_t s; s = 0;],
131- [AC_MSG_RESULT(yes); AC_DEFINE(HAVE_SIGSET_T)], [AC_MSG_RESULT(no)])
132+]], [[sigset_t s; s = 0;]])],[AC_MSG_RESULT(yes); AC_DEFINE(HAVE_SIGSET_T)],[AC_MSG_RESULT(no)])
133
134 AC_MSG_CHECKING(for sigemptyset)
135-AC_TRY_LINK([
136+AC_LINK_IFELSE([AC_LANG_PROGRAM([[
137 #include <signal.h>
138-], [sigset_t s; sigemptyset(&s);],
139- [AC_MSG_RESULT(yes); AC_DEFINE(HAVE_SIGEMPTYSET)], [AC_MSG_RESULT(no)])
140+]], [[sigset_t s; sigemptyset(&s);]])],[AC_MSG_RESULT(yes); AC_DEFINE(HAVE_SIGEMPTYSET)],[AC_MSG_RESULT(no)])
141
142 have_errno=no
143 AC_MSG_CHECKING(for errno)
144-AC_TRY_LINK([
145+AC_LINK_IFELSE([AC_LANG_PROGRAM([[
146 #if HAVE_ERRNO_H
147 #include <errno.h>
148-#endif], [static int x; x = errno;],
149- [AC_MSG_RESULT(yes - in errno.h); AC_DEFINE(HAVE_ERRNO) have_errno=yes])
150+#endif]], [[static int x; x = errno;]])],[AC_MSG_RESULT(yes - in errno.h); AC_DEFINE(HAVE_ERRNO) have_errno=yes],[])
151 if test $have_errno = no; then
152-AC_TRY_LINK([
153+AC_LINK_IFELSE([AC_LANG_PROGRAM([[
154 #if HAVE_ERRNO_H
155 #include <errno.h>
156-#endif], [extern int errno; static int x; x = errno;],
157- [AC_MSG_RESULT(yes - must define); AC_DEFINE(HAVE_ERRNO) AC_DEFINE(MUST_DEFINE_ERRNO)],
158- [AC_MSG_RESULT(no)])
159+#endif]], [[extern int errno; static int x; x = errno;]])],[AC_MSG_RESULT(yes - must define); AC_DEFINE(HAVE_ERRNO) AC_DEFINE(MUST_DEFINE_ERRNO)],[AC_MSG_RESULT(no)])
160 fi
161
162 AC_MSG_CHECKING(for locale)
163-AC_TRY_LINK([#include <locale.h>
164-#include <ctype.h>], [setlocale(LC_CTYPE,""); isprint(0); iscntrl(0);],
165- [AC_MSG_RESULT(yes); AC_DEFINE(HAVE_LOCALE)], [AC_MSG_RESULT(no)])
166+AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <locale.h>
167+#include <ctype.h>]], [[setlocale(LC_CTYPE,""); isprint(0); iscntrl(0);]])],[AC_MSG_RESULT(yes); AC_DEFINE(HAVE_LOCALE)],[AC_MSG_RESULT(no)])
168 AC_MSG_CHECKING(for ctype functions)
169-AC_TRY_LINK([
170+AC_LINK_IFELSE([AC_LANG_PROGRAM([[
171 #if HAVE_CTYPE_H
172 #include <ctype.h>
173-#endif], [static int x; x = isupper(x); x = tolower(x); x = toupper(x);],
174- [AC_MSG_RESULT(yes); AC_DEFINE(HAVE_UPPER_LOWER)], [AC_MSG_RESULT(no)])
175+#endif]], [[static int x; x = isupper(x); x = tolower(x); x = toupper(x);]])],[AC_MSG_RESULT(yes); AC_DEFINE(HAVE_UPPER_LOWER)],[AC_MSG_RESULT(no)])
176
177 # Checks for external variable ospeed in the termcap library.
178 have_ospeed=no
179 AC_MSG_CHECKING(termcap for ospeed)
180-AC_TRY_LINK([
181+AC_LINK_IFELSE([AC_LANG_PROGRAM([[
182 #include <sys/types.h>
183 #if HAVE_TERMIOS_H
184 #include <termios.h>
185 #endif
186 #if HAVE_TERMCAP_H
187 #include <termcap.h>
188-#endif], [ospeed = 0;],
189-[AC_MSG_RESULT(yes - in termcap.h); AC_DEFINE(HAVE_OSPEED) have_ospeed=yes])
190+#endif]], [[ospeed = 0;]])],[AC_MSG_RESULT(yes - in termcap.h); AC_DEFINE(HAVE_OSPEED) have_ospeed=yes],[])
191 if test $have_ospeed = no; then
192-AC_TRY_LINK(, [extern short ospeed; ospeed = 0;],
193- [AC_MSG_RESULT(yes - must define); AC_DEFINE(HAVE_OSPEED) AC_DEFINE(MUST_DEFINE_OSPEED)],
194- [AC_MSG_RESULT(no)])
195+AC_LINK_IFELSE([AC_LANG_PROGRAM([[]], [[extern short ospeed; ospeed = 0;]])],[AC_MSG_RESULT(yes - must define); AC_DEFINE(HAVE_OSPEED) AC_DEFINE(MUST_DEFINE_OSPEED)],[AC_MSG_RESULT(no)])
196 fi
197
198 # Checks for regular expression functions.
199@@ -311,7 +289,7 @@
200 if test $WANT_REGEX = auto -o $WANT_REGEX = posix; then
201 # Some versions of Solaris have a regcomp() function, but it doesn't work!
202 # So we run a test program. If we're cross-compiling, do it the old way.
203-AC_TRY_RUN([
204+AC_RUN_IFELSE([AC_LANG_SOURCE([[
205 #include <sys/types.h>
206 #include <regex.h>
207 main() { regex_t r; regmatch_t rm; char *text = "xabcy";
208@@ -322,19 +300,16 @@
209 #else
210 if (rm.rm_sp != text + 1) exit(1); /* check for correct offset */
211 #endif
212-exit(0); }],
213- have_posix_regex=yes, have_posix_regex=no, have_posix_regex=unknown)
214+exit(0); }]])],[have_posix_regex=yes],[have_posix_regex=no],[have_posix_regex=unknown])
215 if test $have_posix_regex = yes; then
216 AC_MSG_RESULT(using POSIX regcomp)
217 AC_DEFINE(HAVE_POSIX_REGCOMP)
218 have_regex=yes
219 elif test $have_posix_regex = unknown; then
220- AC_TRY_LINK([
221+ AC_LINK_IFELSE([AC_LANG_PROGRAM([[
222 #include <sys/types.h>
223-#include <regex.h>],
224- [regex_t *r; regfree(r);],
225- AC_MSG_RESULT(using POSIX regcomp)
226- AC_DEFINE(HAVE_POSIX_REGCOMP) have_regex=yes)
227+#include <regex.h>]], [[regex_t *r; regfree(r);]])],[AC_MSG_RESULT(using POSIX regcomp)
228+ AC_DEFINE(HAVE_POSIX_REGCOMP) have_regex=yes],[])
229 else
230 AC_MSG_RESULT(no)
231 fi
232@@ -357,9 +332,8 @@
233
234 if test $have_regex = no; then
235 if test $WANT_REGEX = auto -o $WANT_REGEX = regcomp; then
236-AC_TRY_LINK([
237-#include "regexp.h"], [regcomp("");],
238-AC_MSG_RESULT(using V8 regcomp); AC_DEFINE(HAVE_V8_REGCOMP) have_regex=yes)
239+AC_LINK_IFELSE([AC_LANG_PROGRAM([[
240+#include "regexp.h"]], [[regcomp("");]])],[AC_MSG_RESULT(using V8 regcomp); AC_DEFINE(HAVE_V8_REGCOMP) have_regex=yes],[])
241 fi
242 fi
243
diff --git a/openembedded/packages/less/less_382.bb b/openembedded/packages/less/less_382.bb
new file mode 100644
index 0000000000..b489722edb
--- /dev/null
+++ b/openembedded/packages/less/less_382.bb
@@ -0,0 +1,16 @@
1SECTION = "console/utils"
2DEPENDS = "ncurses"
3DESCRIPTION = "Less is a program similar to more, i.e. a terminal \
4based program for viewing text files and the output from other \
5programs. Less offers many features beyond those that more does."
6HOMEPAGE = "http://www.greenwoodsoftware.com/"
7LICENSE = "BSD"
8
9SRC_URI = "${GNU_MIRROR}/less/less-${PV}.tar.gz \
10 file://configure.patch;patch=1"
11
12inherit autotools
13
14do_install () {
15 oe_runmake 'bindir=${D}${bindir}' 'mandir=${D}${mandir}' install
16}