[poky] [PATCH 4/5] opensp: improve configuration and install steps
Scott Garman
scott.a.garman at intel.com
Tue Feb 15 20:33:13 PST 2011
From: Scott Garman <scott.a.garman at intel.com>
* For the -native case we need to point two configure
options to the SGML catalogs in the native sysroot
* Some packages (e.g, iputils) use different names for
the openSP utilities, so create these names as
symlinks after do_install
Signed-off-by: Scott Garman <scott.a.garman at intel.com>
---
meta/recipes-devtools/opensp/opensp_1.5.bb | 18 ++++++++++++++++++
1 files changed, 18 insertions(+), 0 deletions(-)
diff --git a/meta/recipes-devtools/opensp/opensp_1.5.bb b/meta/recipes-devtools/opensp/opensp_1.5.bb
index bda87cb..61022e0 100644
--- a/meta/recipes-devtools/opensp/opensp_1.5.bb
+++ b/meta/recipes-devtools/opensp/opensp_1.5.bb
@@ -24,4 +24,22 @@ S = "${WORKDIR}/OpenSP-${PV}"
inherit autotools gettext
+EXTRA_OECONF_virtclass-native = "\
+ --enable-default-catalog=${sysconfdir}/sgml/catalog \
+ --enable-default-search-path=${datadir}/sgml \
+ "
+
+do_install_append() {
+ # Set up symlinks to often-used alternate names. See
+ # http://www.linuxfromscratch.org/blfs/view/stable/pst/opensp.html
+ cd ${D}${libdir}
+ ln -sf libosp.so libsp.so
+
+ cd ${D}${bindir}
+ for util in nsgmls sgmlnorm spam spcat spent sx; do
+ ln -sf o$util $util
+ done
+ ln -sf osx sgml2xml
+}
+
BBCLASSEXTEND = "native"
--
1.7.1
More information about the poky
mailing list