Difference between revisions of "OpenSP"

From CBLFS
Jump to navigationJump to search
(Multilib)
 
(7 intermediate revisions by 4 users not shown)
Line 2: Line 2:
 
|-
 
|-
 
!Download Source:
 
!Download Source:
| http://prdownloads.sourceforge.net/openjade/OpenSP-1.5.2.tar.gz
+
| http://downloads.sourceforge.net/openjade/OpenSP-{{OpenSP-Version}}.tar.gz
 
|}
 
|}
  
 
----
 
----
 +
 +
{{Package-Introduction|The OpenSP package contains a C++ library for using SGML/XML files. This is useful for validating, parsing and manipulating SGML and XML documents.}}
  
 
== Dependencies ==
 
== Dependencies ==
Line 24: Line 26:
 
     --enable-default-catalog=/etc/sgml/catalog --enable-http \
 
     --enable-default-catalog=/etc/sgml/catalog --enable-http \
 
     --enable-default-search-path=/usr/share/sgml &&
 
     --enable-default-search-path=/usr/share/sgml &&
  make pkgdatadir=/usr/share/sgml/OpenSP-1.5.2
+
  make pkgdatadir=/usr/share/sgml/OpenSP-{{OpenSP-Version}}
  
 
Install the package
 
Install the package
  
  make pkgdatadir=/usr/share/sgml/OpenSP-1.5.2 install &&
+
  make pkgdatadir=/usr/share/sgml/OpenSP-{{OpenSP-Version}} install &&
 
  ln -v -sf onsgmls /usr/bin/nsgmls &&
 
  ln -v -sf onsgmls /usr/bin/nsgmls &&
 
  ln -v -sf osgmlnorm /usr/bin/sgmlnorm &&
 
  ln -v -sf osgmlnorm /usr/bin/sgmlnorm &&
Line 51: Line 53:
 
     --enable-default-catalog=/etc/sgml/catalog --enable-http \
 
     --enable-default-catalog=/etc/sgml/catalog --enable-http \
 
     --enable-default-search-path=/usr/share/sgml &&
 
     --enable-default-search-path=/usr/share/sgml &&
  make pkgdatadir=/usr/share/sgml/OpenSP-1.5.2
+
  make pkgdatadir=/usr/share/sgml/OpenSP-{{OpenSP-Version}}
  
 
Install the package
 
Install the package
  
  make pkgdatadir=/usr/share/sgml/OpenSP-1.5.2 install &&
+
  make pkgdatadir=/usr/share/sgml/OpenSP-{{OpenSP-Version}} install &&
 +
mv -v /usr/include/OpenSP/config{,-32}.h &&
 
  ln -v -sf libosp.so /usr/lib/libsp.so
 
  ln -v -sf libosp.so /usr/lib/libsp.so
  
Line 69: Line 72:
 
     --enable-default-catalog=/etc/sgml/catalog --enable-http \
 
     --enable-default-catalog=/etc/sgml/catalog --enable-http \
 
     --enable-default-search-path=/usr/share/sgml &&
 
     --enable-default-search-path=/usr/share/sgml &&
  make pkgdatadir=/usr/share/sgml/OpenSP-1.5.2
+
  make pkgdatadir=/usr/share/sgml/OpenSP-{{OpenSP-Version}}
  
 
Install the package
 
Install the package
  
  make pkgdatadir=/usr/share/sgml/OpenSP-1.5.2 install &&
+
  make pkgdatadir=/usr/share/sgml/OpenSP-{{OpenSP-Version}} install &&
 +
mv -v /usr/include/OpenSP/config{,-n32}.h &&
 
  ln -v -sf libosp.so /usr/lib32/libsp.so
 
  ln -v -sf libosp.so /usr/lib32/libsp.so
  
Line 87: Line 91:
 
     --enable-default-catalog=/etc/sgml/catalog --enable-http \
 
     --enable-default-catalog=/etc/sgml/catalog --enable-http \
 
     --enable-default-search-path=/usr/share/sgml &&
 
     --enable-default-search-path=/usr/share/sgml &&
  make pkgdatadir=/usr/share/sgml/OpenSP-1.5.2
+
  make pkgdatadir=/usr/share/sgml/OpenSP-{{OpenSP-Version}}
  
 
Install the package
 
Install the package
  
  make pkgdatadir=/usr/share/sgml/OpenSP-1.5.2 install &&
+
  make pkgdatadir=/usr/share/sgml/OpenSP-{{OpenSP-Version}} install &&
 +
mv -v /usr/include/OpenSP/config{,-64}.h &&
 
  ln -v -sf onsgmls /usr/bin/nsgmls &&
 
  ln -v -sf onsgmls /usr/bin/nsgmls &&
 
  ln -v -sf osgmlnorm /usr/bin/sgmlnorm &&
 
  ln -v -sf osgmlnorm /usr/bin/sgmlnorm &&
Line 100: Line 105:
 
  ln -v -sf osx /usr/bin/sgml2xml &&
 
  ln -v -sf osx /usr/bin/sgml2xml &&
 
  ln -v -sf libosp.so /usr/lib64/libsp.so
 
  ln -v -sf libosp.so /usr/lib64/libsp.so
 +
 +
{{Stub-Header|config|/usr/include/OpenSP}}
 +
 +
==Contents==
 +
 +
{| style="text-align: left;"
 +
|-
 +
! Installed Programs:
 +
| onsgmls, ospent, ospam, osgmlnorm, osx, ospcat
 +
|-
 +
! Installed Libraries:
 +
| libosp.{la,so}
 +
|-
 +
! Installed Directories:
 +
| /usr/share/sgml/OpenSP-{{OpenSP-Version}}, /usr/share/doc/OpenSP, /usr/include/OpenSP
 +
|}
 +
 +
[[Category:DocBook SGML]]

Latest revision as of 16:00, 19 March 2009

Download Source: http://downloads.sourceforge.net/openjade/OpenSP-1.5.2.tar.gz

Introduction to OpenSP

The OpenSP package contains a C++ library for using SGML/XML files. This is useful for validating, parsing and manipulating SGML and XML documents.

Project Homepage: Unknown

Dependencies

Required

Optional

Non-Multilib

Compile the package:

sed -i 's:32,:253,:' lib/Syntax.cxx &&
sed -i 's:LITLEN          240 :LITLEN          8092:' \
    unicode/{gensyntax.pl,unicode.syn} &&
./configure --prefix=/usr --disable-static --disable-doc-build \
    --enable-default-catalog=/etc/sgml/catalog --enable-http \
    --enable-default-search-path=/usr/share/sgml &&
make pkgdatadir=/usr/share/sgml/OpenSP-1.5.2

Install the package

make pkgdatadir=/usr/share/sgml/OpenSP-1.5.2 install &&
ln -v -sf onsgmls /usr/bin/nsgmls &&
ln -v -sf osgmlnorm /usr/bin/sgmlnorm &&
ln -v -sf ospam /usr/bin/spam &&
ln -v -sf ospcat /usr/bin/spcat &&
ln -v -sf ospent /usr/bin/spent &&
ln -v -sf osx /usr/bin/sx &&
ln -v -sf osx /usr/bin/sgml2xml &&
ln -v -sf libosp.so /usr/lib/libsp.so

Multilib

32Bit

Compile the package:

sed -i 's:32,:253,:' lib/Syntax.cxx &&
sed -i 's:LITLEN          240 :LITLEN          8092:' \
    unicode/{gensyntax.pl,unicode.syn} &&
CC="gcc ${BUILD32}" CXX="g++ ${BUILD32}" ./configure --prefix=/usr \
    --disable-static --disable-doc-build \
    --enable-default-catalog=/etc/sgml/catalog --enable-http \
    --enable-default-search-path=/usr/share/sgml &&
make pkgdatadir=/usr/share/sgml/OpenSP-1.5.2

Install the package

make pkgdatadir=/usr/share/sgml/OpenSP-1.5.2 install &&
mv -v /usr/include/OpenSP/config{,-32}.h &&
ln -v -sf libosp.so /usr/lib/libsp.so

N32

Compile the package:

sed -i 's:32,:253,:' lib/Syntax.cxx &&
sed -i 's:LITLEN          240 :LITLEN          8092:' \
    unicode/{gensyntax.pl,unicode.syn} &&
CC="gcc ${BUILDN32}" CXX="g++ ${BUILDN32}" ./configure --prefix=/usr \
    --disable-static --disable-doc-build --libdir=/usr/lib32 \
    --enable-default-catalog=/etc/sgml/catalog --enable-http \
    --enable-default-search-path=/usr/share/sgml &&
make pkgdatadir=/usr/share/sgml/OpenSP-1.5.2

Install the package

make pkgdatadir=/usr/share/sgml/OpenSP-1.5.2 install &&
mv -v /usr/include/OpenSP/config{,-n32}.h &&
ln -v -sf libosp.so /usr/lib32/libsp.so

64Bit

Compile the package:

sed -i 's:32,:253,:' lib/Syntax.cxx &&
sed -i 's:LITLEN          240 :LITLEN          8092:' \
    unicode/{gensyntax.pl,unicode.syn} &&
CC="gcc ${BUILD64}" CXX="g++ ${BUILD64}" ./configure --prefix=/usr \
    --disable-static --disable-doc-build --libdir=/usr/lib64 \
    --enable-default-catalog=/etc/sgml/catalog --enable-http \
    --enable-default-search-path=/usr/share/sgml &&
make pkgdatadir=/usr/share/sgml/OpenSP-1.5.2

Install the package

make pkgdatadir=/usr/share/sgml/OpenSP-1.5.2 install &&
mv -v /usr/include/OpenSP/config{,-64}.h &&
ln -v -sf onsgmls /usr/bin/nsgmls &&
ln -v -sf osgmlnorm /usr/bin/sgmlnorm &&
ln -v -sf ospam /usr/bin/spam &&
ln -v -sf ospcat /usr/bin/spcat &&
ln -v -sf ospent /usr/bin/spent &&
ln -v -sf osx /usr/bin/sx &&
ln -v -sf osx /usr/bin/sgml2xml &&
ln -v -sf libosp.so /usr/lib64/libsp.so

Creating a Stub Header (Multilib Only)

Creating a Generic Stub Header

cat > /usr/include/OpenSP/config.h << "EOF"
/* config.h - Stub Header  */
#ifndef __STUB__CONFIG_H__
#define __STUB__CONFIG_H__

#if defined(__x86_64__) || \
    defined(__sparc64__) || \
    defined(__arch64__) || \
    defined(__powerpc64__) || \
    defined (__s390x__)
# include "config-64.h"
#else
# include "config-32.h"
#endif

#endif /* __STUB__CONFIG_H__ */
EOF

Creating a Stub Header For Mips

cat > /usr/include/OpenSP/config.h << "EOF"
/* config.h - Stub Header  */
#ifndef __STUB__CONFIG_H__
#define __STUB__CONFIG_H__

#include <sgidefs.h>

#if (_MIPS_SIM == _ABIO32)
# include "config-32.h"
#elif (_MIPS_SIM == _ABIN32)
# include "config-n32.h"
#elif (_MIPS_SIM == _ABI64)
# include "config-64.h"
#endif

#endif /* __STUB__CONFIG_H__ */
EOF

Contents

Installed Programs: onsgmls, ospent, ospam, osgmlnorm, osx, ospcat
Installed Libraries: libosp.{la,so}
Installed Directories: /usr/share/sgml/OpenSP-1.5.2, /usr/share/doc/OpenSP, /usr/include/OpenSP