summaryrefslogtreecommitdiff
path: root/meta
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2013-03-18 02:05:00 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-03-18 13:17:39 +0000
commitfb9885f0f89eef30275683510569bf0ae8463226 (patch)
tree14590e5e8356bcc3b979e461fdee903cc09e4ee8 /meta
parentea39d2ba55205d47356ee53779ce991eade1fb5f (diff)
downloadopenembedded-core-fb9885f0f89eef30275683510569bf0ae8463226.tar.gz
openembedded-core-fb9885f0f89eef30275683510569bf0ae8463226.tar.bz2
openembedded-core-fb9885f0f89eef30275683510569bf0ae8463226.zip
docbook-utils-native: Fix case where ${B} != ${S}
Fix out of tree builds by using full paths to source and built objects as appropriate. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-devtools/docbook-utils/docbook-utils-native_0.6.14.bb23
1 files changed, 12 insertions, 11 deletions
diff --git a/meta/recipes-devtools/docbook-utils/docbook-utils-native_0.6.14.bb b/meta/recipes-devtools/docbook-utils/docbook-utils-native_0.6.14.bb
index 5e1384d588..78034dd987 100644
--- a/meta/recipes-devtools/docbook-utils/docbook-utils-native_0.6.14.bb
+++ b/meta/recipes-devtools/docbook-utils/docbook-utils-native_0.6.14.bb
@@ -22,12 +22,12 @@ inherit autotools native
do_configure_prepend() {
# Fix hard-coded references to /etc/sgml
if [ ! -e ${S}/.sed_done ]; then
- sed -i -e "s|/etc/sgml|${sysconfdir}/sgml|g" bin/jw.in
- sed -i -e "s|/etc/sgml|${sysconfdir}/sgml|g" doc/man/Makefile.am
- sed -i -e "s|/etc/sgml|${sysconfdir}/sgml|g" doc/HTML/Makefile.am
+ sed -i -e "s|/etc/sgml|${sysconfdir}/sgml|g" ${S}/bin/jw.in
+ sed -i -e "s|/etc/sgml|${sysconfdir}/sgml|g" ${S}/doc/man/Makefile.am
+ sed -i -e "s|/etc/sgml|${sysconfdir}/sgml|g" ${S}/doc/HTML/Makefile.am
# Point jw to the native sysroot catalog
- sed -i -e 's|^SGML_EXTRA_CATALOGS=""|SGML_EXTRA_CATALOGS=":${sysconfdir}/sgml/catalog"|g' bin/jw.in
+ sed -i -e 's|^SGML_EXTRA_CATALOGS=""|SGML_EXTRA_CATALOGS=":${sysconfdir}/sgml/catalog"|g' ${S}/bin/jw.in
touch ${S}/.sed_done
fi
}
@@ -44,14 +44,15 @@ do_install() {
ln -sf docbook2$doctype ${D}${bindir}/docbook-to-$doctype
done
- install -m 0755 ${S}/bin/jw ${D}${bindir}/
- for i in backends/dvi backends/html backends/man \
- backends/pdf backends/ps backends/rtf backends/tex \
- backends/texi backends/txt frontends/docbook \
- helpers/docbook2man-spec.pl helpers/docbook2texi-spec.pl \
- docbook-utils.dsl
+ install -m 0755 ${B}/bin/jw ${D}${bindir}/
+ for i in ${S}/backends/dvi ${S}/backends/html ${B}/backends/man \
+ ${S}/backends/pdf ${S}/backends/ps ${S}/backends/rtf ${S}/backends/tex \
+ ${B}/backends/texi ${S}/backends/txt ${B}/frontends/docbook \
+ ${S}/helpers/docbook2man-spec.pl ${S}/helpers/docbook2texi-spec.pl \
+ ${S}/docbook-utils.dsl
do
install -d ${D}${datadir}/sgml/docbook/utils-${PV}/`dirname $i`
- install ${S}/$i ${D}${datadir}/sgml/docbook/utils-${PV}/$i
+ install $i ${D}${datadir}/sgml/docbook/utils-${PV}/$i
done
+
}