#!/bin/sh set -o errexit # First argument of this script is the package name. # Remaining arguments are additional configure options. # Reading system configuration informations, functions and package versions. source ../sysinfos source ../functions source ../packages-list PACKAGE=${1} shift CONFIGURE_OPTS=${*} # Applying patches (if any) apply_patches ${PACKAGE} CAT1="/etc/sgml/${PACKAGE}.cat" CAT2="/usr/share/sgml/${PACKAGE}/catalog" CAT3="/etc/sgml/sgml-docbook.cat" CAT4="/etc/sgml/${PACKAGE}.cat" # Remove the old catalog items prior to upgrading... # First test for presence of 'install-catalog' program INSTALL_CATALOG=/usr/bin/install-catalog if [ -x ${INSTALL_CATALOG} ]; then if [ -f ${CAT1} ]; then ${INSTALL_CATALOG} --remove ${CAT1} ${CAT2} fi if [ -f ${CAT4} ]; then ${INSTALL_CATALOG} --remove ${CAT3} ${CAT4} fi fi cd ${LFS_TMP}/${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/${PACKAGE} make pkgdatadir=/usr/share/sgml/${PACKAGE} 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 exit $?