Beyond Linux From Scratch: Version 5.0-PRE1 | ||
---|---|---|
Prev | Chapter 47. Standard Generalized Markup Language (SGML) | Next |
The OpenSP package contains a C++ Library for using SGML/XML files. This is useful for validating, parsing and manipulating SGML and XML documents.
Download (HTTP): http://download.sourceforge.net/openjade/OpenSP-1.5.tar.gz
Download (FTP): ftp://ftp.freestandards.org/pub/lsb/app-battery/packages/OpenSP-1.5.tar.gz
Download size: 1.3 MB
Estimated Disk space required: 16.1 MB
Estimated build time: 1.76 SBU
This patch removes some annoying messages that can appear while running openjade.
patch -Np1 -i ../OpenSP-1.5-LITLEN.patch patch -Np1 -i ../OpenSP-1.5-gcc33-1.patch |
Install OpenSP by running the following commands:
./configure --prefix=/usr --disable-static --enable-http \ --enable-default-catalog=/etc/sgml/catalog \ --enable-default-search-path=/usr/share/sgml && make pkgdatadir=/usr/share/sgml/OpenSP-1.5 && make pkgdatadir=/usr/share/sgml/OpenSP-1.5 install && ln -sf onsgmls /usr/bin/nsgmls && ln -sf osgmlnorm /usr/bin/sgmlnorm && ln -sf ospam /usr/bin/spam && ln -sf ospcat /usr/bin/spcat && ln -sf ospent /usr/bin/spent && ln -sf osx /usr/bin/sx && ln -sf osx /usr/bin/sgml2xml && ln -sf libosp.so /usr/lib/libsp.so && install-catalog --add /etc/sgml/OpenSP-1.5.cat \ /usr/share/sgml/OpenSP-1.5/catalog && install-catalog --add /etc/sgml/sgml-docbook.cat \ /etc/sgml/OpenSP-1.5.cat |
Update hint: Remove the above catalog items prior to upgrading with:
install-catalog --remove /etc/sgml/OpenSP-[version].cat \ /usr/share/sgml/OpenSP-[version]/catalog && install-catalog --remove /etc/sgml/sgml-docbook.cat \ /etc/sgml/OpenSP-[version].cat
--disable-static: This switch prevents the building of the static library.
--enable-http: This switch adds support for HTTP.
--enable-default-catalog=/etc/sgml/catalog: This switch sets the path to our centralized catalog.
--enable-default-search-path: This switch sets the default value of SGML_SEARCH_PATH.
--enable-xml-messages: This switch adds support for XML Formatted Messages.
make pkgdatadir=/usr/share/sgml/OpenSP-1.5: This sets the pkgdatadir variable in the Makefile from /usr/share/OpenSP to /usr/share/sgml/OpenSP-1.5.
ln -sf onsgmls /usr/bin/nsgmls ln -sf osgmlnorm /usr/bin/sgmlnorm ln -sf ospam /usr/bin/spam ln -sf ospcat /usr/bin/spcat ln -sf ospent /usr/bin/spent ln -sf osx /usr/bin/sx ln -sf osx /usr/bin/sgml2xml ln -sf libosp.so /usr/lib/libsp.so |