#!/bin/sh set -o errexit # First argument of this script is the package name # Reading system configuration informations, functions and package versions. source ../sysinfos source ../functions source ../packages-list # Applying patches (if any) apply_patches ${1} cd ${LFS_TMP}/${1} ./configure \ --prefix=/usr \ --enable-http \ --disable-static \ --enable-default-catalog=/etc/sgml/catalog \ --enable-default-search-path=/usr/share/sgml \ --datadir=/usr/share/sgml/${1} make make install ln -sf openjade /usr/bin/jade ln -sf libogrove.so /usr/lib/libgrove.so ln -sf libospgrove.so /usr/lib/libspgrove.so ln -sf libostyle.so /usr/lib/libstyle.so install -m644 dsssl/catalog /usr/share/sgml/${1}/ install -m644 dsssl/*.{dtd,dsl,sgm} /usr/share/sgml/${1} install-catalog --add /etc/sgml/${1}.cat \ /usr/share/sgml/${1}/catalog install-catalog --add /etc/sgml/sgml-docbook.cat \ /etc/sgml/${1}.cat var_add_path "SGML_BASE_DIR" /etc/profile "/usr/share/sgml" var_export "SGML_BASE_DIR" /etc/profile var_add_path "SGML_CATALOGS_DIR" /etc/profile "/etc/sgml" var_export "SGML_CATALOGS_DIR" /etc/profile exit $?