summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/openjade
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/openjade')
-rw-r--r--meta/recipes-devtools/openjade/openjade-1.3.2/autoconf.patch173
-rw-r--r--meta/recipes-devtools/openjade/openjade-1.3.2/configure.patch68
-rw-r--r--meta/recipes-devtools/openjade/openjade-1.3.2/makefile.patch34
-rw-r--r--meta/recipes-devtools/openjade/openjade-1.3.2/oj-native-libosp-fix.patch15
-rw-r--r--meta/recipes-devtools/openjade/openjade_1.3.2.bb66
5 files changed, 356 insertions, 0 deletions
diff --git a/meta/recipes-devtools/openjade/openjade-1.3.2/autoconf.patch b/meta/recipes-devtools/openjade/openjade-1.3.2/autoconf.patch
new file mode 100644
index 0000000000..fe8df5bb4a
--- /dev/null
+++ b/meta/recipes-devtools/openjade/openjade-1.3.2/autoconf.patch
@@ -0,0 +1,173 @@
1Patch obtained from OpenEmbedded.
2
3Signed-off-by: Scott Garman <scott.a.garman@intel.com>
4-- config/acinclude.m4
5+++ config/acinclude.m4 2002/04/08 23:13:37
6@@ -0,0 +1,61 @@
7+dnl Configure-time switch with default
8+dnl
9+dnl Each switch defines an --enable-FOO and --disable-FOO option in
10+dnl the resulting configure script.
11+dnl
12+dnl Usage:
13+dnl SMR_SWITCH(name, description, default, pos-def, neg-def)
14+dnl
15+dnl where:
16+dnl
17+dnl name name of switch; generates --enable-name & --disable-name
18+dnl options
19+dnl description help string is set to this prefixed by "enable" or
20+dnl "disable", whichever is the non-default value
21+dnl default either "on" or "off"; specifies default if neither
22+dnl --enable-name nor --disable-name is specified
23+dnl pos-def a symbol to AC_DEFINE if switch is on (optional)
24+dnl neg-def a symbol to AC_DEFINE if switch is off (optional)
25+dnl
26+AC_DEFUN(SMR_SWITCH, [
27+ AC_MSG_CHECKING(whether to enable $2)
28+ AC_ARG_ENABLE(
29+ $1,
30+ ifelse($3, on,
31+ [ --disable-[$1] disable [$2]],
32+ [ --enable-[$1] enable [$2]]),
33+ [ if test "$enableval" = yes; then
34+ AC_MSG_RESULT(yes)
35+ ifelse($4, , , AC_DEFINE($4))
36+ else
37+ AC_MSG_RESULT(no)
38+ ifelse($5, , , AC_DEFINE($5))
39+ fi ],
40+ ifelse($3, on,
41+ [ AC_MSG_RESULT(yes)
42+ ifelse($4, , , AC_DEFINE($4)) ],
43+ [ AC_MSG_RESULT(no)
44+ ifelse($5, , , AC_DEFINE($5))]))])
45+
46+dnl
47+dnl Examine size_t and define SIZE_T_IS_UINT, if size_t is an unsigned int
48+dnl
49+AC_DEFUN(OJ_SIZE_T_IS_UINT,[
50+ AC_REQUIRE([AC_TYPE_SIZE_T])
51+ AC_MSG_CHECKING(whether size_t is unsigned int)
52+ ac_cv_size_t_is_uint=no
53+ AC_LANG_SAVE
54+ AC_LANG_CPLUSPLUS
55+ AC_TRY_COMPILE([#include <unistd.h>
56+
57+ template<class T> class foo { };
58+
59+ ], [
60+ foo<size_t> x;
61+ foo<unsigned int> y;
62+ x = y;
63+ ],ac_cv_size_t_is_uint=yes)
64+ AC_LANG_RESTORE
65+ AC_MSG_RESULT($ac_cv_size_t_is_uint)
66+ test "$ac_cv_size_t_is_uint" = "yes" && AC_DEFINE(SIZE_T_IS_UINT)
67+])
68Index: openjade-1.3.2/config/acinclude.m4
69===================================================================
70--- openjade-1.3.2.orig/config/acinclude.m4
71+++ openjade-1.3.2/config/acinclude.m4
72@@ -1,3 +1,64 @@
73+dnl Configure-time switch with default
74+dnl
75+dnl Each switch defines an --enable-FOO and --disable-FOO option in
76+dnl the resulting configure script.
77+dnl
78+dnl Usage:
79+dnl SMR_SWITCH(name, description, default, pos-def, neg-def)
80+dnl
81+dnl where:
82+dnl
83+dnl name name of switch; generates --enable-name & --disable-name
84+dnl options
85+dnl description help string is set to this prefixed by "enable" or
86+dnl "disable", whichever is the non-default value
87+dnl default either "on" or "off"; specifies default if neither
88+dnl --enable-name nor --disable-name is specified
89+dnl pos-def a symbol to AC_DEFINE if switch is on (optional)
90+dnl neg-def a symbol to AC_DEFINE if switch is off (optional)
91+dnl
92+AC_DEFUN(SMR_SWITCH, [
93+ AC_MSG_CHECKING(whether to enable $2)
94+ AC_ARG_ENABLE(
95+ $1,
96+ ifelse($3, on,
97+ [ --disable-[$1] disable [$2]],
98+ [ --enable-[$1] enable [$2]]),
99+ [ if test "$enableval" = yes; then
100+ AC_MSG_RESULT(yes)
101+ ifelse($4, , , AC_DEFINE($4))
102+ else
103+ AC_MSG_RESULT(no)
104+ ifelse($5, , , AC_DEFINE($5))
105+ fi ],
106+ ifelse($3, on,
107+ [ AC_MSG_RESULT(yes)
108+ ifelse($4, , , AC_DEFINE($4)) ],
109+ [ AC_MSG_RESULT(no)
110+ ifelse($5, , , AC_DEFINE($5))]))])
111+
112+dnl
113+dnl Examine size_t and define SIZE_T_IS_UINT, if size_t is an unsigned int
114+dnl
115+AC_DEFUN(OJ_SIZE_T_IS_UINT,[
116+ AC_REQUIRE([AC_TYPE_SIZE_T])
117+ AC_MSG_CHECKING(whether size_t is unsigned int)
118+ ac_cv_size_t_is_uint=no
119+ AC_LANG_SAVE
120+ AC_LANG_CPLUSPLUS
121+ AC_TRY_COMPILE([#include <unistd.h>
122+
123+ template<class T> class foo { };
124+
125+ ], [
126+ foo<size_t> x;
127+ foo<unsigned int> y;
128+ x = y;
129+ ],ac_cv_size_t_is_uint=yes)
130+ AC_LANG_RESTORE
131+ AC_MSG_RESULT($ac_cv_size_t_is_uint)
132+ test "$ac_cv_size_t_is_uint" = "yes" && AC_DEFINE(SIZE_T_IS_UINT)
133+])
134 dnl
135 dnl Examine size_t and define SIZE_T_IS_UINT, if size_t is an unsigned int
136 dnl
137Index: openjade-1.3.2/config/aclocal.m4
138===================================================================
139--- openjade-1.3.2.orig/config/aclocal.m4
140+++ openjade-1.3.2/config/aclocal.m4
141@@ -3352,7 +3352,7 @@ dnl Each switch defines an --enable-FOO
142 dnl the resulting configure script.
143 dnl
144 dnl Usage:
145-dnl smr_SWITCH(name, description, default, pos-def, neg-def)
146+dnl SMR_SWITCH(name, description, default, pos-def, neg-def)
147 dnl
148 dnl where:
149 dnl
150@@ -3365,7 +3365,7 @@ dnl --enable-name nor --disa
151 dnl pos-def a symbol to AC_DEFINE if switch is on (optional)
152 dnl neg-def a symbol to AC_DEFINE if switch is off (optional)
153 dnl
154-AC_DEFUN(smr_SWITCH, [
155+AC_DEFUN(SMR_SWITCH, [
156 AC_MSG_CHECKING(whether to enable $2)
157 AC_ARG_ENABLE(
158 $1,
159Index: openjade-1.3.2/config/configure.in
160===================================================================
161--- openjade-1.3.2.orig/config/configure.in
162+++ openjade-1.3.2/config/configure.in
163@@ -243,8 +243,8 @@ AC_ARG_ENABLE(http,
164 dnl
165 dnl optional backends
166 dnl
167-smr_SWITCH(mif, support for FrameMaker MIF output, on, JADE_MIF, DUMMY)
168-smr_SWITCH(html, support for HTML+CSS output, on, JADE_HTML, DUMMY)
169+SMR_SWITCH(mif, support for FrameMaker MIF output, on, JADE_MIF, DUMMY)
170+SMR_SWITCH(html, support for HTML+CSS output, on, JADE_HTML, DUMMY)
171
172
173 dnl
diff --git a/meta/recipes-devtools/openjade/openjade-1.3.2/configure.patch b/meta/recipes-devtools/openjade/openjade-1.3.2/configure.patch
new file mode 100644
index 0000000000..2dcaa4d9e6
--- /dev/null
+++ b/meta/recipes-devtools/openjade/openjade-1.3.2/configure.patch
@@ -0,0 +1,68 @@
1Patch obtained from OpenEmbedded.
2
3Signed-off-by: Scott Garman <scott.a.garman@intel.com>
4--- /dev/null 2003-09-23 18:19:32.000000000 -0400
5+++ openjade-1.3.2/config/acinclude.m4 2004-01-20 14:39:20.000000000 -0500
6@@ -0,0 +1,62 @@
7+dnl
8+dnl Examine size_t and define SIZE_T_IS_UINT, if size_t is an unsigned int
9+dnl
10+AC_DEFUN(OJ_SIZE_T_IS_UINT,[
11+ AC_REQUIRE([AC_TYPE_SIZE_T])
12+ AC_MSG_CHECKING(whether size_t is unsigned int)
13+ ac_cv_size_t_is_uint=no
14+ AC_LANG_SAVE
15+ AC_LANG_CPLUSPLUS
16+ AC_TRY_COMPILE([#include <unistd.h>
17+
18+ template<class T> class foo { };
19+
20+ ], [
21+ foo<size_t> x;
22+ foo<unsigned int> y;
23+ x = y;
24+ ],ac_cv_size_t_is_uint=yes)
25+ AC_LANG_RESTORE
26+ AC_MSG_RESULT($ac_cv_size_t_is_uint)
27+ test "$ac_cv_size_t_is_uint" = "yes" && AC_DEFINE(SIZE_T_IS_UINT)
28+])
29+
30+dnl Configure-time switch with default
31+dnl
32+dnl Each switch defines an --enable-FOO and --disable-FOO option in
33+dnl the resulting configure script.
34+dnl
35+dnl Usage:
36+dnl smr_SWITCH(name, description, default, pos-def, neg-def)
37+dnl
38+dnl where:
39+dnl
40+dnl name name of switch; generates --enable-name & --disable-name
41+dnl options
42+dnl description help string is set to this prefixed by "enable" or
43+dnl "disable", whichever is the non-default value
44+dnl default either "on" or "off"; specifies default if neither
45+dnl --enable-name nor --disable-name is specified
46+dnl pos-def a symbol to AC_DEFINE if switch is on (optional)
47+dnl neg-def a symbol to AC_DEFINE if switch is off (optional)
48+dnl
49+AC_DEFUN(smr_SWITCH, [
50+ AC_MSG_CHECKING(whether to enable $2)
51+ AC_ARG_ENABLE(
52+ $1,
53+ ifelse($3, on,
54+ [ --disable-[$1] disable [$2]],
55+ [ --enable-[$1] enable [$2]]),
56+ [ if test "$enableval" = yes; then
57+ AC_MSG_RESULT(yes)
58+ ifelse($4, , , AC_DEFINE($4))
59+ else
60+ AC_MSG_RESULT(no)
61+ ifelse($5, , , AC_DEFINE($5))
62+ fi ],
63+ ifelse($3, on,
64+ [ AC_MSG_RESULT(yes)
65+ ifelse($4, , , AC_DEFINE($4)) ],
66+ [ AC_MSG_RESULT(no)
67+ ifelse($5, , , AC_DEFINE($5))]))])
68+
diff --git a/meta/recipes-devtools/openjade/openjade-1.3.2/makefile.patch b/meta/recipes-devtools/openjade/openjade-1.3.2/makefile.patch
new file mode 100644
index 0000000000..ac5c7447f6
--- /dev/null
+++ b/meta/recipes-devtools/openjade/openjade-1.3.2/makefile.patch
@@ -0,0 +1,34 @@
1Patch obtained from OpenEmbedded.
2
3Signed-off-by: Scott Garman <scott.a.garman@intel.com>
4Index: openjade-1.3.2/spgrove/Makefile.sub
5===================================================================
6--- openjade-1.3.2.orig/spgrove/Makefile.sub
7+++ openjade-1.3.2/spgrove/Makefile.sub
8@@ -1,8 +1,8 @@
9 LTVERSION=0:1:0
10 LIB=ospgrove
11 INCLUDE=-I$(srcdir)/../grove
12-DEPLIBS=-lm -L$(TOP)/grove -L$(TOP)/grove/.libs \
13- -L$(TOP)/lib -L$(TOP)/lib/.libs \
14+DEPLIBS=-lm $(TOP)/grove \
15+ $(TOP)/lib \
16 $(LIB_THREADS)
17 OBJS=GroveApp.o GroveBuilder.o SdNode.o
18 GENSRCS=grove_inst.cxx
19Index: openjade-1.3.2/style/Makefile.sub
20===================================================================
21--- openjade-1.3.2.orig/style/Makefile.sub
22+++ openjade-1.3.2/style/Makefile.sub
23@@ -1,8 +1,8 @@
24 LTVERSION=0:1:0
25 LIB=ostyle
26-DEPLIBS=-lm -L$(TOP)/grove -L$(TOP)/grove/.libs \
27- -L$(TOP)/lib -L$(TOP)/lib/.libs \
28- -L$(TOP)/spgrove -L$(TOP)/spgrove/.libs
29+DEPLIBS=-lm $(TOP)/grove \
30+ $(TOP)/lib \
31+ $(TOP)/spgrove
32 OBJS=LangObj.o \
33 Collector.o \
34 DssslApp.o \
diff --git a/meta/recipes-devtools/openjade/openjade-1.3.2/oj-native-libosp-fix.patch b/meta/recipes-devtools/openjade/openjade-1.3.2/oj-native-libosp-fix.patch
new file mode 100644
index 0000000000..48e38048ba
--- /dev/null
+++ b/meta/recipes-devtools/openjade/openjade-1.3.2/oj-native-libosp-fix.patch
@@ -0,0 +1,15 @@
1Patch obtained from OpenEmbedded.
2
3Signed-off-by: Scott Garman <scott.a.garman@intel.com>
4Index: openjade-1.3.2/Makefile.prog.in
5===================================================================
6--- openjade-1.3.2.orig/Makefile.prog.in 2007-12-21 14:48:00.000000000 +0100
7+++ openjade-1.3.2/Makefile.prog.in 2007-12-21 14:50:12.000000000 +0100
8@@ -13,6 +13,7 @@
9 ALL_LIBS = $(XLIBS) $(LIBS)
10 Makefile.lt:
11 echo 'LT_LIBS='`echo $(ALL_LIBS)|sed 's/\.a/.la/g'` >Makefile.lt
12+ sed -i -e "s|libosp.la|libosp.so|" Makefile.lt
13
14 PROG:=$(shell echo "$(PROG)" | sed '@program_transform_name@')
15
diff --git a/meta/recipes-devtools/openjade/openjade_1.3.2.bb b/meta/recipes-devtools/openjade/openjade_1.3.2.bb
new file mode 100644
index 0000000000..f2ad8aef7c
--- /dev/null
+++ b/meta/recipes-devtools/openjade/openjade_1.3.2.bb
@@ -0,0 +1,66 @@
1SUMMARY = "Tools for working with DSSSL stylesheets for SGML and XML documents"
2DESCRIPTION = "OpenJade is a suite of tools for validating, \
3processing, and applying DSSSL (Document Style Semantics and \
4Specification Language) stylesheets to SGML and XML documents."
5HOMEPAGE = "http://openjade.sourceforge.net"
6SECTION = "base"
7LICENSE = "BSD"
8LIC_FILES_CHKSUM = "file://COPYING;md5=641ff1e4511f0a87044ad42f87cb1045"
9
10PR = "r0"
11
12DEPENDS = "opensp"
13RDEPENDS_${PN} = "sgml-common"
14
15SRC_URI = "${SOURCEFORGE_MIRROR}/openjade/openjade-${PV}.tar.gz \
16 file://configure.patch \
17 file://autoconf.patch \
18 file://makefile.patch \
19 "
20
21SRC_URI[md5sum] = "7df692e3186109cc00db6825b777201e"
22SRC_URI[sha256sum] = "1d2d7996cc94f9b87d0c51cf0e028070ac177c4123ecbfd7ac1cb8d0b7d322d1"
23
24SRC_URI_append_virtclass-native = " file://oj-native-libosp-fix.patch"
25
26inherit autotools
27
28EXTRA_OECONF = "--enable-spincludedir=${STAGING_INCDIR}/OpenSP \
29 --enable-splibdir=${STAGING_LIBDIR}"
30
31acpaths = "-I ${S}/config"
32
33# Trailing whitespace is important. Otherwise compiler arguments will be messed
34# up, resulting in a fail in do_configure.
35CFLAGS_prepend = "-I${S}/include "
36
37do_configure_append () {
38 cp config/configure.in .
39}
40
41do_install_append () {
42 # Refer to http://www.linuxfromscratch.org/blfs/view/stable/pst/openjade.html
43 # for details.
44 install -m 0755 ${S}/jade/.libs/openjade ${D}${bindir}/openjade
45 ln -sf openjade ${D}${bindir}/jade
46
47 oe_libinstall -a -so -C style libostyle ${D}${libdir}
48 oe_libinstall -a -so -C spgrove libospgrove ${D}${libdir}
49 oe_libinstall -a -so -C grove libogrove ${D}${libdir}
50
51 install -d ${D}${datadir}/sgml/openjade-${PV}
52 install -m 644 dsssl/catalog ${D}${datadir}/sgml/openjade-${PV}
53 install -m 644 dsssl/*.{dtd,dsl,sgm} ${D}${datadir}/sgml/openjade-${PV}
54
55 # The catalog must live in the sysroot and it must be there for
56 # install-catalog to do its thing.
57 install -d ${datadir}/sgml/openjade-${PV}
58 install -m 644 dsssl/catalog ${datadir}/sgml/openjade-${PV}/catalog
59 install-catalog --add ${sysconfdir}/sgml/openjade-${PV}.cat \
60 ${datadir}/sgml/openjade-${PV}/catalog
61
62 install-catalog --add ${sysconfdir}/sgml/sgml-docbook.cat \
63 ${sysconfdir}/sgml/openjade-${PV}.cat
64}
65
66BBCLASSEXTEND = "native"