diff options
Diffstat (limited to 'meta-oe')
-rw-r--r-- | meta-oe/recipes-extended/enscript/enscript/enscript-autoconf.patch | 118 | ||||
-rw-r--r-- | meta-oe/recipes-extended/enscript/enscript_1.6.6.bb | 22 |
2 files changed, 140 insertions, 0 deletions
diff --git a/meta-oe/recipes-extended/enscript/enscript/enscript-autoconf.patch b/meta-oe/recipes-extended/enscript/enscript/enscript-autoconf.patch new file mode 100644 index 000000000..d3bb5c03a --- /dev/null +++ b/meta-oe/recipes-extended/enscript/enscript/enscript-autoconf.patch | |||
@@ -0,0 +1,118 @@ | |||
1 | autoconf no longer supports AM_C_PROTOTYPES | ||
2 | |||
3 | | configure.ac:14: error: automatic de-ANSI-fication support has been removed | ||
4 | | /bitbake_build/tmp/sysroots/x86_64-linux/usr/share/aclocal-1.12/protos.m4:10: AM_C_PROTOTYPES is expanded from... | ||
5 | |||
6 | Upstream-Status: Pending | ||
7 | |||
8 | Author: Mark Hatle <mark.hatle@windriver.com> | ||
9 | Signed-off-by: Jackie Huang <jackie.huang@windriver.com> | ||
10 | |||
11 | Index: enscript-1.6.6/configure.ac | ||
12 | =================================================================== | ||
13 | --- enscript-1.6.6.orig/configure.ac | ||
14 | +++ enscript-1.6.6/configure.ac | ||
15 | @@ -11,7 +11,6 @@ AC_PROG_INSTALL | ||
16 | AC_PROG_CC | ||
17 | |||
18 | AC_USE_SYSTEM_EXTENSIONS | ||
19 | -AM_C_PROTOTYPES | ||
20 | |||
21 | AC_C_CONST | ||
22 | AC_FUNC_ALLOCA | ||
23 | Index: enscript-1.6.6/afmlib/afm.h | ||
24 | =================================================================== | ||
25 | --- enscript-1.6.6.orig/afmlib/afm.h | ||
26 | +++ enscript-1.6.6/afmlib/afm.h | ||
27 | @@ -24,11 +24,7 @@ | ||
28 | #define AFM_H | ||
29 | |||
30 | #ifndef ___P | ||
31 | -#if PROTOTYPES | ||
32 | #define ___P(protos) protos | ||
33 | -#else /* no PROTOTYPES */ | ||
34 | -#define ___P(protos) () | ||
35 | -#endif /* no PROTOTYPES */ | ||
36 | #endif | ||
37 | |||
38 | /********************************************************************** | ||
39 | Index: enscript-1.6.6/afmlib/afmint.h | ||
40 | =================================================================== | ||
41 | --- enscript-1.6.6.orig/afmlib/afmint.h | ||
42 | +++ enscript-1.6.6/afmlib/afmint.h | ||
43 | @@ -34,11 +34,7 @@ | ||
44 | #include <stdio.h> | ||
45 | |||
46 | #ifndef ___P | ||
47 | -#if PROTOTYPES | ||
48 | #define ___P(protos) protos | ||
49 | -#else /* no PROTOTYPES */ | ||
50 | -#define ___P(protos) () | ||
51 | -#endif /* no PROTOTYPES */ | ||
52 | #endif | ||
53 | |||
54 | #if STDC_HEADERS | ||
55 | Index: enscript-1.6.6/afmlib/strhash.h | ||
56 | =================================================================== | ||
57 | --- enscript-1.6.6.orig/afmlib/strhash.h | ||
58 | +++ enscript-1.6.6/afmlib/strhash.h | ||
59 | @@ -24,11 +24,7 @@ | ||
60 | #define STRHASH_H | ||
61 | |||
62 | #ifndef ___P | ||
63 | -#if PROTOTYPES | ||
64 | #define ___P(protos) protos | ||
65 | -#else /* no PROTOTYPES */ | ||
66 | -#define ___P(protos) () | ||
67 | -#endif /* no PROTOTYPES */ | ||
68 | #endif | ||
69 | |||
70 | typedef struct stringhash_st *StringHashPtr; | ||
71 | Index: enscript-1.6.6/compat/xalloc.h | ||
72 | =================================================================== | ||
73 | --- enscript-1.6.6.orig/compat/xalloc.h | ||
74 | +++ enscript-1.6.6/compat/xalloc.h | ||
75 | @@ -28,11 +28,7 @@ | ||
76 | #define XALLOC_H | ||
77 | |||
78 | #ifndef ___P | ||
79 | -#if PROTOTYPES | ||
80 | #define ___P(protos) protos | ||
81 | -#else /* no PROTOTYPES */ | ||
82 | -#define ___P(protos) () | ||
83 | -#endif /* no PROTOTYPES */ | ||
84 | #endif | ||
85 | |||
86 | void *xmalloc ___P ((size_t size)); | ||
87 | Index: enscript-1.6.6/src/gsint.h | ||
88 | =================================================================== | ||
89 | --- enscript-1.6.6.orig/src/gsint.h | ||
90 | +++ enscript-1.6.6/src/gsint.h | ||
91 | @@ -39,11 +39,7 @@ | ||
92 | #include <sys/stat.h> | ||
93 | |||
94 | #ifndef ___P | ||
95 | -#if PROTOTYPES | ||
96 | #define ___P(protos) protos | ||
97 | -#else /* no PROTOTYPES */ | ||
98 | -#define ___P(protos) () | ||
99 | -#endif /* no PROTOTYPES */ | ||
100 | #endif | ||
101 | |||
102 | #if STDC_HEADERS | ||
103 | Index: enscript-1.6.6/states/defs.h | ||
104 | =================================================================== | ||
105 | --- enscript-1.6.6.orig/states/defs.h | ||
106 | +++ enscript-1.6.6/states/defs.h | ||
107 | @@ -37,11 +37,7 @@ | ||
108 | #include <ctype.h> | ||
109 | |||
110 | #ifndef ___P | ||
111 | -#if PROTOTYPES | ||
112 | #define ___P(protos) protos | ||
113 | -#else /* no PROTOTYPES */ | ||
114 | -#define ___P(protos) () | ||
115 | -#endif /* no PROTOTYPES */ | ||
116 | #endif | ||
117 | |||
118 | #if STDC_HEADERS | ||
diff --git a/meta-oe/recipes-extended/enscript/enscript_1.6.6.bb b/meta-oe/recipes-extended/enscript/enscript_1.6.6.bb new file mode 100644 index 000000000..96129880a --- /dev/null +++ b/meta-oe/recipes-extended/enscript/enscript_1.6.6.bb | |||
@@ -0,0 +1,22 @@ | |||
1 | SUMMARY = "A plain ASCII to PostScript converter" | ||
2 | DESCRIPTION = "GNU enscript is a free replacement for Adobe''s Enscript \ | ||
3 | program. Enscript converts ASCII files to PostScript(TM) and spools generated \ | ||
4 | PostScript output to the specified printer or saves it to a file. Enscript can \ | ||
5 | be extended to handle different output media and includes many options for \ | ||
6 | customizing printouts." | ||
7 | HOMEPAGE = "http://www.gnu.org/software/enscript/" | ||
8 | SECTION = "console/utils" | ||
9 | |||
10 | LICENSE = "GPLv3+" | ||
11 | LIC_FILES_CHKSUM = "file://COPYING;md5=f27defe1e96c2e1ecd4e0c9be8967949" | ||
12 | |||
13 | SRC_URI = "${GNU_MIRROR}/${BPN}/${BP}.tar.gz \ | ||
14 | file://enscript-autoconf.patch \ | ||
15 | " | ||
16 | |||
17 | inherit autotools gettext | ||
18 | |||
19 | SRC_URI[md5sum] = "3acc242b829adacabcaf28533f049afd" | ||
20 | SRC_URI[sha256sum] = "6d56bada6934d055b34b6c90399aa85975e66457ac5bf513427ae7fc77f5c0bb" | ||
21 | |||
22 | RDEPENDS_${PN} = "perl" | ||