2 DEPENDS = "opensp-native sgml-common-native"
4 SRC_URI = "${SOURCEFORGE_MIRROR}/openjade/openjade-${PV}.tar.gz \
5 file://configure.patch;patch=1 \
6 file://oj-native-libosp-fix.patch;patch=1;pnum=1"
7 S = "${WORKDIR}/openjade-${PV}"
9 inherit autotools native
11 FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/openjade-${PV}"
14 EXTRA_OECONF = "--enable-spincludedir=${STAGING_INCDIR}/OpenSP \
15 --enable-splibdir=${STAGING_LIBDIR} \
16 --enable-default-catalog=${sysconfdir}/sgml/catalog \
17 --enable-default-search-path=${datadir}/sgml"
19 acpaths = "-I ${S}/config"
21 # Trailing whitespace is important. Otherwise compiler arguments will be messed
22 # up, resulting in a fail in do_configure.
23 CFLAGS_prepend = "-I${S}/include "
26 mv config/configure.in .
32 # Refer to http://www.linuxfromscratch.org/blfs/view/stable/pst/openjade.html
34 install -m 0755 ${S}/jade/.libs/openjade ${STAGING_BINDIR_NATIVE}/openjade
35 ln -sf openjade ${STAGING_BINDIR_NATIVE}/jade
37 oe_libinstall -a -so -C style libostyle ${STAGING_LIBDIR}
38 oe_libinstall -a -so -C spgrove libospgrove ${STAGING_LIBDIR}
39 oe_libinstall -a -so -C grove libogrove ${STAGING_LIBDIR}
41 install -d ${STAGING_DATADIR}/sgml/openjade-${PV}
42 install -m 644 dsssl/catalog ${STAGING_DATADIR}/sgml/openjade-${PV}
43 install -m 644 dsssl/*.{dtd,dsl,sgm} ${STAGING_DATADIR}/sgml/openjade-${PV}
45 install-catalog --add ${sysconfdir}/sgml/openjade-${PV}.cat \
46 ${STAGING_DATADIR}/sgml/openjade-${PV}/catalog
48 install-catalog --add ${sysconfdir}/sgml/sgml-docbook.cat \
49 ${sysconfdir}/sgml/openjade-${PV}.cat